Creation/Dev/Script Functions: Client: Difference between revisions

From Graal Bible
(update to latest version (4.013))
No edit summary
Line 26: Line 26:
   $pref::graal::voicevolume - integer
   $pref::graal::voicevolume - integer
   allfeatures - integer (read only)
   allfeatures - integer (read only)
    the sum of all game features (use with enablefeatures)
   allplayerscount - integer (read only)
   allplayerscount - integer (read only)
    the number of players on the server
   allstats - integer (read only)
   allstats - integer (read only)
    the sum of all pieces of the status (use with showstats)
   canspin - boolean (read only)
   canspin - boolean (read only)
    the player has spin attack
   carriesblackstone - boolean (read only)
   carriesblackstone - boolean (read only)
    the player is carrying a black (level 2) stone
   carriesbush - boolean (read only)
   carriesbush - boolean (read only)
    the player is carrying a bush
   carriesnpc - boolean (read only)
   carriesnpc - boolean (read only)
    the player is carrying an NPC
   carriessign - boolean (read only)
   carriessign - boolean (read only)
    the player is carrying a sign
   carriesstone - boolean (read only)
   carriesstone - boolean (read only)
    the player is carrying a green (level 1) stone
   carriesvase - boolean (read only)
   carriesvase - boolean (read only)
    the player is carrying a vase
   downloadfile - string (read only)
   downloadfile - string (read only)
    name of the current file being downloaded
   downloadpos - integer (read only)
   downloadpos - integer (read only)
    how much of the file has been downloaded in bytes
   downloadsize - integer (read only)
   downloadsize - integer (read only)
    size of the downloading file is in bytes
   emoticonchar - string (read only)
   emoticonchar - string (read only)
    the key being held with CTRL to show an emoticon
   focusx - float (read only)
   focusx - float (read only)
    x value of the screen's focus
   focusy - float (read only)
   focusy - float (read only)
    y value of the screen's focus
   graalversion - float (read only)
   graalversion - float (read only)
    version of the player's Graal client
   gravity - float
   gravity - float
    effects the speed of projectiles (broken in GS2?)
   iscarrying - boolean (read only)
   iscarrying - boolean (read only)
    the player is carrying any object
   isfocused - boolean (read only)
   isfocused - boolean (read only)
   isgraal3d - boolean (read only)
    the player's screen is focused somewhere other than the player
   isgraal3d - boolean (read only) !DEPRECATED
    the player is using the Graal3 client
   isleader - boolean (read only)
   isleader - boolean (read only)
    the player is the first to have entered the level (ID 0)
   isonmap - boolean (read only)
   isonmap - boolean (read only)
    the player's level is attached to other levels (i.e. a gmap)
   lastdownloadfile - string (read only)
   lastdownloadfile - string (read only)
    name of the last file to be downloaded
   leftmousebutton - boolean (read only)
   leftmousebutton - boolean (read only)
    the left mouse button is being held
   levelorgx - float (read only)
   levelorgx - float (read only)
    the origin of the player's x position (changes when attached to NPCs)
   levelorgy - float (read only)
   levelorgy - float (read only)
    the origin of the player's y position (changes when attached to NPCs)
   lighteffectsenabled - boolean (read only)
   lighteffectsenabled - boolean (read only)
    light effects are enabled (v2 only)
   middlemousebutton - boolean (read only)
   middlemousebutton - boolean (read only)
    the middle mouse button is being held
   mousebuttons - integer (read only)
   mousebuttons - integer (read only)
    sum of mouse buttons being held
      1 = left
      2 = middle
      4 = right
   mousescreenx - integer
   mousescreenx - integer
    position of the mouse on the graal window
   mousescreeny - integer
   mousescreeny - integer
    position of the mouse on the graal window
   mousewheeldelta - integer (read only)
   mousewheeldelta - integer (read only)
    the change in the mouse wheel's position in the last .05 seconds
   mousex - float
   mousex - float
    position of the mouse on the level
   mousey - float
   mousey - float
    position of the mouse on the level
   musiclen - integer (read only)
   musiclen - integer (read only)
    length of the currently playing music in seconds
   musicpos - integer (read only)
   musicpos - integer (read only)
    how long the music has been played
   rightmousebutton - boolean (read only)
   rightmousebutton - boolean (read only)
    the right mouse button is being held
   screenheight - integer (read only)
   screenheight - integer (read only)
    the height of the Graal window
   screenwidth - integer (read only)
   screenwidth - integer (read only)
    the width of the Graal window
   scriptedcontrols - boolean (read only)
   scriptedcontrols - boolean (read only)
   scriptedplayerlist - boolean (read only)
   scriptedplayerlist - boolean (read only)
   selectedsword - integer
   selectedsword - integer
   selectedweapon - integer
   selectedweapon - integer
    position of the player's currently selected weapon in the 'weapons' array.
   servername - string (read only)
   servername - string (read only)
    name of the server the player is connected to
   serverstartconnect - string
   serverstartconnect - string
   serverstartparams - string
   serverstartparams - string
   shotbybaddy - boolean (read only)
   shotbybaddy - boolean (read only)
    the NPC was shot by a baddy (DEPRECATED?)
   shotbyplayer - boolean (read only)
   shotbyplayer - boolean (read only)
    the NPC was shot by a player (DEPRECATED?)
   timevar - integer (read only)
   timevar - integer (read only)
    a global variable that rises by 1 every 5 seconds
   timevar2 - float (read only)
   timevar2 - float (read only)
    how long the player's CPU has been running (time since 00:00, January 1, 2000 when used serverside)
   wasshooted - boolean (read only)
   wasshooted - boolean (read only)
    the NPC was shot by anything
   waterheight - float
   waterheight - float
   weapons - object (read only)
   weapons - object (read only)
    a list of weapons in the player's possesion (read as an array)
   weaponsenabled - boolean
   weaponsenabled - boolean
    the player's weapons are enabled
   addcontrol(obj)
   addcontrol(obj)
   addtiledef(str, str, int)
   addtiledef(''image'', ''levelstart'', ''neworder'')
   addtiledef2(str, str, int, int)
    changes the tileset of all levels beginning with ''levelstart'' to the specified image
    neworder is whether the type of each tile corresponds to the original pics1.png; use 0 or 1
   addtiledef2(''image'', ''levelstart'', ''x'', ''y'')
    changes part of the tileset of all levels beginning with ''levelstart'' to the specified image, beginning at ''x'' and ''y''
   adventure_installgraal(str, bool, bool)
   adventure_installgraal(str, bool, bool)
   adventure_openexternaloptions() - returns boolean
   adventure_openexternaloptions() - returns boolean
