Skip to content

Index

List of commands and functions


Icons meaning

  • - Commands available from eramaker
  • - Commands added, changed, and extended in Emuera
  • - Commands added, changed, or extended in EM (EvilMask version)
  • - Commands added, changed, or extended in EE (Enterprise Edition)
  • - Commands added, changed, or extended in Emuera.NET
  • - Commands added, modified, or extended by other contributors

Function name Arguments Return
PRINT(|V|S|FORM|FORMS)(|K|D)(|L|W) string none
PRINTSINGLE(|V|S|FORM|FORMS)(|K|D) string none
PRINT(|FORM)(C|LC)(|K|D) string none
PRINTDATA(|K|D)(|L|W) none none
PRINTBUTTON(|C|LC) string, any none
PRINTPLAIN(|FORM) string none
DRAWLINE none none
CUSTOMDRAWLINE string none
DRAWLINEFORM formedString none
GETLINESTR string string
REUSELASTLINE string none
CLEARLINE int none
PRINT_ABL int none
PRINT_TALENT int none
PRINT_MARK int none
PRINT_EXP int none
PRINT_PALAM int none
PRINT_ITEM none none
PRINT_SHOPITEM none none
PRINT_IMG string none
string, int, int, int none
string, string, int, int, int none
string, string, 2DIntegerVariable, int, int, int none
PRINT_RECT int none
int, int, int, int none
PRINT_SPACE int none
PRINT(|V|S|FORM|FORMS)N string none

Display operation, font operation, refer to display specifications(?)

Function name Arguments Return
BAR int, int, int none
BARL int, int, int none
SETCOLOR int, int, int none
int none
RESETCOLOR none none
SETBGCOLOR int, int, int none
int none
RESETBGCOLOR none none
SETCOLORBYNAME colorName none
SETBGCOLORBYNAME colorName none
GETCOLOR none int
GETBGCOLOR none int
GETDEFCOLOR none int
GETDEFBGCOLOR none int
GETFOCUSCOLOR none int
FONTBOLD none none
FONTITALIC none none
FONTSTYLE int none
FONTREGULAR none none
GETSTYLE none int
CHKFONT string int
SETFONT string none
GETFONT none string
FORCEKANA int none
ALIGNMENT keyword none
CURRENTALIGN none string
REDRAW int none
CURRENTREDRAW none int
PRINTCPERLINE none int
PRINTCLENGTH none int
LINEISEMPTY none int
BARSTR int, int, int string
MONEYSTR int, option string
SKIPDISP int none
NOSKIP none none
ENDNOSKIP none none
ISSKIP none int
MOUSESKIP none int
MESSKIP none int
COLOR_FROMNAME string int
COLOR_FROMRGB int, int, int string
SKIPLOG int void
GETDISPLAYLINE int string
BITMAP_CACHE_ENABLE int void

String manipulation and reference(?)(comparison maybe)

Function name Arguments Return
TOUPPER string string
TOLOWER string string
TOHALF string string
TOFULL string string
TOSTR int, option string
TOINT string int
ISNUMERIC string int
STRLEN string int
STRLENS string int
STRLENFORM string int
STRLENU string int
STRLENSU string int
STRLENFORMU string int
SUBSTRING string, int, int string
SUBSTRINGU string, int, int string
CHARATU string, int string
STRFIND string, string(, int) int
STRFINDU string, string(, int) int
STRCOUNT string, string int
SPLIT string, string, stringArray int
STRJOIN stringArray(, string, int, int) string
REPLACE string, string, string string
ESCAPE string string
UNICODE int string
ENCODETOUNI string int
STRFORM string string
REGEXPMATCH string, string(, int) int
string, string, ref int, ref string[] int

Arithmetics

Function name Arguments Return
TIMES int, float none
POWER integerVariable, int, int int
int, int int
ABS int int
SIGN int int
SQRT int int
CBRT int int
LOG int int
LOG10 int int
EXPOMENT int int
GETBIT int, int int
SETBIT integerVariable, int(, int...) none
CLEARBIT integarVariable, int(, int...) none
INVERTBIT integarVariable, int(, int...) none
MAX int(, int...) int
MIN int(, int...) int
LIMIT int, int, int int
INRANGE int, int, int int
SUMARRAY integerArray(, int, int) int
MATCH array, any, int, int int
MAXARRAY integerArray, int, int int
MINARRAY integerArray, int, int int
SUMCARRAY charaArray(, int, int) int
CMATCH charaArray, any(, int, int) int
MAXCARRAY charaArray(, int, int) int
MINCARRAY charaArray(, int, int) int
INRANGEARRAY integerArray, int, int(, int, int) int
INRANGECARRAY charaArray, int, int(, int, int) int
GROUPMATCH any, any... int
NOSAMES any, any... int
ALLSAMES any, any... int
CONVERT int, int string

