Creation/Dev/Script/Client: Difference between revisions

From Graal Bible
mNo edit summary
 
mNo edit summary
Line 1: Line 1:
=Client Supported Script Features=
==Settings==
* $camera::movementspeed - float
* $pref::audio::choosenvoicecodec - integer
* $pref::audio::microactivatebyvolume - boolean
* $pref::audio::microactivationlevel - integer
* $pref::audio::microinputdevice - integer
* $pref::audio::microon - boolean
* $pref::audio::microvolumefactor - integer
* $pref::audio::midivolume - integer
* $pref::audio::mp3volume - integer
* $pref::audio::radiovolume - integer
* $pref::audio::reversestereo - boolean
* $pref::audio::sfxvolume - integer
* $pref::audio::voicevolume - integer
* $pref::graal::allowglobalpms - boolean
* $pref::graal::automapping - boolean
* $pref::graal::defaultfontsize - integer
* $pref::graal::dontconnectlevels - boolean
* $pref::graal::dontloadlistheads - boolean
* $pref::graal::dontsavepasswords - boolean
* $pref::graal::dontsavepms - boolean
* $pref::graal::fixedport - boolean
* $pref::graal::fixedudpport - integer
* $pref::graal::language - string
* $pref::graal::limitnicknames - boolean
* $pref::graal::loadbuddylistfromserver - boolean
* $pref::graal::nicknamelimit - integer
* $pref::graal::nomassmessages - boolean
* $pref::graal::notoalls - boolean
* $pref::graal::noudp - boolean
* $pref::graal::showyourselfonbuddylists - boolean
* $pref::input::mousesensitivity - float
* $pref::interior::lockarrays - boolean
* $pref::terrain::enabledetails - boolean
* $pref::video::detailfactor - float
* $pref::video::fogdistance - float
* $pref::video::fullscreenmode - string
* $pref::video::screenshotformat - string
* $pref::video::visibledistance - float
* $pref::video::windowmode - string
* $scenelighting::lightingprogress - float (read only)
==Variables==
* allfeatures - integer (read only)
* allplayerscount - integer (read only)
* allstats - integer (read only)
* canspin - boolean (read only)
* carriesblackstone - boolean (read only)
* carriesbush - boolean (read only)
* carriesnpc - boolean (read only)
* carriessign - boolean (read only)
* carriesstone - boolean (read only)
* carriesvase - boolean (read only)
* downloadfile - string (read only)
* downloadpos - integer (read only)
* downloadsize - integer (read only)
* editingmission - boolean
* emoticonchar - string (read only)
* focusx - float (read only)
* focusy - float (read only)
* graalversion - float (read only)
* gravity - float
* iscarrying - boolean (read only)
* isfocused - boolean (read only)
* isgraal3d - boolean (read only)
* isleader - boolean (read only)
* isonmap - boolean (read only)
* lastdownloadfile - string (read only)
* leftmousebutton - boolean (read only)
* levelorgx - float (read only)
* levelorgy - float (read only)
* lighteffectsenabled - boolean (read only)
* middlemousebutton - boolean (read only)
* mousebuttons - integer (read only)
* mousescreenx - integer
* mousescreeny - integer
* mousewheeldelta - integer (read only)
* mousex - float
* mousey - float
* musiclen - integer (read only)
* musicpos - integer (read only)
* rightmousebutton - boolean (read only)
* screenheight - integer (read only)
* screenwidth - integer (read only)
* scriptedcontrols - boolean (read only)
* scriptedplayerlist - boolean (read only)
* selectedlistplayers - object
* selectedsword - integer
* selectedweapon - integer
* servername - string (read only)
* serverstartconnect - string
* serverstartparams - string
* shotbybaddy - boolean (read only)
* shotbyplayer - boolean (read only)
* showterraingrid - boolean
* timevar - integer (read only)
* timevar2 - float (read only)
* wasshooted - boolean (read only)
* waterheight - float
* weapons - object (read only)
* weaponsenabled - boolean
* worldclockstopped - boolean
* worldhour - integer
* worldminute - float
* worldminutesofday - float
* worldrealsecondsperday - float
==Functions==
* addcontrol(obj)
* addmaterialmapping(str, str) - returns boolean
* addtiledef(str, str, int)
* addtiledef2(str, str, int, int)
* adventure_installgraal(str, bool, bool)
* adventure_openexternaloptions() - returns boolean
* adventure_openexternalpm(obj) - returns boolean
* adventure_openserverlist()
* adventure_quit()
* 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, obj) - returns integer
* attachplayertoobj(int, int)
* base64decode(str) - returns string
* base64encode(str) - returns string
* callnpc(int, params...)
* callweapon(int, params...)
* checksum(str) - returns float
* commandtoserver(str)
* contains(str, str) - returns boolean
* cursoroff()
* cursoron()
* degtorad(float) - returns float
* detachplayer()
* disabledefmovement()
* disablemap()
* disablepause()
* disableselectweapons()
* disableweapons()
* echo(str)
* enabledefmovement()
* enablefeatures(int)
* enablemap()
* enablepause()
* enableselectweapons()
* enableweapons()
* explodebomb(int)
* extractfilebase(str) - returns string
* extractfileext(str) - returns string
* extractfilename(str) - returns string
* extractfilepath(str) - returns string
* fileexists(str) - returns boolean
* filesize(str) - returns integer
* fileupdate(str) - returns boolean
* findani(str) - returns object
* findfiles(str, int) - returns object
* findfirstfile(str) - returns string
* findlevel(str) - returns object
* findnextfile(str) - returns string
* findplayer(str) - returns object
* findplayerbyid(int) - returns object
* findweapon(str) - returns object
* freezeplayer(float)
* getascii(str) - returns integer
* getbasepackage() - returns object
* getboxcenter(str) - returns string
* getdatablocktypes() - returns object
* getdisplaydevicelist() - returns string
* getdownloadedupdatepackagesize() - returns integer
* getdownloadingpackage() - returns object
* getdownloadingpackagescount() - returns integer
* getextension(str) - returns string
* gethttprequest(str, int, str) - returns object
* getimgheight(str) - returns integer
* getimgwidth(str) - returns integer
* getkeycode(str) - returns integer
* getmapx(str) - returns integer
* getmapy(str) - returns integer
* getobjectat(float, float) - returns object
* getobjectatmouse() - returns object
* getobjectbyray(str, str) - returns object
* getpackagesdownloadcomplete() - returns boolean
* getpackagesdownloaded() - returns boolean
* getplatform() - returns string
* getresolutionlist(str) - returns string
* getservername() - returns string
* getstringkeys(str) - returns object
* getsurfacetype(float, float) - returns string
* gettextheight(float, str, str) - returns integer
* gettextwidth(float, str, str, str) - returns integer
* gettotalupdatepackagesize() - returns integer
* getupdatepackage(str) - returns object
* getz(float, float) - returns float
* hideplayer(float)
* hidesword(float)
* hitnpc(int, float, float, float)
* hitobjects(float, float, float)
* hitplayer(int, float, float, float)
* isadminguild(str) - returns boolean
* iscursoron() - returns boolean
* isdevicefullscreenonly(str) - returns boolean
* isobject(str) - returns boolean
* keydown(int) - returns boolean
* keydown2(int, bool) - returns boolean
* keyname(int) - returns string
* lay2(str, float, float)
* lightscene() - returns boolean
* loadmap(str)
* lowercase(str) - returns string
* mapshapeanimation(str, str, str, float) - returns boolean
* matrixcreate(str, str) - returns string
* matrixcreatefromeuler(str) - returns string
* matrixmulpoint(str, str) - returns string
* matrixmultiply(str, str) - returns string
* matrixmulvector(str, str) - returns string
* md5(str) - returns string
* noplayerkilling()
* onwall(float, float) - returns boolean
* onwall2(float, float, float, float) - returns boolean
* onwater(float, float) - returns boolean
* onwater2(float, float, float, float) - returns boolean
* opengraalurl(str)
* openurl(str)
* openurl2(str, int, int)
* play(str)
* play2(str, float, float, float)
* playlooped(str)
* popdialog()
* pushdialog(obj)
* putleaps(int, float, float)
* radtodeg(float) - returns float
* randomstring(str) - returns string
* reloadfile(str)
* removetiledefs(str)
* replaceani(str, str)
* requestfiledeletion(str)
* requestfilerename(str, str)
* requestfilesmove(str, str)
* requesthttp(str, int, str) - returns object
* requestmysql(str, str, str, str, str) - returns object
* requesttext(str, str)
* requesturl(str) - returns object
* resetfocus()
* savelog(str)
* say(int)
* say2(str)
* screenx(float, float) - returns integer
* screeny(float, float) - returns integer
* selectfilefordownload(str)
* selectfileforupload()
* sendrpgmessage(str)
* sendtext(str, str, params...)
* sendtorc(str)
* serverwarp(str)
* setani(str, str)
* setbeltcolor(str)
* setcoatcolor(str)
* setcontentcontrol(obj)
* setcursor2(str)
* seteffect(float, float, float, float)
* setfocus(float, float)
* setfogcolors(obj)
* setgender(str)
* sethead(str)
* setinteriorrendermode(int)
* setletters(str)
* setmap(str, str, float, float)
* setminimap(str, str, float, float)
* setmusicvolume(float, float)
* setplayerdir(str)
* setshadowdetaillevel(float)
* setshield(str, int)
* setshoecolor(str)
* setshootparams(str)
* setskincolor(str)
* setskybandcolors(obj)
* setskybandsizes(obj)
* setsleevecolor(str)
* setsuncolors(obj)
* setsword(str, int)
* setterrainrendermode(int)
* showstats(int)
* spyfire(int, int)
* stopmidi()
* stopsound(str)
* strcmp(str, str) - returns integer
* strequals(str, str) - returns boolean
* synctimeofday(float, float)
* takeplayercarry()
* takeplayerhorse()
* testplayer(float, float) - returns integer
* triggeraction(float, float, str, params...)
* triggerserver(str, str)
* updateboard(int, int, int, int)
* updateratings(obj) - returns object - updates an array of {rating1,ratingdeviation1, rating2,ratingdeviation2, ...}, init them at 1500 and 350
* updateterrain()
* updatevisibledistance()
* uppercase(str) - returns string
* 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(float, float) - returns float
* worldy(float, float) - returns float
* wraptext(int, str, str) - returns object
* wraptext2(int, float, str, str) - returns object
==Objects==
* [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]
* [[Creation/Dev/Script/Client/TGraalVar|TGraalVar]]
** [[Creation/Dev/Script/Client/ActionMap|ActionMap]]
** [[Creation/Dev/Script/Client/ActionMap|ActionMap]]