Line 101: Line 156:
   adventure_updateplayerprofile(bool, str, str, int, str, str, str, str, str, str)
   adventure_updateplayerprofile(bool, str, str, int, str, str, str, str, str, str)
   adventure_updateradiovolume()
   adventure_updateradiovolume()
   aindexof(float, obj) - returns integer
   aindexof(''float'', ''array'') - returns integer !DEPRECATED
   attachplayertoobj(int, int)
    use obj.index(value)
   callnpc(int, params...)
   attachplayertoobj(''type'', ''id'')
   callweapon(int, params...)
    attaches the player to the object with the specified id; currently the only type is 0 (NPC)
   contains(str, str) - returns boolean
   callnpc(''id'', ''params'')
    use npcs[id].trigger(action, params);
   callweapon(''id'', ''params'')
    use weapons[id].trigger(action, params);
   contains(''object'', ''value'') - returns boolean
    checks if ''object'' contains the specified value in it
   cursoroff()
   cursoroff()
    hides the cursor
   cursoron()
   cursoron()
   degtorad(float) - returns float
    shows the cursor
   degtorad(''angle'') - returns float
    converts an angle in degrees to a radian
   detachplayer()
   detachplayer()
    detaches a player from an NPC
   disabledefmovement()
   disabledefmovement()
    disables default controls of the player's character
   disablemap()
   disablemap()
    disables the large map
   disablepause()
   disablepause()
    disables the pause button
   disableselectweapons()
   disableselectweapons()
    disables the weapon select menu
   disableweapons()
   disableweapons()
   echo(str)
    disables usage of NPC weapons
   echo(''text'')
    sends ''text'' to RC chat
   enabledefmovement()
   enabledefmovement()
   enablefeatures(int)
    enables default control of the player's character
   enablefeatures(''features'')
    enables all features specified and disables the rest (use allfeatures)
   enablemap()
   enablemap()
    enables the large map
   enablepause()
   enablepause()
    enables the pause button
   enableselectweapons()
   enableselectweapons()
    enables the weapon select menu
   enableweapons()
   enableweapons()
   explodebomb(int)
    enables usage of NPC weapons
   extractfilebase(str) - returns string
   explodebomb(''id'')
   extractfileext(str) - returns string
    explodes the bomb with the specified id
   extractfilename(str) - returns string
   extractfilebase(''filepath'') - returns string
   extractfilepath(str) - returns string
    returns the base of a file out of the file's path
   fileexists(str) - returns boolean
   extractfileext(''filepath'') - returns string
   filesize(str) - returns integer
    returns the extension of a file out of the file's path
   fileupdate(str) - returns boolean
   extractfilename(''filepath'') - returns string
   findani(str) - returns object
    returns the name of the file out of the file's path
   extractfilepath(''filepath'') - returns string
    returns the path of the file
   fileexists(''file'') - returns boolean
    checks if a file exists
   filesize(''file'') - returns integer
    gets the size of the specified file in bytes
   fileupdate(''file'') - returns boolean
    checks if a file has been updated
   findani(''gani'') - returns object
    creates a reference to the specified gani
   findfiles(str, int) - returns object
   findfiles(str, int) - returns object
   findlevel(str) - returns object
   findlevel(''level'') - returns object
   findplayer(str) - returns object
    creates a reference to the specified level
   findplayerbyid(int) - returns object
   findplayer(''account'') - returns object
   findweapon(str) - returns object
    creates a reference to the specified player
   freezeplayer(float)
   findplayerbyid(''id'') - returns object
   getascii(str) - returns integer
    creates a reference to the specified player
   getbasepackage() - returns object
   findweapon(''weapon'') - returns object
    creates a reference to the specified weapon
   freezeplayer(''freezetime'')
    freezes the player for the specified amount of time
   getascii(''character'') - returns integer
    returns the ascii code of the character
   getbasepackage() - returns object  
   getboxcenter(str) - returns string
   getboxcenter(str) - returns string
   getdownloadedupdatepackagesize() - returns integer
   getdownloadedupdatepackagesize() - returns integer
   getdownloadingpackage() - returns object
   getdownloadingpackage() - returns object
   getdownloadingpackagescount() - returns integer
   getdownloadingpackagescount() - returns integer
   getextension(str) - returns string
   getextension(''file'') - returns string
   getimgheight(str) - returns integer
    returns the extension of a file
   getimgwidth(str) - returns integer
   getimgheight(''image'') - returns integer
   getkeycode(str) - returns integer
    the height of the specified image in pixels
   getmapx(str) - returns integer
   getimgwidth(''image'') - returns integer
   getmapy(str) - returns integer
    the width of the specified image in pixels
   getobjectat(float, float) - returns object
   getkeycode(''key'') - returns integer
    the key code of the specified key
   getmapx(''level'') - returns integer
    x-position of the level on the gmap
   getmapy(''level'') - returns integer
    y-position of the level on the gmap
   getobjectat(''x'', ''y'') - returns object
    references the object at the specified x and y
   getobjectatmouse() - returns object
   getobjectatmouse() - returns object
    references the object under the mouse
   getobjectbyray(str, str) - returns object
   getobjectbyray(str, str) - returns object
   getpackagesdownloadcomplete() - returns boolean
   getpackagesdownloadcomplete() - returns boolean
   getpackagesdownloaded() - returns boolean
   getpackagesdownloaded() - returns boolean
   getplatform() - returns string
   getplatform() - returns string
    the operating system of the player
   getservername() - returns string
   getservername() - returns string
   getstringkeys(str) - returns object
    the server's name
   gettextheight(float, str, str) - returns integer
   getstringkeys(''prefix'') - returns object
   gettextwidth(float, str, str, str) - returns integer
    creates a list of all variables beginning with ''prefix''
   gettextheight(''zoom'', ''font'', ''style'') - returns integer
    height of the text with the specified attributes in pixels
   gettextwidth(''zoom'', ''font'', ''style'', ''text'') - returns integer
    width of the specified text in pixels
   gettotalupdatepackagesize() - returns integer
   gettotalupdatepackagesize() - returns integer
   getupdatepackage(str) - returns object
   getupdatepackage(str) - returns object
   getz(float, float) - returns float
   getz(float, float) - returns float
   hideplayer(float)
   hideplayer(''time'') !DEPRECATED
   hidesword(float)
    hides all of the player but the shadow for the specified time
   hitnpc(int, float, float, float)
   hidesword(''time'')
   hitobjects(float, float, float)
    hides the player's sword image for the specified time
   hitplayer(int, float, float, float)
   hitnpc(''id'', ''halfhearts'', ''fromx'', ''fromy'')
   isadminguild(str) - returns boolean
    hits the NPC with the specified ID for ''halfhearts'' damage
    fromx and fromy are used to calculate hurtx and hurty
   hitobjects(''halfhearts'', ''x'', ''y'')
    hits anything at the specified x and y for ''halfhearts'' damage
   hitplayer(''id'', ''halfhearts'', ''fromx'', ''fromy'')
    hits the player with the specified ID for ''halfhearts'' damage
    fromx and fromy are used to calculate hurtdx and hurtdy
   isadminguild(''guild'') - returns boolean
    checks if the specified guild appears in the staff list
   iscursoron() - returns boolean
   iscursoron() - returns boolean
   isobject(str) - returns boolean
    checks if the cursor is being shown
   keydown(int) - returns boolean
   isobject(''object'') - returns boolean
   keydown2(int, bool) - returns boolean
    checks if something is the specified object
   keyname(int) - returns string
   keydown(''integer'') - returns boolean
   lay2(str, float, float)
    checks if a certain key is being held
   loadmap(str)
      0 = up
   lowercase(str) - returns string
      1 = left
      2 = down
      3 = right
      4 = D
      5 = S
      6 = A
   keydown2(''keycode'', ''ignorecase'') - returns boolean
    checks if the key corresponding to ''keycode'' is being held
    ''ignorecase'' is whether it ignores shift/caplocks or not
   keyname(''keycode'') - returns string
    returns the key correspoding to ''keycode''
   lay2(''item'', ''x'', ''y'')
    lays an item at the specified x and y
      greenrupee
      bluerupee
      redrupee
      bombs
      darts
      heart
      glove1
      bow
      bomb
      shield
      sword
      fullheart
      superbomb
      battleaxe
      goldensword
      mirrorshield
      glove2
      lizardshield
      lizardsword
      goldrupee
      fireball
      fireblast
      nukeshot
      joltbomb
      spinattack
   loadmap(''gmap'')
    loads the specified gmap (omit the '.gmap' extension)
   lowercase(''text'') - returns string
    converts ''text'' to all lowercase characters
   matrixcreate(str, str) - returns string
   matrixcreate(str, str) - returns string
   matrixcreatefromeuler(str) - returns string
   matrixcreatefromeuler(str) - returns string