Character operation/reference

Function name Arguments Return
ADDCHARA int(, int,...) none
DELCHARA int(, int,...) none
SWAPCHARA int, int none
SORTCHARA charaVariable, keyword none
GETCHARA int int
ADDDEFCHARA none none
ADDVOIDCHARA none none
DELALLCHARA none none
PICKUPCHARA int(, int...) none
EXISTCSV int int
FINDCHARA charaVariable, int(, int, int) int
FINDLASTCHARA charaVariable, int(, int, int) int
COPYCHARA int, int none
ADDCOPYCHARA int none

Variable manipulation, variable reference, CSV reference

Function name Arguments Return
UPCHECK none none
VARSIZE variable int
VARSIZE() variable(, dimension) int
RESETDATA none none
RESETGLOBAL none none
RESET_STAIN int none
SWAP variable, variable none
CSVNAME int string
CSVCALLNAME int string
CSVNICKNAME int string
CSVMASTERNAME int string
CSVBASE int, int int
CSVCSTR int, int string
CSVABL int, int int
CSVTALENT int, int int
CSVMARK int, int int
CSVEXP int, int int
CSVRELATION int, int int
CSVJUEL int, int int
CSVEQUIP int, int int
CFLAG int, int int
GETNUM variable, string int
GETPALAMLV int, int int
GETEXPLV int, int int
FINDELEMENT variable, value(, int, int, int) int
FINDLASTELEMENT variable, value(, int, int, int) int
VARSET variable(, value, int, int) none
CVARSET charaVariable(, int, int, int, int) none
ARRAYSHIFT variable, int, value(, int, int) none
ARRAYREMOVE variable, int, int none
ARRAYSORT variable(, sortFormat, int, int) none
ARRAYCOPY varible, variable none
ARRAYMSORT variable(, variable...) none
CUPCHECK int none
ISDEFINED string int
EXISTVAR string int
ENUMFUNCBEGINSWITH string int
ENUMFUNCENDSWITH string int
ENUMFUNCWITH string int
ENUMVARBEGINSWITH string int
ENUMVARENDSWITH string int
ENUMVARWITH string int
ENUMMACROBEGINSWITH string int
ENUMMACROENDSWITH string int
ENUMMACROWITH string int
GETVAR string int
GETVARS string string
SETVAR string, any 1
VARSETEX string, any(, int, int, int) 1
ARRAYMSORTEX string, ref string[](, int, int) 1
ref int, ref string[](, int, int) 1
ERDNAME variable, int(, int) string
VARI string(, int) none
VARS string(, int) none

Save data operations

Function name Arguments Return
PUTFORM string none
SAVEDATA int, string none
LOADDATA int none
DELDATA int none
CHKDATA int int
SAVENOS int int
SAVEGLOBAL none none
LOADGLOBAL none int
OUTPUTLOG (string) none
SAVECHARA string, string, int(, int...) none
LOADCHARA string int
CHKCHARADATA string int
FIND_CHARADATA string int
SAVETEXT string, int(, int, int) int
LOADTEXT int(, int, int) string

Get date and time

Function name Arguments Return
GETTIME none int, string
GETTIME() none int
GETTIMES() none string
GETMILLISECOND none int
GETSECOND none int

Input/Wait

Function name Arguments Return
INPUT (int, int, int) void
INPUTS (int, int, int) void
WAIT none void
FORCEWAIT none none
TINPUT int, int(, int, string, int) int
TINPUTS int, int(, int, string, int) string
TWAIT int, int none
ONEINPUT int(, int) int
ONEINPUTS string(, int) string
TONEINPUT int, int(, int, string, int) int
TONEINPUTS int, string(, int, string, int) string
WAITANYKEY none none
INPUTMOUSEKEY int int
INPUTANY none int / string
BINPUT (int, int, int) int
BINPUTS (string, int, int) string

Loop/branch syntax

Function name Arguments Return
(S)IF-ELSEIF-ELSE-ENDIF operand none
REPEAT int none
REND none none
CONTINUE none none
BREAK none none
FOR integerVariable, int, int(, int) none
NEXT none none
WHILE int none
WEND none none
DO none none
LOOP int none
SELECTCASE any none
CASE any none
CASEELSE none none
ENDSELECT none none

Random Number Control

Function name Arguments Return
RANDOMIZE int none
DUMPRAND none none
INITRAND none none

Debugging aids and system flow control

Function name Arguments
SAVEGAME none
LOADGAME none
BEGIN idenetifier
QUIT none
CALLTRAIN int
DOTRAIN int
THROW string
QUIT_AND_RESTART none
FORCE_QUIT none
FORCE_QUIT_AND_RESTART none
FORCE_BEGIN identifier
FLOWINPUT int(, int, int)

Functions (CALL, etc.)