Revision as of 03:02, 27 January 2006

Client Supported Script Features

Settings

  • $camera::movementspeed - float
  • $pref::audio::choosenvoicecodec - integer
  • $pref::audio::microactivatebyvolume - boolean
  • $pref::audio::microactivationlevel - integer
  • $pref::audio::microinputdevice - integer
  • $pref::audio::microon - boolean
  • $pref::audio::microvolumefactor - integer
  • $pref::audio::midivolume - integer
  • $pref::audio::mp3volume - integer
  • $pref::audio::radiovolume - integer
  • $pref::audio::reversestereo - boolean
  • $pref::audio::sfxvolume - integer
  • $pref::audio::voicevolume - integer
  • $pref::graal::allowglobalpms - boolean
  • $pref::graal::automapping - boolean
  • $pref::graal::defaultfontsize - integer
  • $pref::graal::dontconnectlevels - boolean
  • $pref::graal::dontloadlistheads - boolean
  • $pref::graal::dontsavepasswords - boolean
  • $pref::graal::dontsavepms - boolean
  • $pref::graal::fixedport - boolean
  • $pref::graal::fixedudpport - integer
  • $pref::graal::language - string
  • $pref::graal::limitnicknames - boolean
  • $pref::graal::loadbuddylistfromserver - boolean
  • $pref::graal::nicknamelimit - integer
  • $pref::graal::nomassmessages - boolean
  • $pref::graal::notoalls - boolean
  • $pref::graal::noudp - boolean
  • $pref::graal::showyourselfonbuddylists - boolean
  • $pref::input::mousesensitivity - float
  • $pref::interior::lockarrays - boolean
  • $pref::terrain::enabledetails - boolean
  • $pref::video::detailfactor - float
  • $pref::video::fogdistance - float
  • $pref::video::fullscreenmode - string
  • $pref::video::screenshotformat - string
  • $pref::video::visibledistance - float
  • $pref::video::windowmode - string
  • $scenelighting::lightingprogress - float (read only)