Line 182: Line 335:
   matrixmulvector(str, str) - returns string
   matrixmulvector(str, str) - returns string
   noplayerkilling()
   noplayerkilling()
   onwall(float, float) - returns boolean
    disables the ability to hurt other players
   onwall2(float, float, float, float) - returns boolean
   onwall(''x'', ''y'') - returns boolean
   onwater(float, float) - returns boolean
    checks if the specified x and y is being blocked
   onwater2(float, float, float, float) - returns boolean
   onwall2(''x'', ''y'', ''width'', ''height'') - returns boolean
   openurl(str)
    checks if anywhere in the specified area is being blocked
   openurl2(str, int, int)
   onwater(''x'', ''y'') - returns boolean
   play(str)
    checks if the specified x and y is water
   play2(str, float, float, float)
   onwater2(''x'', ''y'', ''width'', ''height'') - returns boolean
   playlooped(str)
    checks if anywhere in the specified area is water
   openurl(''url'')
    opens the specified URL in the default browser (seems to take over the first browser opened)
   openurl2(''url'', ''width'', ''height'')
    opens the specified URL in a default browser with the specified width and height
   play(''sound'')
    plays a sound file
   play2(''sound'', ''x'', ''y'', ''volume'')
    plays a sound file at the specified x and y
    1 is normal volume
   playlooped(''sound'')
    plays a sound file in a loop
   popdialog()
   popdialog()
   pushdialog(obj)
   pushdialog(obj)
   putleaps(int, float, float)
   putleaps(''leap'', ''x'', ''y'')
   radtodeg(float) - returns float
    creates an explosion-like effect at the specified x and y.
   randomstring(str) - returns string
      0 = bush
   reloadfile(str)
      1 = swamp grass
   removetiledefs(str)
      2 = rock
   replaceani(str, str)
      3 = sign
      4 = ball
      5 = water
   radtodeg(''angle'') - returns float
    converts an angle in radianss to a degree
   randomstring(''list'') - returns string
    picks a random entry out of the list
   reloadfile(''file'')
    reloads the specified file into memory
   removetiledefs(''levelstart'')
    removes any custom tilesets from all levels beginning with ''levelstart''
   replaceani(''oldgani'', ''newgani'')
    replaces a default gani with a new gani
   requestfiledeletion(str)
   requestfiledeletion(str)
   requestfilerename(str, str)
   requestfilerename(str, str)
   requestfilesmove(str, str)
   requestfilesmove(str, str)
   requesttext(str, str)
   requesttext(''type'', ''options'')
    requests certain text from the server
    calls the function 'onReceiveText(''requestedtype'',''requestedoptions'',''text'')'
      weapon, ''weaponname''
        requests the script of a specified weapon
      weaponlist
        requests a list of weapons on the server
      class, ''classname''
        requests the script of a specified class
      classlist
        requests a list of classes on the server
      options
        requests the server options
      serverflags
        requests the server flags
      folders
        requests a list of folders
      folder, ''folderpath''
        requests a list of the contents of a specified folder
   resetfocus()
   resetfocus()
   savelog(str)
    returns screen focus to the player
   say(int)
   savelog(''text'') !DEPRECATED
   say2(str)
    saves text to log.txt; use savelog2
   screenx(float, float) - returns integer
   say(''id'') !DEPRECATED
   screeny(float, float) - returns integer
    shows the text of the sign id in a message box; use say2
   say2(''text'')
    shows the specified text in a message box
   screenx(''x'', ''y'') - returns integer
    converts level x coordinates to screen x coordinates
   screeny(''x'', ''y'') - returns integer
    converts level y coordinates to screen y coordinates
   selectfilefordownload(str)
   selectfilefordownload(str)
   selectfileforupload()
   selectfileforupload()
   sendrpgmessage(str)
   sendrpgmessage(''text'')
   sendtext(str, str, params...)
    adds the specified text to the RPG log
   sendtorc(str)
   sendtext(''type'', ''options'', ''params'')
   serverwarp(str)
    saves anything requestable by 'requesttext' back to the server
   setani(str, str)
      weapon, ''weaponname''
   setbeltcolor(str)
        saves over the specified weapon's script
   setcoatcolor(str)
      class, ''classname''
        saves over the specified class's script
      options
        saves over the server options
      serverflags
        saves over the server flags
      folders
        saves over the folder config
   sendtorc(''text'')
    sends a string of text to RC chat, through the NPC-Server
   serverwarp(''server'')
    warps the player to the specified server
   setani(''gani'', ''params'')
    sets the player's gani
   setbeltcolor(''color'') !DEPRECATED
    use player.colors[#]
   setcoatcolor(''color'') !DEPRECATED
    use player.colors[#]
   setcontentcontrol(obj)
   setcontentcontrol(obj)
   setcursor2(str)
   setcursor2(str)
   seteffect(float, float, float, float)
   seteffect(''red'', ''green'', ''blue'', ''alpha'')
   setfocus(float, float)
    tints the Graal window with the specified colors and transparency
   setgender(str)
    all values are between 0 and 1
   sethead(str)
   setfocus(''x'', ''y'')
   setletters(str)
    focuses the screen on the specified x and y
   setmap(str, str, float, float)
   setgender(''gender'')
   setminimap(str, str, float, float)
    sets the player's gender to either male or female
   setmusicvolume(float, float)
   sethead(''image'') !DEPRECATED
   setplayerdir(str)
    use player.headimg
   setshield(str, int)
   setletters(''image'')
   setshoecolor(str)
    changes the image used by 'say' messages.
   setshootparams(str)
   setmap(''image'', ''levellist'', ''originx'', ''originy'')
   setskincolor(str)
    sets the large map to the specified image, using ''originx'' and ''orginy'' as the origin for head icons
   setsleevecolor(str)
    ''levellist'' is a .txt file containing a list of levels included in the map
   setsword(str, int)
   setminimap(''image'', ''levellist'', ''originx'', ''originy'')
   showstats(int)
    sets the minimap to the specified image, using ''originx'' and ''orginy'' as the origin for head icons
   spyfire(int, int)
    ''levellist'' is a .txt file containing a list of levels included in the map
   setmusicvolume(''left'', ''right'')
    changes the music volume
    values are 0 or 1
   setplayerdir(''direction'') !DEPRECATED
    use player.dir
   setshield(''image'', ''shieldpower'') !DEPRECATED
    use player.shieldimg & player.shieldpower
   setshoecolor(''color'') !DEPRECATED
    use player.colors[#]
   setshootparams(''params'')
    changes the parameters used by all new projectiles
   setskincolor(''color'') !DEPRECATED
    use player.colors[#]
   setsleevecolor(''color'') !DEPRECATED
    use player.colors[#]
   setsword(''image'', ''swordpower'') !!DEPRECATED
    use player.swordimg & player.swordpower
   showstats(''stats'')
    shows the specified parts of the screen status and hides the rest (use allstats)
   spyfire(''power'', ''length'')
    creates a single-direction explosion with the specified length
      0 = regular bomb
      2 = jolt bomb
   stopmidi()
   stopmidi()
   stopsound(str)
    stops all sound files being played
   stopsound(''sound'')
    stops the specified sound file
   strcmp(str, str) - returns integer
   strcmp(str, str) - returns integer
   strequals(str, str) - returns boolean
   strequals(''string'', ''text'') - returns boolean !DEPRECATED
    use (string == string)
   takeplayercarry()
   takeplayercarry()
    causes the player to throw it's carried object
   takeplayerhorse()
   takeplayerhorse()
   testplayer(float, float) - returns integer
    causes the player to get off it's horse
   triggeraction(float, float, str, params...)
   testplayer(''x'', ''y'') - returns integer
    returns the id of the player at the specified x and y
   triggeraction(''x'', ''y'', ''action'', ''params'')
    triggers an action at the specified positions
    catch with onAction''ACTION NAME''(''params'')
   triggerserver(str, str)
   triggerserver(str, str)
   updateboard(int, int, int, int)
   updateboard(''x'', ''y'', ''width'', ''height'')
    shows changes to tiles in a rectangle
   updateterrain()
   updateterrain()
   uppercase(str) - returns string
   uppercase(''text'') - returns string
    converts the specified text to uppercase characters
   vectoradd(str, str) - returns string
   vectoradd(str, str) - returns string
   vectorcross(str, str) - returns string
   vectorcross(str, str) - returns string
Line 258: Line 508:
   vectorscale(str, float) - returns string
   vectorscale(str, float) - returns string
   vectorsub(str, str) - returns string
   vectorsub(str, str) - returns string
   worldx(float, float) - returns float
   worldx(''x'', ''y'') - returns float
   worldy(float, float) - returns float
    converts screen coordinates to level coordinates
   wraptext(int, str, str) - returns object
   worldy(''x'', ''y'') - returns float
   wraptext2(int, float, str, str) - returns object
    converts screen coordinates to level coordinates
   wraptext(''pixels'', ''delimeters'', ''text'') - returns object
    splits a text string into an array every so many pixels or when a delimeter comes up
   wraptext2(''width'', ''zoom'', 'delimeters'', ''text'') - returns object
    splits a text string into an array every so many pixels or when a delimeter comes up


TGraalVar:
TGraalVar:
   initialized - boolean (read only)
   initialized - boolean (read only)
    the NPC has already been initialized
   joinedclasses - object (read only)
   joinedclasses - object (read only)
    list of all classes joined to the NPC
   name - string (read only)
   name - string (read only)
    name of the NPC (DBs)
   scriptlogmissingfunctions - boolean
   scriptlogmissingfunctions - boolean
   timeout - float
   timeout - float
    the time left on the timer (use setTimer(''time''))
   addarray(obj)
   addarray(obj)
   cancelevents(str)
   cancelevents(str)

Revision as of 16:04, 14 December 2005

Global:
  $pref::graal::automapping - boolean
  $pref::graal::choosenvoicecodec - integer
  $pref::graal::defaultfontsize - integer
  $pref::graal::dontconnectlevels - boolean
  $pref::graal::dontloadlistheads - boolean
  $pref::graal::dontsavepasswords - boolean
  $pref::graal::fixedport - boolean
  $pref::graal::fixedudpport - integer
  $pref::graal::language - string
  $pref::graal::limitnicknames - boolean
  $pref::graal::microactivatebyvolume - boolean
  $pref::graal::microactivationlevel - integer
  $pref::graal::microinputdevice - integer
  $pref::graal::microon - boolean
  $pref::graal::midivolume - integer
  $pref::graal::mp3volume - integer
  $pref::graal::nicknamelimit - integer
  $pref::graal::nomassmessages - boolean
  $pref::graal::notoalls - boolean
  $pref::graal::noudp - boolean
  $pref::graal::radiovolume - integer
  $pref::graal::reversestereo - boolean
  $pref::graal::sfxvolume - integer
  $pref::graal::voicevolume - integer
  allfeatures - integer (read only)
    the sum of all game features (use with enablefeatures)
  allplayerscount - integer (read only)
    the number of players on the server
  allstats - integer (read only)
    the sum of all pieces of the status (use with showstats)
  canspin - boolean (read only)
    the player has spin attack
  carriesblackstone - boolean (read only)
    the player is carrying a black (level 2) stone
  carriesbush - boolean (read only)
    the player is carrying a bush
  carriesnpc - boolean (read only)
    the player is carrying an NPC
  carriessign - boolean (read only)
    the player is carrying a sign
  carriesstone - boolean (read only)
    the player is carrying a green (level 1) stone
  carriesvase - boolean (read only)
    the player is carrying a vase
  downloadfile - string (read only)
    name of the current file being downloaded
  downloadpos - integer (read only)
    how much of the file has been downloaded in bytes
  downloadsize - integer (read only)
    size of the downloading file is in bytes
  emoticonchar - string (read only)
    the key being held with CTRL to show an emoticon
  focusx - float (read only)
    x value of the screen's focus
  focusy - float (read only)
    y value of the screen's focus
  graalversion - float (read only)
    version of the player's Graal client
  gravity - float
    effects the speed of projectiles (broken in GS2?)
  iscarrying - boolean (read only)
    the player is carrying any object
  isfocused - boolean (read only)
    the player's screen is focused somewhere other than the player
  isgraal3d - boolean (read only)  !DEPRECATED
    the player is using the Graal3 client 
  isleader - boolean (read only)
    the player is the first to have entered the level (ID 0)
  isonmap - boolean (read only)
    the player's level is attached to other levels (i.e. a gmap)
  lastdownloadfile - string (read only)
    name of the last file to be downloaded
  leftmousebutton - boolean (read only)
    the left mouse button is being held
  levelorgx - float (read only)
    the origin of the player's x position (changes when attached to NPCs)
  levelorgy - float (read only)
    the origin of the player's y position (changes when attached to NPCs)
  lighteffectsenabled - boolean (read only)
    light effects are enabled (v2 only)
  middlemousebutton - boolean (read only)
    the middle mouse button is being held
  mousebuttons - integer (read only)
    sum of mouse buttons being held
      1 = left
      2 = middle
      4 = right
  mousescreenx - integer
    position of the mouse on the graal window
  mousescreeny - integer
    position of the mouse on the graal window
  mousewheeldelta - integer (read only)
    the change in the mouse wheel's position in the last .05 seconds
  mousex - float
    position of the mouse on the level
  mousey - float
    position of the mouse on the level
  musiclen - integer (read only)
    length of the currently playing music in seconds
  musicpos - integer (read only)
    how long the music has been played
  rightmousebutton - boolean (read only)
    the right mouse button is being held
  screenheight - integer (read only)
    the height of the Graal window
  screenwidth - integer (read only)
    the width of the Graal window
  scriptedcontrols - boolean (read only)
  scriptedplayerlist - boolean (read only)
  selectedsword - integer
  selectedweapon - integer
    position of the player's currently selected weapon in the 'weapons' array.
  servername - string (read only)
    name of the server the player is connected to
  serverstartconnect - string
  serverstartparams - string
  shotbybaddy - boolean (read only) 
    the NPC was shot by a baddy (DEPRECATED?)
  shotbyplayer - boolean (read only)
    the NPC was shot by a player (DEPRECATED?)
  timevar - integer (read only)
    a global variable that rises by 1 every 5 seconds
  timevar2 - float (read only)
    how long the player's CPU has been running (time since 00:00, January 1, 2000 when used serverside)
  wasshooted - boolean (read only)
    the NPC was shot by anything
  waterheight - float
  weapons - object (read only)
    a list of weapons in the player's possesion (read as an array)
  weaponsenabled - boolean
    the player's weapons are enabled
  addcontrol(obj)
  addtiledef(''image'', ''levelstart'', ''neworder'')
    changes the tileset of all levels beginning with ''levelstart'' to the specified image
    neworder is whether the type of each tile corresponds to the original pics1.png; use 0 or 1
  addtiledef2(''image'', ''levelstart'', ''x'', ''y'')
    changes part of the tileset of all levels beginning with ''levelstart'' to the specified image, beginning at ''x'' and ''y''
  adventure_installgraal(str, bool, bool)
  adventure_openexternaloptions() - returns boolean
  adventure_openexternalpm(obj) - returns boolean
  adventure_openserverlist()
  adventure_savegraaloptions()
  adventure_selectpath(str) - returns object
  adventure_setaccountname(str)
  adventure_setchat(str)
  adventure_setnickname(str)
  adventure_setpassword(str)
  adventure_startofflinemode()
  adventure_updateaccountfield()
  adventure_updatemicroactivationlevel()
  adventure_updatemidivolume()
  adventure_updatemp3volume()
  adventure_updateplayermuted()
  adventure_updateplayerprofile(bool, str, str, int, str, str, str, str, str, str)
  adventure_updateradiovolume()
  aindexof(''float'', ''array'') - returns integer  !DEPRECATED
    use obj.index(value)
  attachplayertoobj(''type'', ''id'')
    attaches the player to the object with the specified id; currently the only type is 0 (NPC)
  callnpc(''id'', ''params'')
    use npcs[id].trigger(action, params);
  callweapon(''id'', ''params'')
    use weapons[id].trigger(action, params);
  contains(''object'', ''value'') - returns boolean
    checks if ''object'' contains the specified value in it
  cursoroff()
    hides the cursor
  cursoron()
    shows the cursor
  degtorad(''angle'') - returns float
    converts an angle in degrees to a radian
  detachplayer()
    detaches a player from an NPC
  disabledefmovement()
    disables default controls of the player's character
  disablemap()
    disables the large map
  disablepause()
    disables the pause button
  disableselectweapons()
    disables the weapon select menu
  disableweapons()
    disables usage of NPC weapons
  echo(''text'')
    sends ''text'' to RC chat
  enabledefmovement()
    enables default control of the player's character
  enablefeatures(''features'')
    enables all features specified and disables the rest (use allfeatures)
  enablemap()
    enables the large map
  enablepause()
    enables the pause button
  enableselectweapons()
    enables the weapon select menu
  enableweapons()
    enables usage of NPC weapons
  explodebomb(''id'')
    explodes the bomb with the specified id
  extractfilebase(''filepath'') - returns string
    returns the base of a file out of the file's path
  extractfileext(''filepath'') - returns string
    returns the extension of a file out of the file's path
  extractfilename(''filepath'') - returns string
    returns the name of the file out of the file's path
  extractfilepath(''filepath'') - returns string
    returns the path of the file
  fileexists(''file'') - returns boolean
    checks if a file exists
  filesize(''file'') - returns integer
    gets the size of the specified file in bytes
  fileupdate(''file'') - returns boolean
    checks if a file has been updated
  findani(''gani'') - returns object
    creates a reference to the specified gani
  findfiles(str, int) - returns object
  findlevel(''level'') - returns object
    creates a reference to the specified level
  findplayer(''account'') - returns object
    creates a reference to the specified player
  findplayerbyid(''id'') - returns object
    creates a reference to the specified player
  findweapon(''weapon'') - returns object
    creates a reference to the specified weapon
  freezeplayer(''freezetime'')
    freezes the player for the specified amount of time
  getascii(''character'') - returns integer
    returns the ascii code of the character
  getbasepackage() - returns object    
  getboxcenter(str) - returns string
  getdownloadedupdatepackagesize() - returns integer
  getdownloadingpackage() - returns object
  getdownloadingpackagescount() - returns integer
  getextension(''file'') - returns string
    returns the extension of a file
  getimgheight(''image'') - returns integer
    the height of the specified image in pixels
  getimgwidth(''image'') - returns integer
    the width of the specified image in pixels
  getkeycode(''key'') - returns integer
    the key code of the specified key
  getmapx(''level'') - returns integer
    x-position of the level on the gmap
  getmapy(''level'') - returns integer
    y-position of the level on the gmap
  getobjectat(''x'', ''y'') - returns object
    references the object at the specified x and y
  getobjectatmouse() - returns object
    references the object under the mouse
  getobjectbyray(str, str) - returns object
  getpackagesdownloadcomplete() - returns boolean
  getpackagesdownloaded() - returns boolean
  getplatform() - returns string
    the operating system of the player
  getservername() - returns string
    the server's name
  getstringkeys(''prefix'') - returns object
    creates a list of all variables beginning with ''prefix''
  gettextheight(''zoom'', ''font'', ''style'') - returns integer
    height of the text with the specified attributes in pixels
  gettextwidth(''zoom'', ''font'', ''style'', ''text'') - returns integer
    width of the specified text in pixels
  gettotalupdatepackagesize() - returns integer
  getupdatepackage(str) - returns object
  getz(float, float) - returns float
  hideplayer(''time'')  !DEPRECATED
    hides all of the player but the shadow for the specified time
  hidesword(''time'')
    hides the player's sword image for the specified time
  hitnpc(''id'', ''halfhearts'', ''fromx'', ''fromy'')
    hits the NPC with the specified ID for ''halfhearts'' damage
    fromx and fromy are used to calculate hurtx and hurty
  hitobjects(''halfhearts'', ''x'', ''y'')
    hits anything at the specified x and y for ''halfhearts'' damage
  hitplayer(''id'', ''halfhearts'', ''fromx'', ''fromy'')
    hits the player with the specified ID for ''halfhearts'' damage
    fromx and fromy are used to calculate hurtdx and hurtdy
  isadminguild(''guild'') - returns boolean
    checks if the specified guild appears in the staff list
  iscursoron() - returns boolean
    checks if the cursor is being shown
  isobject(''object'') - returns boolean
    checks if something is the specified object
  keydown(''integer'') - returns boolean
    checks if a certain key is being held
      0 = up
      1 = left
      2 = down
      3 = right
      4 = D
      5 = S
      6 = A
  keydown2(''keycode'', ''ignorecase'') - returns boolean
    checks if the key corresponding to ''keycode'' is being held
    ''ignorecase'' is whether it ignores shift/caplocks or not
  keyname(''keycode'') - returns string
    returns the key correspoding to ''keycode''
  lay2(''item'', ''x'', ''y'')
    lays an item at the specified x and y
      greenrupee
      bluerupee
      redrupee
      bombs
      darts
      heart
      glove1
      bow
      bomb
      shield
      sword
      fullheart
      superbomb
      battleaxe
      goldensword
      mirrorshield
      glove2
      lizardshield
      lizardsword
      goldrupee
      fireball
      fireblast
      nukeshot
      joltbomb
      spinattack
  loadmap(''gmap'')
    loads the specified gmap (omit the '.gmap' extension)
  lowercase(''text'') - returns string
    converts ''text'' to all lowercase characters
  matrixcreate(str, str) - returns string
  matrixcreatefromeuler(str) - returns string
  matrixmulpoint(str, str) - returns string
  matrixmultiply(str, str) - returns string
  matrixmulvector(str, str) - returns string
  noplayerkilling()
    disables the ability to hurt other players
  onwall(''x'', ''y'') - returns boolean
    checks if the specified x and y is being blocked
  onwall2(''x'', ''y'', ''width'', ''height'') - returns boolean
    checks if anywhere in the specified area is being blocked
  onwater(''x'', ''y'') - returns boolean
    checks if the specified x and y is water
  onwater2(''x'', ''y'', ''width'', ''height'') - returns boolean
    checks if anywhere in the specified area is water
  openurl(''url'')
    opens the specified URL in the default browser (seems to take over the first browser opened)
  openurl2(''url'', ''width'', ''height'')
    opens the specified URL in a default browser with the specified width and height
  play(''sound'')
    plays a sound file
  play2(''sound'', ''x'', ''y'', ''volume'')
    plays a sound file at the specified x and y
    1 is normal volume
  playlooped(''sound'')
    plays a sound file in a loop
  popdialog()
  pushdialog(obj)
  putleaps(''leap'', ''x'', ''y'')
    creates an explosion-like effect at the specified x and y.
      0 = bush
      1 = swamp grass
      2 = rock
      3 = sign
      4 = ball
      5 = water
  radtodeg(''angle'') - returns float
    converts an angle in radianss to a degree
  randomstring(''list'') - returns string
    picks a random entry out of the list
  reloadfile(''file'')
    reloads the specified file into memory
  removetiledefs(''levelstart'')
    removes any custom tilesets from all levels beginning with ''levelstart''
  replaceani(''oldgani'', ''newgani'')
    replaces a default gani with a new gani
  requestfiledeletion(str)
  requestfilerename(str, str)
  requestfilesmove(str, str)
  requesttext(''type'', ''options'')
    requests certain text from the server
    calls the function 'onReceiveText(''requestedtype'',''requestedoptions'',''text'')'
      weapon, ''weaponname''
        requests the script of a specified weapon
      weaponlist
        requests a list of weapons on the server
      class, ''classname''
        requests the script of a specified class
      classlist
        requests a list of classes on the server
      options
        requests the server options
      serverflags
        requests the server flags
      folders
        requests a list of folders
      folder, ''folderpath''
        requests a list of the contents of a specified folder
  resetfocus()
    returns screen focus to the player
  savelog(''text'')  !DEPRECATED
    saves text to log.txt; use savelog2
  say(''id'')  !DEPRECATED
    shows the text of the sign id in a message box; use say2
  say2(''text'')
    shows the specified text in a message box
  screenx(''x'', ''y'') - returns integer
    converts level x coordinates to screen x coordinates
  screeny(''x'', ''y'') - returns integer
    converts level y coordinates to screen y coordinates
  selectfilefordownload(str)
  selectfileforupload()
  sendrpgmessage(''text'')
    adds the specified text to the RPG log
  sendtext(''type'', ''options'', ''params'')
    saves anything requestable by 'requesttext' back to the server
      weapon, ''weaponname''
        saves over the specified weapon's script
      class, ''classname''
        saves over the specified class's script
      options
        saves over the server options
      serverflags
        saves over the server flags
      folders
        saves over the folder config
  sendtorc(''text'')
    sends a string of text to RC chat, through the NPC-Server
  serverwarp(''server'')
    warps the player to the specified server
  setani(''gani'', ''params'')
    sets the player's gani
  setbeltcolor(''color'')  !DEPRECATED
    use player.colors[#]
  setcoatcolor(''color'')  !DEPRECATED
    use player.colors[#]
  setcontentcontrol(obj)
  setcursor2(str)
  seteffect(''red'', ''green'', ''blue'', ''alpha'')
    tints the Graal window with the specified colors and transparency
    all values are between 0 and 1
  setfocus(''x'', ''y'')
    focuses the screen on the specified x and y
  setgender(''gender'')
    sets the player's gender to either male or female
  sethead(''image'')  !DEPRECATED
    use player.headimg
  setletters(''image'')
    changes the image used by 'say' messages.
  setmap(''image'', ''levellist'', ''originx'', ''originy'')
    sets the large map to the specified image, using ''originx'' and ''orginy'' as the origin for head icons
    ''levellist'' is a .txt file containing a list of levels included in the map
  setminimap(''image'', ''levellist'', ''originx'', ''originy'')
    sets the minimap to the specified image, using ''originx'' and ''orginy'' as the origin for head icons
    ''levellist'' is a .txt file containing a list of levels included in the map
  setmusicvolume(''left'', ''right'')
    changes the music volume
    values are 0 or 1
  setplayerdir(''direction'')  !DEPRECATED
    use player.dir
  setshield(''image'', ''shieldpower'')  !DEPRECATED
    use player.shieldimg & player.shieldpower
  setshoecolor(''color'')  !DEPRECATED
    use player.colors[#]
  setshootparams(''params'')
    changes the parameters used by all new projectiles
  setskincolor(''color'')  !DEPRECATED
    use player.colors[#]
  setsleevecolor(''color'')  !DEPRECATED
    use player.colors[#]
  setsword(''image'', ''swordpower'')  !!DEPRECATED
    use player.swordimg & player.swordpower
  showstats(''stats'')
    shows the specified parts of the screen status and hides the rest (use allstats)
  spyfire(''power'', ''length'')
    creates a single-direction explosion with the specified length
      0 = regular bomb
      2 = jolt bomb
  stopmidi()
    stops all sound files being played
  stopsound(''sound'')
    stops the specified sound file
  strcmp(str, str) - returns integer
  strequals(''string'', ''text'') - returns boolean  !DEPRECATED
    use (string == string)
  takeplayercarry()
    causes the player to throw it's carried object
  takeplayerhorse()
    causes the player to get off it's horse
  testplayer(''x'', ''y'') - returns integer
    returns the id of the player at the specified x and y
  triggeraction(''x'', ''y'', ''action'', ''params'')
    triggers an action at the specified positions
    catch with onAction''ACTION NAME''(''params'')
  triggerserver(str, str)
  updateboard(''x'', ''y'', ''width'', ''height'')
    shows changes to tiles in a rectangle
  updateterrain()
  uppercase(''text'') - returns string
    converts the specified text to uppercase characters
  vectoradd(str, str) - returns string
  vectorcross(str, str) - returns string
  vectordist(str, str) - returns float
  vectordot(str, str) - returns float
  vectorlen(str) - returns float
  vectornormalize(str) - returns string
  vectororthobasis(str) - returns string
  vectorscale(str, float) - returns string
  vectorsub(str, str) - returns string
  worldx(''x'', ''y'') - returns float
    converts screen coordinates to level coordinates
  worldy(''x'', ''y'') - returns float
    converts screen coordinates to level coordinates
  wraptext(''pixels'', ''delimeters'', ''text'') - returns object
    splits a text string into an array every so many pixels or when a delimeter comes up
  wraptext2(''width'', ''zoom'', 'delimeters'', ''text'') - returns object
    splits a text string into an array every so many pixels or when a delimeter comes up

TGraalVar:
  initialized - boolean (read only)
    the NPC has already been initialized
  joinedclasses - object (read only)
    list of all classes joined to the NPC
  name - string (read only)
    name of the NPC (DBs)
  scriptlogmissingfunctions - boolean
  timeout - float
    the time left on the timer (use setTimer(''time''))
  addarray(obj)
  cancelevents(str)
  catchevent(str, str, str)
  copyfrom(obj)
  getdatablockvars() - returns object
  getdynamicvarnames() - returns object
  geteditvarnames() - returns object
  getfunctions() - returns object
  getstaticvarnames() - returns object
  getvarnames() - returns object
  ignoreevent(str, str)
  ignoreevents(str)
  insertarray(int, obj)
  isinclass(str) - returns float
  loadfolder(str, int)
  loadlines(str)
  loadstring(str)
  loadvars(str)
  objecttype() - returns string
  savelines(str, int)
  savestring(str, int)
  savevars(str, int)
  scheduleevent(float, str, params...) - returns object
  settimer(float)
  sortascending()
  sortdescending()
  timershow()
  trigger(str, params...)

  GuiControl (TGraalVar):
    active - boolean
    awake - boolean (read only)
    canmove - boolean
    canresize - boolean
    editing - boolean
    extent - string
    height - integer
    hint - string
    horizsizing - string
    layer - integer (read only)
    minextent - string
    minsize - string - the same like "minExtent"
    parent - object (read only)
    position - string
    profile - object
    resizeheight - boolean
    resizewidth - boolean
    scrolllinex - integer
    scrollliney - integer
    showhint - boolean
    useownprofile - boolean
    vertsizing - string
    visible - boolean
    width - integer
    x - integer
    y - integer
    addcontrol(obj)
    bringtofront()
    destroy()
    getparent() - returns object
    globaltolocalcoord(str) - returns string - converts global screen coordinates to a position relative to the controls origin (0,0), can be used to know where exactly the user has clicked inside a control
    hide()
    isfirstresponder() - returns boolean
    localtoglobalcoord(str) - returns string - converts a position relative to the controls origin (0,0) to global screen coordinates, can be used to know where on the screen a control is displayed in case it is a child of another control (e.g. GuiWindowCtrl or GuiScrollCtrl)
    makefirstresponder(bool)
    pushtoback()
    resize(int, int, int, int)
    show()
    showtop() - calls show(), tabfirst() and bringtofront()
    tabfirst() - returns object

    GuiArrayCtrl (GuiControl):
      allowmultipleselections - boolean

      GuiTextListCtrl (GuiArrayCtrl):
        clipcolumntext - boolean
        columns - string - of format "0 16", offset of the tabulators
        enumerate - boolean
        fitparentwidth - boolean
        groupsortorder - string
        iconheight - integer (read only)
        iconwidth - integer (read only)
        resizecell - boolean
        selected - object (read only)
        sortcolumn - integer
        sortmode - string
        sortorder - string
        addrow(int, str) - returns object - the added row
        clearrows()
        clearselection()
        findtext(str) - returns integer - row index
        findtextid(str) - returns integer - row id
        getrowatpoint(int, int) - returns integer - row index
        getrowidatpoint(int, int) - returns integer - row id
        getrownumbyid(int) - returns integer
        getselectedid() - returns integer - row id
        getselectedids() - returns object - array of row ids
        getselectedrow() - returns integer - row index
        getselectedrows() - returns object - array of row indices
        getselectedtext() - returns string
        insertrow(int, int, str) - returns object - the inserted row
        isidselected(int) - returns boolean
        isrowselected(int) - returns boolean
        makevisible(int)
        makevisiblebyid(int)
        removerow(int)
        removerowbyid(int)
        rowcount() - returns integer
        seticonsize(int, int)
        setselectedbyid(int)
        setselectedrow(int)
        sort()

      GuiTreeViewCtrl (GuiArrayCtrl):
        clipcolumntext - boolean
        columns - string - of format "0 16", offset of the tabulators
        expanded - boolean
        expandedimage - integer
        expandedselectedimage - integer
        expandondoubleclick - boolean
        fitparentwidth - boolean
        groupsortorder - string
        image - integer
        level - integer (read only)
        name - string
        nodes - object (read only)
        parent - object (read only)
        selectedimage - integer
        sortgroup - integer
        sortmode - string
        sortorder - string
        sortvalue - integer
        visible - boolean
        x - integer (read only)
        y - integer (read only)
        addlines(obj, bool)
        addnode(str) - returns object
        addnodebypath(str, str) - returns object
        addvars(obj, bool)
        clearnodes()
        destroy()
        getfullname(str) - returns string
        getnode(str) - returns object
        getnodeat(int, int) - returns object
        getnodebypath(str, str) - returns object
        getselectednode() - returns object
        select()
        seticonsize(int, int)
        sort()

    GuiBackgroundCtrl (GuiControl):

    GuiBitmapBorderCtrl (GuiControl):
      tile - boolean

    GuiBitmapButtonCtrl (GuiControl):
      mouseoverbitmap - string
      normalbitmap - string
      pressedbitmap - string
      text - string
      setbitmap(str, int)

    GuiBitmapCtrl (GuiControl):
      bitmap - string
      wrap - boolean
      setbitmap(str)
      setvalue(int, int)

    GuiButtonBaseCtrl (GuiControl):
      buttontype - string
      checked - boolean
      groupnum - integer
      text - string
      gettext() - returns string
      performclick()
      settext(str)

      GuiBorderButtonCtrl (GuiButtonBaseCtrl):

      GuiButtonCtrl (GuiButtonBaseCtrl):
        seticonsize(int, int)

      GuiCheckBoxCtrl (GuiButtonBaseCtrl):

        GuiRadioCtrl (GuiCheckBoxCtrl):

    GuiChunkedBitmapCtrl (GuiControl):
      bitmap - string
      tile - boolean

    GuiContextMenuCtrl (GuiControl):
      clipcolumntext - boolean
      columns - string - of format "0 16", offset of the tabulators
      enumerate - boolean
      fitparentwidth - boolean
      groupsortorder - string
      iconheight - integer (read only)
      iconwidth - integer (read only)
      profile - object
      resizecell - boolean
      rows - object (read only)
      scrollprofile - object
      selected - object (read only)
      sortcolumn - integer
      sortmode - string
      sortorder - string
      textprofile - object
      width - integer
      addrow(int, str) - returns object - the added row
      clearrows()
      clearselection()
      close()
      findtext(str) - returns integer - row index
      findtextid(str) - returns integer - row id
      getrowatpoint(int, int) - returns integer - row index
      getrowidatpoint(int, int) - returns integer - row id
      getrownumbyid(int) - returns integer
      getselectedid() - returns integer - row id
      getselectedids() - returns object - array of row ids
      getselectedrow() - returns integer - row index
      getselectedrows() - returns object - array of row indices
      getselectedtext() - returns string
      insertrow(int, int, str) - returns object - the inserted row
      isidselected(int) - returns boolean
      isrowselected(int) - returns boolean
      makevisible(int)
      makevisiblebyid(int)
      open(int, int)
      removerow(int)
      removerowbyid(int)
      rowcount() - returns integer
      seticonsize(int, int)
      setselectedbyid(int)
      setselectedrow(int)
      sort()

    GuiDrawingPanel (GuiControl):
      parth - integer (read only)
      partw - integer (read only)
      partx - integer (read only)
      party - integer (read only)
      clearall()
      clearrectangle(int, int, int, int)
      drawimage(int, int, str)
      drawimagerectangle(int, int, str, int, int, int, int)
      drawimagestretched(int, int, int, int, str, int, int, int, int)

    GuiFlash (GuiControl):
      backgroundalpha - float
      loopmovie - boolean
      moviename - string
      getflashvariable(str) - returns string
      loadmovie(str, bool, float)
      playmovie()
      restartmovie()
      setbackgroundalpha(float)
      setflashvariable(str, str)
      setlooping(bool)
      stopmovie()

    GuiFrameSetCtrl (GuiControl):
      autobalance - boolean
      bordercolor - string
      borderenable - string
      bordermovable - string
      borderwidth - integer
      columncount - integer
      fudgefactor - integer
      minextent - string
      rowcount - integer
      getcolumncount() - returns integer
      getcolumnoffset(int) - returns integer
      getrowcount() - returns integer
      getrowoffset(int) - returns integer
      setcolumncount(int)
      setcolumnoffset(int, int)
      setrowcount(int)
      setrowoffset(int, int)

    GuiGraalCtrl (GuiControl):

      GuiGraal3DCtrl (GuiGraalCtrl):

    GuiInputCtrl (GuiControl):

    GuiMenuBar (GuiControl):
      addmenu(str, int)
      addmenuitem(str, str, int, str, int)
      clearmenuitems(str)
      clearmenus()
      removemenu(str)
      removemenuitem(str, str)
      setmenuitembitmap(str, str, int)
      setmenuitemchecked(str, str, bool)
      setmenuitemenable(str, str, bool)
      setmenuitemtext(str, str, str)
      setmenuitemvisible(str, str, bool)
      setmenutext(str, str)
      setmenuvisible(str, bool)

    GuiMLTextCtrl (GuiControl):
      allowcolorchars - boolean
      allowedtags - string
      alpha - float
      deniedsound - string
      disallowedtags - string
      maxchars - integer
      parsetags - boolean
      syntaxhighlighting - boolean
      text - string
      wordwrap - boolean
      addtext(str, bool)
      getcursorline() - returns integer
      getline(int) - returns string
      getlinecount() - returns integer
      getlines() - returns object - array of lines
      gettext() - returns string
      reflow()
      scrolltobottom()
      scrolltotag(int)
      scrolltotop()
      setlines(obj)
      settext(str)

      GuiMLTextEditCtrl (GuiMLTextCtrl):

        GuiPMEditCtrl (GuiMLTextEditCtrl):
          sendmasspm(obj)
          sendpm(obj)

      GuiPMCtrl (GuiMLTextCtrl):
        showpm(obj)

      GuiPMHistoryCtrl (GuiMLTextCtrl):
        showhistory(obj)

    GuiMouseEventCtrl (GuiControl):
      lockmouse - boolean

    GuiProgressCtrl (GuiControl):
      progress - float

    GuiScrollCtrl (GuiControl):
      childmargin - string
      constantthumbheight - boolean
      hscrollbar - string
      scrollpos - string
      tile - boolean
      vscrollbar - string
      wheelscrolllines - integer
      willfirstrespond - boolean
      scrolldelta(int, int)
      scrollto(int, int)

    GuiShowImgCtrl (GuiControl):
      alpha - float
      ani - string
      ani - string
      blue - float
      code - string - the old representation as 'font@style@text'
      dimension - integer
      dir - integer
      dir - integer
      emitter - object (read only)
      eulerrotation - string
      font - string
      green - float
      image - string
      imageindex - integer (read only)
      layer - integer
      layer - integer
      mode - integer - the image drawing mode (0 - add, 1 - transparent, 2 - subtract)
      offsetx - integer
      offsety - integer
      playerlook - boolean - if the animation should take it's head, body, sword, shield and attr[] from the owner (playerlook), set this to false if you want to set the images yourself by changing showimg.actor.head etc.
      polygon - object
      red - float
      rotation - float
      shape - string
      stretchx - float
      stretchy - float
      style - string
      text - string
      x - float
      y - float
      zoom - float

    GuiSliderCtrl (GuiControl):
      range - string
      ticks - integer
      value - float

    GuiTabCtrl (GuiControl):
      iconheight - integer (read only)
      iconwidth - integer (read only)
      leveling - integer
      maxvisibletabs - integer (read only)
      selected - object (read only)
      tabwidth - integer
      addrow(int, str) - returns object - the added row
      clearrows()
      clearselection()
      findtext(str) - returns integer - row index
      findtextid(str) - returns integer - row id
      getrowatpoint(int, int) - returns integer - row index
      getrowidatpoint(int, int) - returns integer - row id
      getrownumbyid(int) - returns integer
      getselectedid() - returns integer - row id
      getselectedrow() - returns integer - row index
      getselectedtext() - returns string
      insertrow(int, int, str) - returns object - the inserted row
      isidselected(int) - returns boolean
      isrowselected(int) - returns boolean
      makevisible(int)
      makevisiblebyid(int)
      removerow(int)
      removerowbyid(int)
      rowcount() - returns integer
      seticonsize(int, int)
      setselectedbyid(int)
      setselectedrow(int)

    GuiTextCtrl (GuiControl):
      text - string
      gettext() - returns string
      settext(str)

      GuiBubbleTextCtrl (GuiTextCtrl):

      GuiPopUpEditCtrl (GuiTextCtrl):
        clipcolumntext - boolean
        columns - string - of format "0 16", offset of the tabulators
        enumerate - boolean
        fitparentwidth - boolean
        groupsortorder - string
        iconheight - integer (read only)
        iconwidth - integer (read only)
        maxpopupheight - integer
        profile - object
        resizecell - boolean
        rows - object (read only)
        scrollprofile - object
        selected - object (read only)
        sortcolumn - integer
        sortmode - string
        sortorder - string
        textprofile - object
        width - integer
        addrow(int, str) - returns object - the added row
        addtext(str, int) - deprecated, use addRow() instead
        clearrows()
        clearselection()
        close()
        findtext(str) - returns integer
        findtext(str) - returns integer - row index
        findtextid(str) - returns integer - row id
        forceclose()
        forceonaction()
        getrowatpoint(int, int) - returns integer - row index
        getrowidatpoint(int, int) - returns integer - row id
        getrownumbyid(int) - returns integer
        getselected() - returns integer
        getselectedid() - returns integer - row id
        getselectedids() - returns object - array of row ids
        getselectedrow() - returns integer - row index
        getselectedrows() - returns object - array of row indices
        getselectedtext() - returns string
        insertrow(int, int, str) - returns object - the inserted row
        isidselected(int) - returns boolean
        isrowselected(int) - returns boolean
        makevisible(int)
        makevisiblebyid(int)
        open(int, int)
        removerow(int)
        removerowbyid(int)
        rowcount() - returns integer
        rowcount() - returns integer
        seticonsize(int, int)
        setselected(int)
        setselectedbyid(int)
        setselectedrow(int)
        sort()

      GuiPopUpMenuCtrl (GuiTextCtrl):
        clipcolumntext - boolean
        columns - string - of format "0 16", offset of the tabulators
        enumerate - boolean
        fitparentwidth - boolean
        groupsortorder - string
        iconheight - integer (read only)
        iconwidth - integer (read only)
        maxpopupheight - integer
        profile - object
        resizecell - boolean
        rows - object (read only)
        scrollprofile - object
        selected - object (read only)
        sortcolumn - integer
        sortmode - string
        sortorder - string
        textprofile - object
        width - integer
        addrow(int, str) - returns object - the added row
        addtext(str, int) - deprecated, use addRow() instead
        clearrows()
        clearselection()
        close()
        findtext(str) - returns integer
        findtext(str) - returns integer - row index
        findtextid(str) - returns integer - row id
        forceclose()
        forceonaction()
        getrowatpoint(int, int) - returns integer - row index
        getrowidatpoint(int, int) - returns integer - row id
        getrownumbyid(int) - returns integer
        getselected() - returns integer
        getselectedid() - returns integer - row id
        getselectedids() - returns object - array of row ids
        getselectedrow() - returns integer - row index
        getselectedrows() - returns object - array of row indices
        getselectedtext() - returns string
        insertrow(int, int, str) - returns object - the inserted row
        isidselected(int) - returns boolean
        isrowselected(int) - returns boolean
        makevisible(int)
        makevisiblebyid(int)
        open(int, int)
        removerow(int)
        removerowbyid(int)
        rowcount() - returns integer
        rowcount() - returns integer
        seticonsize(int, int)
        setselected(int)
        setselectedbyid(int)
        setselectedrow(int)
        sort()

      GuiTextEditCtrl (GuiTextCtrl):
        deniedsound - string
        historysize - integer
        password - boolean
        tabcomplete - boolean
        setselection(int, int)
        undo()

        GuiTextEditSliderCtrl (GuiTextEditCtrl):
          allowedit - string
          format - string
          increment - float
          range - string
          value - float

      GuiWindowCtrl (GuiTextCtrl):
        canclose - boolean
        canmaximize - boolean
        canminimize - boolean
        closequery - boolean
        destroyonhide - boolean
        extent - string
        maximized - boolean
        minimized - boolean
        tile - boolean

  GuiControlProfile (TGraalVar):
    align - string
    autosizeheight - boolean
    autosizewidth - boolean
    bitmap - string
    border - integer
    bordercolor - string
    bordercolorhl - string
    bordercolorna - string
    borderthickness - integer
    cankeyfocus - boolean
    cursorcolor - string
    fillcolor - string
    fillcolorhl - string
    fillcolorna - string
    fontcolor - string
    fontcolorhl - string
    fontcolorlink - string
    fontcolorlinkhl - string
    fontcolorna - string
    fontcolorsel - string
    fontsize - integer
    fontstyle - string
    fonttype - string
    justify - string - the same like "align"
    linespacing - integer
    modal - boolean
    mouseoverselected - boolean
    numbersonly - boolean
    opaque - boolean
    returntab - boolean
    soundbuttondown - string
    soundbuttonover - string
    tab - boolean
    textoffset - string
    transparency - float

  GuiCursor (TGraalVar):

  GuiTabCtrlEntry (TGraalVar):
    hint - string
    id - integer
    text - string
    gettext() - returns string
    settext(str)

  GuiTextListEntry (TGraalVar):
    active - boolean
    flickering - boolean
    id - integer
    image - integer
    selectedimage - integer
    sortgroup - integer
    sortvalue - integer
    text - string
    gettext() - returns string
    settext(str)

  GuiTreeViewNode (TGraalVar):
    expanded - boolean
    expandedimage - integer
    expandedselectedimage - integer
    image - integer
    level - integer (read only)
    name - string
    parent - object (read only)
    selectedimage - integer
    sortgroup - integer
    sortvalue - integer
    visible - boolean
    x - integer (read only)
    y - integer (read only)
    addlines(obj, bool)
    addnode(str) - returns object
    addnodebypath(str, str) - returns object
    addvars(obj, bool)
    clearnodes()
    destroy()
    getfullname(str) - returns string
    getnode(str) - returns object
    getnodebypath(str, str) - returns object
    select()

  TDrawableObject (TGraalVar):
    layer - integer (read only)

    TBaddy (TDrawableObject):
      dir - integer
      headdir - integer
      mode - integer
      power - integer
      type - integer
      x - float
      y - float

    TLevelObject (TDrawableObject):
      level - object (read only)
      x - float
      y - float
      z - float

      TExplosion (TLevelObject):
        dir - integer (read only)
        power - integer (read only)
        time - float (read only)

      TGaniObject (TLevelObject):
        ani - object (read only)
        anistep - integer (read only)
        attachid - integer (read only)
        attachtype - integer (read only)
        attr - object (read only)
        body - string
        bodyimg - string
        colors - object (read only)
        dir - integer
        head - string
        headimg - string
        shield - string
        sprite - integer
        sword - string
        getimageforsprite(obj) - returns string
        getsprite(str) - returns object
        getspriteforspritepos(obj) - returns object

        TProjectile (TGaniObject):
          angle - float (read only)
          fromplayer - object (read only)
          horiz - boolean (read only)
          params - object (read only)
          speed - float (read only)
          x - float (read only)
          y - float (read only)
          z - float (read only)
          zspeed - float (read only)

        TServerHorse (TGaniObject):
          bombpower - integer
          bombs - integer
          bushes - integer
          dir - integer
          type - integer

        TServerPlayer (TGaniObject):
          account - string (read only)
          ap - integer
          attached - boolean (read only)
          bombs - integer
          chat - string
          darts - integer
          fullhearts - integer (read only)
          glovepower - integer
          gralats - integer
          guild - string (read only)
          headimg - string
          headset - integer
          hearts - float (read only)
          horseimg - string (read only)
          hp - float (read only)
          id - integer (read only)
          isadmin - boolean (read only)
          ischannel - boolean (read only)
          ischannelopen - boolean (read only)
          ischanneluser - boolean (read only)
          isexternal - boolean (read only)
          isfemale - boolean (read only)
          isignoring - boolean (read only)
          isloggedin - boolean (read only)
          ismale - boolean (read only)
          ismuted - boolean (read only)
          ismuting - boolean (read only)
          maxhp - integer (read only)
          messagebubble - integer (read only)
          mp - integer
          nick - string
          rupees - integer - better use 'gralats'
          shieldimg - string
          shieldpower - integer (read only)
          swordimg - string
          swordpower - integer (read only)
          x - float
          y - float
          isguildpm() - returns boolean
          ismasspm() - returns boolean
          pmswaiting() - returns boolean
          showprofile()

          TPlayer (TServerPlayer):
            ap - integer
            chat - string
            freezetime - float
            hearts - float
            horseimg - string
            hp - float
            hurt - boolean (read only)
            hurtdx - float (read only)
            hurtdy - float (read only)
            hurted - boolean (read only)
            hurtpower - float (read only)
            isfemale - boolean (read only)
            ismale - boolean (read only)
            letters - string
            map - boolean (read only)
            nick - string (read only)
            onhorse - boolean (read only)
            online - boolean (read only)
            paused - boolean (read only)
            reading - boolean (read only)
            shieldimg - string
            sprite - integer
            swimming - boolean (read only)
            swordimg - string
            transform - string
            weapon - object (read only)
            weapons - object (read only)

          TServerNPC (TServerPlayer):
            actionplayer - integer (read only)
            hearts - float
            height - float (read only)
            horseimg - string
            hp - float
            hurtdx - float
            hurtdy - float
            image - string
            layer - integer
            peltwithblackstone - boolean (read only)
            peltwithbush - boolean (read only)
            peltwithnpc - boolean (read only)
            peltwithsign - boolean (read only)
            peltwithstone - boolean (read only)
            peltwithvase - boolean (read only)
            save - object (read only)
            shieldpower - integer
            sprite - integer
            swordpower - integer
            visible - boolean
            width - float (read only)
            x - float
            y - float
            blockagain()
            blockagainlocal()
            canbecarried()
            canbepulled()
            canbepushed()
            cannotbecarried()
            cannotbepulled()
            cannotbepushed()
            carryobject(str)
            changeimgcolors(int, float, float, float, float)
            changeimgmode(int, int)
            changeimgpart(int, int, int, int, int)
            changeimgvis(int, int)
            changeimgzoom(int, float)
            destroy()
            dontblock()
            dontblocklocal()
            drawaslight()
            drawoverplayer()
            drawunderplayer()
            findimg(int) - returns object
            hide()
            hideimg(int)
            hideimgs(int, int)
            hidelocal()
            hurt(int)
            lay(str)
            message(str)
            move(float, float, float, int)
            setbow(str)
            setcharani(str, str)
            setchargender(str)
            setcoloreffect(float, float, float, float)
            seteffectmode(int)
            setimg(str)
            setimgpart(str, int, int, int, int)
            setshape(int, int, int)
            setshape2(int, int, obj)
            setzoomeffect(float)
            shootarrow(int)
            shootball()
            shootfireball(int)
            shootfireblast(int)
            shootnuke(int)
            show()
            showani(int, float, float, int, str) - returns object
            showani2(int, float, float, float, int, str) - returns object
            showcharacter()
            showimg(int, str, float, float) - returns object
            showimg2(int, str, float, float, float) - returns object
            showlocal()
            showpoly(int, obj) - returns object
            showpoly2(int, obj) - returns object
            showtext(int, float, float, str, str, str) - returns object
            showtext2(int, float, float, float, str, str, str) - returns object
            take(str)
            take2(int)
            takehorse(int)
            throwcarry()
            timereverywhere()
            toweapons(str)

            TServerWeapon (TServerNPC):
              isweapon - boolean (read only)

      TServerBomb (TLevelObject):
        power - integer
        time - float

      TServerCarry (TLevelObject):

      TServerChest (TLevelObject):
        isopen - boolean (read only)
        item - string (read only)

      TServerExtra (TLevelObject):
        time - float (read only)
        type - integer (read only)

      TServerFlying (TLevelObject):
        dir - integer (read only)
        dx - float
        dy - float
        from - integer (read only)
        type - integer (read only)

      TServerLeap (TLevelObject):

      TServerSign (TLevelObject):
        text - string

      TShowImg (TLevelObject):
        alpha - float
        ani - string
        blue - float
        code - string - the old representation as 'font@style@text'
        dimension - integer
        dir - integer
        emitter - object (read only)
        eulerrotation - string
        font - string
        green - float
        image - string
        imageindex - integer (read only)
        layer - integer
        mode - integer - the image drawing mode (0 - add, 1 - transparent, 2 - subtract)
        playerlook - boolean - if the animation should take it's head, body, sword, shield and attr[] from the owner (playerlook), set this to false if you want to set the images yourself by changing showimg.actor.head etc.
        polygon - object
        red - float
        rotation - float
        shape - string
        stretchx - float
        stretchy - float
        style - string
        text - string
        x - float
        y - float
        zoom - float

  TDrawingPanel (TGraalVar):
    height - integer (read only)
    parth - integer (read only)
    partw - integer (read only)
    partx - integer (read only)
    party - integer (read only)
    width - integer (read only)
    clearall()
    clearrectangle(int, int, int, int)
    drawimage(int, int, str)
    drawimagerectangle(int, int, str, int, int, int, int)
    drawimagestretched(int, int, int, int, str, int, int, int, int)

  TFrameDetail (TGraalVar):
    bordercolor - string
    borderenable - string
    bordermovable - string
    borderwidth - integer
    minextent - string

  TGaniParam (TGraalVar):

  TGraalAni (TGraalVar):
    continuous - boolean
    ganitype - string (read only)
    loop - boolean
    movie - boolean
    setbackto - string
    singledirection - boolean
    addsprite(int) - returns object
    addstep() - returns object
    deletesprite(int)
    deletestep(int)
    getsprite(int) - returns object
    insertstep(int) - returns object

  TGraalAniPart (TGraalVar):
    attr - integer
    dx - integer
    dy - integer
    param - integer
    sprite - object

  TGraalAniSound (TGraalVar):
    delay - float
    dx - float
    dy - float
    sound - string

  TGraalAniSprite (TGraalVar):
    alpha - float
    blue - float
    description - string
    green - float
    height - integer
    image - string
    imagetype - string (read only)
    mode - integer
    red - float
    spriteindex - integer
    width - integer
    x - integer
    y - integer
    zoom - float
    addattachment() - returns object
    deleteattachment(int)
    insertattachment(int) - returns object

  TGraalAniStep (TGraalVar):
    delay - float
    addpos(int) - returns object
    deletepos(int, int)
    insertpos(int, int) - returns object

  TGraalSpriteAttachment (TGraalVar):
    behind - boolean
    dx - integer
    dy - integer
    sprite - object

  TParticle (TGraalVar):
    angle - float
    lifetime - float
    movementvector - string
    speed - float
    spin - float
    zangle - float

  TParticleEmitter (TGraalVar):
    attachposition - boolean
    autorotation - boolean
    checkbelowterrain - boolean
    clippingbox - string
    currentparticlecount - integer (read only)
    delaymax - float
    delaymin - float
    emissionoffset - string
    emittedparticles - integer (read only)
    firstinfront - boolean
    maxparticles - integer
    nrofparticles - integer
    particle - object (read only)
    addemitmodifier(str, float, float, str, str, float, float) - returns object
    addglobalmodifier(str, float, float, str, str, float, float) - returns object
    addlocalmodifier(str, float, float, str, str, float, float) - returns object
    emit()

  TParticleModifier (TGraalVar):
    addmod(str, str, float, float)

  TServerLevel (TGraalVar):
    compsdead - boolean (read only)
    isnopkzone - boolean (read only)
    issparringzone - boolean (read only)
    nopkzone - boolean (read only) - same like 'isnopkzone'
    hitcompu(int, int, float, float)
    putbomb(int, float, float)
    putcomp(str, float, float)
    putexplosion(int, float, float)
    putexplosion2(int, int, float, float)
    puthorse(str, float, float)
    putnewcomp(str, float, float, str, int)
    reflectarrow(int)
    removearrow(int)
    removebomb(int)
    removecompus()
    removeexplo(int)
    removehorse(int)
    removeitem(int)
    setz(int, int, int, int, float, float, float, float)
    shoot(float, float, float, float, float, float, str, str)
    testbomb(float, float) - returns integer
    testexplo(float, float) - returns integer
    testhorse(float, float) - returns integer
    testitem(float, float) - returns integer
    testnpc(float, float) - returns integer
    testsign(float, float) - returns integer
    tiletype(float, float) - returns integer

  TServerLevelLink (TGraalVar):
    destx - float (read only)
    desty - float (read only)
    height - float (read only)
    width - float (read only)
    x - float (read only)
    y - float (read only)

  TShowImg_Values (TGraalVar):
    alpha - float
    blue - float
    green - float
    mode - integer - the image drawing mode (0 - add, 1 - transparent, 2 - subtract)
    red - float
    rotation - float
    stretchx - float
    stretchy - float
    zoom - float

    TShowImg_Gani (TShowImg_Values):
      actor - object (read only)

    TShowImg_Image (TShowImg_Values):
      height - float
      parth - integer
      partw - integer
      partx - integer
      party - integer
      width - float

    TShowImg_Shape (TShowImg_Values):
      mounts - object (read only)
      setshapeanimation(str, float, bool) - returns boolean

  TShowImgMount (TGraalVar):
    node - integer
    shape - string

  TStaticVar (TGraalVar):
    destroy()

  TUpdatePackage (TGraalVar):
    description - string (read only)
    downloadcomplete - boolean (read only)
    downloadedsize - integer (read only)
    filecount - integer (read only)
    filedownloadedsize - integer (read only)
    filename - string (read only)
    filetotalsize - integer (read only)
    isuninstalled - boolean (read only)
    lastdownloadfile - string (read only)
    localversion - float (read only)
    mode - string (read only)
    name - string (read only)
    parent - object (read only)
    platform - string (read only)
    protectoverwrite - boolean (read only)
    totalsize - integer (read only)
    usechecksum - boolean (read only)
    version - float (read only)
    reinstall() - returns boolean
    uninstall() - returns boolean
    update() - returns boolean