Function name Arguments Return
CALL functionName none
JUMP functionName none
GOTO labelName none
RESTART none none
TRYCALL functionName(, any...) none
TRYJUMP functionName(, any...) none
TRYGOTO labelName none
CALLFORM functionName(, any...) none
JUMPFORM functionName(, any...) none
GOTOFORM labelName none
TRYCALLFORM formedString(, any...) none
TRYJUMPFORM formedString(, any...) none
TRYGOTOFORM formedString none
CALLF functionName none
CALLFORMF formedString none
CALLEVENT functionName none
TRYCCALL functionName(, any...) none
TRYCJUMP functionName(, any...) none
TRYGOTO labelName none
TRYCCALLFORM functionName(, any...) none
TRYCCALLFORM functionName(, any...) none
TRYCGOTOFORM labelName none
CATCH none none
ENDCATCH none none
TRYCALLLIST none none
TRYJUMPLIST none none
TRYGOTOLIST none none
FUNC functionName(, any...) none
ENDFUNC none none
EXISTFUNCTION string int
TRYCALLF functionName none
TRYCALLFORMF formedString none
CALLSHARP functionName
EXISTMETH functionName int
GETMETH string(, int, argument...) int
GETMETHS string(, string, argument...) string
Function name Arguments Return
RETURN int(, int,...) Same as arguments
RETURNFORM string(, string,...) Same as arguments (converted to numeric type)
RETURNF any Same as arguments
Function name Arguments Return
DEBUGPRINT string none
DEBUGPRINTL string none
DEBUGPRINTFORM formedString none
DEBUGPRINTFORML formedString none
DEBUGCLEAR none none
ASSERT int none
Function name Arguments
TOOLTIP_SETCOLOR int, int
TOOLTIP_SETDELAY int
TOOLTIP_SETDURATION int
TOOLTIP_CUSTOM int
TOOLTIP_SETFONT string
TOOLTIP_SETFONTSIZE int
TOOLTIP_FORMAT int
Function name Arguments Return
HTML_PRINT string none
HTML_TAGSPLIT string(, integerVariable, stringVariable) int, string
HTML_POPPRINTINGSTR none string
HTML_GETPRINTEDSTR int string
HTML_ESCAPE string string
HTML_TOPLAINTEXT string string
HTML_STRINGLEN string(, int) int
HTML_SUBSTRING string, int string
HTML_STRINGLINES string, int string
HTML_PRINT_ISLAND string none
HTML_PRINT_ISLAND_CLEAR string none
Function name Arguments Return
AWAIT int none
GETKEY keyCode int
GETKEYTRIGGERED keyCode int
MOUSEX none int
MOUSEY none int
ISACTIVE none int
MOUSEB none string
About image processing related commands These are image processing commands.
Graphics commands beginning with G are commands for manipulating the resizable drawing area.
To use G commands, you must specify GRAPHICS or TEXTRENDERER as the drawing method.
If WINAPI is specified as the drawing method, G commands cannot be used and an error will occur.
Sprite commands beginning with SPRITE are commands related to sprites.
Sprites can also be displayed inline with the PRINT_IMG command, just like resources declared in the resources folder.
ClientBackground commands beginning with CBG are commands related to the background image of the client area.

Please note that the color specification in image processing commands is not RGB but ARGB format including alpha value (opacity).
The ARGB type is expressed in hexadecimal as 0xAARRGGBB.