Variables

  • allfeatures - integer (read only)
  • allplayerscount - integer (read only)
  • allstats - integer (read only)
  • canspin - boolean (read only)
  • carriesblackstone - boolean (read only)
  • carriesbush - boolean (read only)
  • carriesnpc - boolean (read only)
  • carriessign - boolean (read only)
  • carriesstone - boolean (read only)
  • carriesvase - boolean (read only)
  • downloadfile - string (read only)
  • downloadpos - integer (read only)
  • downloadsize - integer (read only)
  • editingmission - boolean
  • emoticonchar - string (read only)
  • focusx - float (read only)
  • focusy - float (read only)
  • graalversion - float (read only)
  • gravity - float
  • iscarrying - boolean (read only)
  • isfocused - boolean (read only)
  • isgraal3d - boolean (read only)
  • isleader - boolean (read only)
  • isonmap - boolean (read only)
  • lastdownloadfile - string (read only)
  • leftmousebutton - boolean (read only)
  • levelorgx - float (read only)
  • levelorgy - float (read only)
  • lighteffectsenabled - boolean (read only)
  • middlemousebutton - boolean (read only)
  • mousebuttons - integer (read only)
  • mousescreenx - integer
  • mousescreeny - integer
  • mousewheeldelta - integer (read only)
  • mousex - float
  • mousey - float
  • musiclen - integer (read only)
  • musicpos - integer (read only)
  • rightmousebutton - boolean (read only)
  • screenheight - integer (read only)
  • screenwidth - integer (read only)
  • scriptedcontrols - boolean (read only)
  • scriptedplayerlist - boolean (read only)
  • selectedlistplayers - object
  • selectedsword - integer
  • selectedweapon - integer
  • servername - string (read only)
  • serverstartconnect - string
  • serverstartparams - string
  • shotbybaddy - boolean (read only)
  • shotbyplayer - boolean (read only)
  • showterraingrid - boolean
  • timevar - integer (read only)
  • timevar2 - float (read only)
  • wasshooted - boolean (read only)
  • waterheight - float
  • weapons - object (read only)
  • weaponsenabled - boolean
  • worldclockstopped - boolean
  • worldhour - integer
  • worldminute - float
  • worldminutesofday - float
  • worldrealsecondsperday - float

