LunaLua constants

From Moondust Wiki
Revision as of 20:12, 26 February 2015 by Kevsoft (talk | contribs)
Jump to navigation Jump to search


Constants
Constant Used in Description
player --- The first player.
player2 --- The second player. Is only constructed if the level runs in two player mode.
FIND_ANY findnpcs Is used to skip one of the filter.
DIR_RIGHT NPC.direction Represents the direction right.
DIR_RANDOM NPC.direction Represents the direction random.
DIR_LEFT NPC.direction Represents the direction left.
PLAYER_SMALL Player.powerup No powerup/Small
PLAYER_BIG Player.powerup Mushroom powerup/Big
PLAYER_FIREFLOWER Player.powerup Fireflower powerup
PLAYER_LEAF Player.powerup Leaf powerup
PLAYER_TANOOKIE Player.powerup Tanookie powerup
PLAYER_HAMMER Player.powerup Hammer powerup
PLAYER_ICE Player.powerup Ice powerup
FIELD_BYTE mem
Player:mem
NPC:mem
Byte field
FIELD_WORD mem
Player:mem
NPC:mem
Word field
FIELD_DWORD mem
Player:mem
NPC:mem
DWord field
FIELD_FLOAT mem
Player:mem
NPC:mem
Float field
FIELD_DFLOAT mem
Player:mem
NPC:mem
DFloat field
FIELD_STRING mem
Player:mem
NPC:mem
String field (VBStr)
KEY_UP keycode Up key
KEY_DOWN keycode Down key
KEY_LEFT keycode Left key
KEY_RIGHT keycode Right key
KEY_JUMP keycode Jump key
KEY_SPINJUMP keycode Spinjump key
KEY_X keycode X key
KEY_RUN keycode Run key
KEY_SEL keycode Sel key
KEY_STR keycode Str key
isOverworld --- True, if the script is run on the overworld