Most image processing commands can also be called as functions in expressions.
When called as a function, the result value is not assigned to `RESULT` but becomes the return value.
Function name Arguments Return
GCREATE int, int, int int
GCREATEFROMFILE int, string int
GDISPOSE int int
GCLEAR int, int int
GFILLRECTANGLE int, int, int, int, int int
GDRAWG int, int, int, int, int, int, int, int, int, int int
int, int, int, int, int, int, int, int, int, int, integerVariable int
GDRAWGWITHMASK int, int, int, int, int int
GDRAWSPRITE int, string int
int, string, int, int int
int, string, int, int, int, int int
int, string, int, int, int, int, integerVariable int
GSETCOLOR int, int, int, int int
GSETBRUSH int, int int
GSETFONT int, string, string(, int) int
GSETPEN int, int, int int
GCREATED int int
GWIDTH int int
GHEIGHT int int
GGETCOLOR int, int, int int
GSAVE int, int int
GLOAD int, int int
SPRITECREATE string, int int
string, int, int, int, int, int int
SPRITEANIMECREATE string, int, int int
SPRITEANIMEADDFRAME string, int, int, int, int, int, int, int, int int
SPRITEDISPOSE string int
SPRITEGETCOLOR string, int, int int
SPRITECREATED string int
SPRITEWIDTH string int
SPRITEHEIGHT string int
SPRITEWIDTH string int
SPRITEHEIGHT string int
SPRITEPOSX string int
SPRITEPOSY string int
SPRITESETPOS string, int, int int
SPRITEMOVE string, int, int int
CBGSETG int, int, int, int int
CBGSETSPRITE string, int, int, int int
CBGSETBMAPG int int
CBGSETBUTTONSPRITE int, string, string, int, int, zDepth int
int, string, string, int, int, zDepth, string int
CBGCLEAR none int
CBGREMOVEMAPB none int
CBGCLEARBUTTON none int
CBGREMOVERANGE int, int int
SETANIMETIMER int none
GDRAWTEXT int, string(, int, int) int
GGETFONT int string
GGETFONTSIZE int int
GGETFONTSTYLE int int
GGETTEXTSIZE string, string, int(, int) int
GDRAWGWITHROTATE int, int, int(, int, int) int
GGETPEN int int
GGETPENWIDTH int int
GGETBRUSH int int
SPRITEDISPOSEALL int int
GDRAWLINE int, int, int, int, int int
GDASHSTYLE int, int, int int
SETBGIMAGE string(, int, int) none
REMOVEBGIMAGE string none
CLEARBGIMAGE none none
Function name Arguments Return
PLAYSOUND string none
STOPSOUND none none
PLAYBGM string none
STOPBGM none none
EXISTSOUND string int
SETSOUNDVOLUME int none
SETBGMVOLUME int none
Function name Arguments Return
XML_DOCUMENT any, string int
XML_RELEASE any 1
XML_EXIST any int
XML_GET any, string(, int, int) int
any, string, ref string[](, int) int
XML_GET_BYNAME string, string(, int, int) int
string, string, ref string[](, int) int
XML_SET int, string, string(, int, int) int
ref string, string, string(, int, int) int
XML_SET_BYNAME string, string, string(, int, int) int
XML_TOSTR any string
XML_ADDNODE int, string, string(, int, int) int
ref string, string, string(, int, int) int
XML_ADDNODE_BYNAME string, string, string(, int, int) int
XML_REMOVENODE int, string(, int) int
ref string, string(, int) int
XML_REMOVENODE_BYNAME string, string(, int) int
XML_REPLACE int, string int
int, string, string(, int) int
ref string, string, string(, int) int
XML_REPLACE_BYNAME string, string, string(, int) int
XML_ADDATTRIBUTE int, string, string(, string, int, int) int
ref string, string, string(, string, int, int) int
XML_ADDATTRIBUTE_BYNAME string, string, string(, string, int, int) int
XML_REMOVEATTRIBUTE int, string(, int) int
ref string, string(, int) int
XML_REMOVEATTRIBUTE_BYNAME string, string(, int) int
Function name Arguments Return
MAP_CREATE string int
MAP_EXIST string int
MAP_RELEASE string 1
MAP_GET string, string string
MAP_HAS string, string int
MAP_SET string, string, string int
MAP_REMOVE string, string int
MAP_SIZE string int
MAP_CLEAR string int
MAP_GETKEYS string string
string, int string
string, ref string[], int string
MAP_TOXML string string
MAP_FROMXML string, string int
Function name Arguments Return
DT_CREATE string int
DT_EXIST string int
DT_RELEASE string 1
DT_CLEAR string int
DT_NOCASE string, int int
DT_COLUMN_ADD string, string(, any, int) int
DT_COLUMN_EXIST string, string int
DT_COLUMN_REMOVE string, string int
DT_COLUMN_LENGTH string int
DT_COLUMN_OPTIONS string, string, keyword, any([,keyword, any] ...) none
DT_COLUMN_NAMES string(, ref string[]) int
DT_ROW_ADD string([, string, any] ...) int
string, ref string[], ref any[], int int
DT_ROW_SET string, int, string, any([, string, any] ...) int
string, int, ref string[], ref any[], int int
DT_ROW_REMOVE string, int int
string, ref int[], int int
DT_ROW_LENGTH string int
DT_CELL_GET string, int, string(, int) int
DT_CELL_GETS string, int, string(, int) string
DT_CELL_ISNULL string, int, string(, int) int
DT_CELL_SET string, int, string(, any, int) int
DT_SELECT string(, string, string, ref int[]) int
DT_TOXML string(, ref string) string
DT_FROMXML string, string, string int

Others

Function name Arguments Return
RAND int(, int) int
CLEARTEXTBOX none none
STRDATA stringVariable none
STOPCALLTRAIN none none
GETCONFIG string int
GETCONFIGS string string
CLIENTWIDTH none int
CLIENTHEIGHT none int
EXISTFILE string int
ENUMFILES string(, string, int) int
UPDATECHECK none none
GETMEMORYUSAGE none int
CLEARMEMORY none int
SETTEXTBOX string 1
GETTEXTBOX none string
MOVETEXTBOX int, int, int 1
RESUMETEXTBOX none 1