Functions

  • addcontrol(obj)
  • addmaterialmapping(str, str) - returns boolean
  • addtiledef(str, str, int)
  • addtiledef2(str, str, int, int)
  • adventure_installgraal(str, bool, bool)
  • adventure_openexternaloptions() - returns boolean
  • adventure_openexternalpm(obj) - returns boolean
  • adventure_openserverlist()
  • adventure_quit()
  • 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, obj) - returns integer
  • attachplayertoobj(int, int)
  • base64decode(str) - returns string
  • base64encode(str) - returns string
  • callnpc(int, params...)
  • callweapon(int, params...)
  • checksum(str) - returns float
  • commandtoserver(str)
  • contains(str, str) - returns boolean
  • cursoroff()
  • cursoron()
  • degtorad(float) - returns float
  • detachplayer()
  • disabledefmovement()
  • disablemap()
  • disablepause()
  • disableselectweapons()
  • disableweapons()
  • echo(str)
  • enabledefmovement()
  • enablefeatures(int)
  • enablemap()
  • enablepause()
  • enableselectweapons()
  • enableweapons()
  • explodebomb(int)
  • extractfilebase(str) - returns string
  • extractfileext(str) - returns string
  • extractfilename(str) - returns string
  • extractfilepath(str) - returns string
  • fileexists(str) - returns boolean
  • filesize(str) - returns integer
  • fileupdate(str) - returns boolean
  • findani(str) - returns object
  • findfiles(str, int) - returns object
  • findfirstfile(str) - returns string
  • findlevel(str) - returns object
  • findnextfile(str) - returns string
  • findplayer(str) - returns object
  • findplayerbyid(int) - returns object
  • findweapon(str) - returns object
  • freezeplayer(float)
  • getascii(str) - returns integer
  • getbasepackage() - returns object
  • getboxcenter(str) - returns string
  • getdatablocktypes() - returns object
  • getdisplaydevicelist() - returns string
  • getdownloadedupdatepackagesize() - returns integer
  • getdownloadingpackage() - returns object
  • getdownloadingpackagescount() - returns integer
  • getextension(str) - returns string
  • gethttprequest(str, int, str) - returns object
  • getimgheight(str) - returns integer
  • getimgwidth(str) - returns integer
  • getkeycode(str) - returns integer
  • getmapx(str) - returns integer
  • getmapy(str) - returns integer
  • getobjectat(float, float) - returns object
  • getobjectatmouse() - returns object
  • getobjectbyray(str, str) - returns object
  • getpackagesdownloadcomplete() - returns boolean
  • getpackagesdownloaded() - returns boolean
  • getplatform() - returns string
  • getresolutionlist(str) - returns string
  • getservername() - returns string
  • getstringkeys(str) - returns object
  • getsurfacetype(float, float) - returns string
  • gettextheight(float, str, str) - returns integer
  • gettextwidth(float, str, str, str) - returns integer
  • gettotalupdatepackagesize() - returns integer
  • getupdatepackage(str) - returns object
  • getz(float, float) - returns float
  • hideplayer(float)
  • hidesword(float)
  • hitnpc(int, float, float, float)
  • hitobjects(float, float, float)
  • hitplayer(int, float, float, float)
  • isadminguild(str) - returns boolean
  • iscursoron() - returns boolean
  • isdevicefullscreenonly(str) - returns boolean
  • isobject(str) - returns boolean
  • keydown(int) - returns boolean
  • keydown2(int, bool) - returns boolean
  • keyname(int) - returns string
  • lay2(str, float, float)
  • lightscene() - returns boolean
  • loadmap(str)
  • lowercase(str) - returns string
  • mapshapeanimation(str, str, str, float) - returns boolean
  • matrixcreate(str, str) - returns string
  • matrixcreatefromeuler(str) - returns string
  • matrixmulpoint(str, str) - returns string
  • matrixmultiply(str, str) - returns string
  • matrixmulvector(str, str) - returns string
  • md5(str) - returns string
  • noplayerkilling()
  • onwall(float, float) - returns boolean
  • onwall2(float, float, float, float) - returns boolean
  • onwater(float, float) - returns boolean
  • onwater2(float, float, float, float) - returns boolean
  • opengraalurl(str)
  • openurl(str)
  • openurl2(str, int, int)
  • play(str)
  • play2(str, float, float, float)
  • playlooped(str)
  • popdialog()
  • pushdialog(obj)
  • putleaps(int, float, float)
  • radtodeg(float) - returns float
  • randomstring(str) - returns string
  • reloadfile(str)
  • removetiledefs(str)
  • replaceani(str, str)
  • requestfiledeletion(str)
  • requestfilerename(str, str)
  • requestfilesmove(str, str)
  • requesthttp(str, int, str) - returns object
  • requestmysql(str, str, str, str, str) - returns object
  • requesttext(str, str)
  • requesturl(str) - returns object
  • resetfocus()
  • savelog(str)
  • say(int)
  • say2(str)
  • screenx(float, float) - returns integer
  • screeny(float, float) - returns integer
  • selectfilefordownload(str)
  • selectfileforupload()
  • sendrpgmessage(str)
  • sendtext(str, str, params...)
  • sendtorc(str)
  • serverwarp(str)
  • setani(str, str)
  • setbeltcolor(str)
  • setcoatcolor(str)
  • setcontentcontrol(obj)
  • setcursor2(str)
  • seteffect(float, float, float, float)
  • setfocus(float, float)
  • setfogcolors(obj)
  • setgender(str)
  • sethead(str)
  • setinteriorrendermode(int)
  • setletters(str)
  • setmap(str, str, float, float)
  • setminimap(str, str, float, float)
  • setmusicvolume(float, float)
  • setplayerdir(str)
  • setshadowdetaillevel(float)
  • setshield(str, int)
  • setshoecolor(str)
  • setshootparams(str)
  • setskincolor(str)
  • setskybandcolors(obj)
  • setskybandsizes(obj)
  • setsleevecolor(str)
  • setsuncolors(obj)
  • setsword(str, int)
  • setterrainrendermode(int)
  • showstats(int)
  • spyfire(int, int)
  • stopmidi()
  • stopsound(str)
  • strcmp(str, str) - returns integer
  • strequals(str, str) - returns boolean
  • synctimeofday(float, float)
  • takeplayercarry()
  • takeplayerhorse()
  • testplayer(float, float) - returns integer
  • triggeraction(float, float, str, params...)
  • triggerserver(str, str)
  • updateboard(int, int, int, int)
  • updateratings(obj) - returns object - updates an array of {rating1,ratingdeviation1, rating2,ratingdeviation2, ...}, init them at 1500 and 350
  • updateterrain()
  • updatevisibledistance()
  • uppercase(str) - returns string
  • 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(float, float) - returns float
  • worldy(float, float) - returns float
  • wraptext(int, str, str) - returns object
  • wraptext2(int, float, str, str) - returns object

Objects