constants.txt
STATEMENT 
		PUSH
		READ
		WRITE
		DELETE
		REFREAD
		REFWRITE
		REFEXISTS
		REFDELETE
		EXISTS
		CLEARLOCALS
		READGLOBAL
		WRITEGLOBAL
		DELETEGLOBAL
		REFREADGLOBAL
		REFWRITEGLOBAL
		REFEXISTSGLOBAL
		REFDELETEGLOBAL
		EXISTSGLOBAL
		CLEARGLOBALS
		OPENTRAN
		CLOSETRAN
		OPENBRACKET
		CLOSEBRACKET
		NOTPERSIST
		IF
		ELSE
		ENDIF
		DO
		LOOP
		I
		J
		K
		WHILE
		REPEAT
		ENDWHILE
		BREAK
		ONCE
		ENDONCE
		INVOCATIONCOUNT
		DELAY
		RANDINT
		RANDFLOAT
		DUP
		DUP2
		SWAP
		POP
		CLEARSTACK
		STACKSIZE
		ASINT
		ASFLOAT
		GT
		GTE
		LT
		LTE
		EQ
		NEQ
		EQ0
		NEQ0
		ADD
		SUB
		MUL
		DIV
		MOD
		ABS
		ROUND
		NEG
		SIN
		COS
		TAN
		ASIN
		ACOS
		ATAN
		ATAN2
		PI
		TAU
		TWOPI
		HALFPI
		QUARTERPI
		E
		RAD2DEG
		DEG2RAD
		SIGNALGENERATOR
		POW
		SQRT
		LOG
		LN
		LOG10
		MIN
		MAX
		FLOOR
		CEIL
		APPROXIMATELY
		AVG2
		AND
		OR
		XOR
		NOT
		TRUE
		FALSE
		DOUBLEQUOTE
		CR
		LF
		GETTYPE
		CREATELIST
		CREATELISTSTARTINGSIZE
		GETLISTELEMENT
		SETLISTELEMENT
		SETLISTELEMENTRPN
		APPENDTOLIST
		PREPENDTOLIST
		APPENDSTACKTOLIST
		PREPENDSTACKTOLIST
		INSERTLISTELEMENT
		REMOVELISTELEMENT
		GETLISTCOUNT
		COPYLIST
		DEEPCOPYLIST
		GETKEY
		GETKEYDOWN
		GETKEYUP
		GETMOUSEBUTTON
		GETMOUSEBUTTONDOWN
		GETMOUSEBUTTONUP
		GETMOUSEPOSITION
		GETMOUSESCREENPOSITION
		GETMOUSESCREENPIXELPOSITION
		GETMOUSECELL 
		RESETGAMETIME
		SETGAMETIME
		SETGAMETIMEFRAMES
		GETGAMETIMEFRAMES 
		PAUSEGAME
		UNPAUSEGAME
		OPERATEWHILEPAUSED
		ISPAUSED
		USERCANCELED
		DISTANCE
		SHORTESTANGLE
		CONCAT
		SUBSTRING
		STARTSWITH
		ENDSWITH
		SPLIT
		STRINGTOLIST
		STRINGLENGTH
		TOUPPER
		TOLOWER
		STRINGREPLACE
		MAPWIDTH
		MAPHEIGHT
		SCREENWIDTH
		SCREENHEIGHT
		RANDXCOORD
		RANDYCOORD
		RANDCOORDS
		RANDCOORDSINRANGE
		CURRENTCOORDS
		CURRENTX
		CURRENTY
		SETUNITCURRENTCOORDS
		SETUNITCURRENTX
		SETUNITCURRENTY
		SETCURRENTCOORDS
		SETCURRENTX
		SETCURRENTY
		CURRENTPIXELCOORDS
		GETUNITTRANSFORMPOSITION
		SETSCREENMODE
		SETSCREENCOORDS
		SETSCREENCOORDX
		SETSCREENCOORDY
		SETSCREENPIXELCOORDS
		SETSCREENPIXELCOORDX
		SETSCREENPIXELCOORDY
		GETBUILDSLOTSCREENCOORDS
		GETCONTROLPANELBUTTONSCREENCOORDS
		GETTECHPANELVISIBLE
		SETTECHPANELVISIBLE
		CELLTOPIXEL
		PIXELTOCELL
		CREATEEFFECT
		DESTROYEFFECT
		GETALLUNITSINRANGE
		GETALLSHIPSINRANGE
		GETNEARESTSHIPINRANGE
		GETCORESWITHVAR 
		ADDSCRIPTTOUNIT
		SETSCRIPTVAR
		GETSCRIPTVAR
		SETIMAGE
		REMOVEIMAGES
		SETIMAGECOLOR
		SETIMAGEROTATION
		SETIMAGEPOSITION
		SETIMAGEPOSITIONX
		SETIMAGEPOSITIONY
		SETIMAGEPOSITIONZ
		SETIMAGELAYER
		SETIMAGEORDER
		SETIMAGESCALE
		SETIMAGESCALEX
		SETIMAGESCALEY
		GETIMAGECOLOR
		GETIMAGEROTATION
		GETIMAGEPOSITION
		GETIMAGEPOSITIONX
		GETIMAGEPOSITIONY
		GETIMAGEPOSITIONZ
		GETIMAGELAYER
		GETIMAGEORDER
		GETIMAGESCALE
		GETIMAGESCALEX
		GETIMAGESCALEY
		WINMISSION
		FAILMISSION
		SETFAILONHQLOSS
		GETFAILONHQLOSS
		SETHQJUMPTIME
		SETSHOWSPECIALENDING
		PLAYSOUND
		SETTEXT
		SETTEXTCOLOR
		SETTEXTSIZE
		SETTEXTX
		SETTEXTY
		SETTEXTROTATION
		SETTEXTORDER,
		SHOWCONVERSATION
		SHOWCONVERSATIONNOPAUSE
		SHOWCONVERSATIONAUTOMODE
		CLOSECONVERSATION
		ADDCONVERSATIONMESSAGE
		CLEARCONVERSATION
		DESTROYCONVERSATION
		SHOWMESSAGE
		SHOWMESSAGEDISMISSIBLE
		WASMESSAGEDISMISSED
		CONVERSATIONSHOWING
		SPECIFICCONVERSATIONSHOWING
		CREATEINDICATORARROW
		DESTROYINDICATORARROW
		SETINDICATORARROWPOSITION
		SETINDICATORARROWROTATION
		SETINDICATORARROWCOLOR
		SELF 
		GETSHIPATTRIBUTE
		SETSHIPATTRIBUTE 
		GETATTRIBUTE
		SETATTRIBUTE 
		GETUNITTYPE
		SETTIMER0
		SETTIMER1
		SETTIMER2
		SETTIMER3
		GETTIMER0
		GETTIMER1
		GETTIMER2
		GETTIMER3
		ISEDITMODE 
		DEBUG
		TRACE
		TRACE2
		TRACE3
		TRACE4
		TRACE5
		TRACEALL
		TRACEALLSP
		TRACESTACK
		CLEARTRACELOG
		GETUPDATECOUNT 
		PRINT
		PRINT2
		PRINT3
		PRINT4
		PRINT5
		PRINTALL
		PRINTALLSP
		PRINTSTACK
		CALL
		FUNC
		RETURN
		EOS
		NULLCOMMAND
		CONST_LATHETARGETS
		CONST_CREATEENERGYSOURCEWHENDESTROYED
		CONST_CREATEAMPGEMWHENDESTROYED
		CONST_ISENEMY
		CONST_GROWSTRUC
		CONST_CREATEFOOTPRINT
		CONST_MISSIONGOAL
		CONST_TAKEMAPSPACE
		CONST_ISBUILDING
		CONST_ISDESTROYED
		CONST_SHIP_ISENEMY
		CONST_SHIP_HULLSIZE
		CONST_SHIP_HULLBUILT
		CONST_SHIP_CMCOST
		CONST_SHIP_CMBUILTAMT
		CONST_SHIP_ISCONNECTEDTOENERGYMINE
		CONST_COORDX
		CONST_COORDY
		CONST_PIXELCOORDX
		CONST_PIXELCOORDY
		CONST_RECEIVESPACKETS
		SIGNAL_NONE
		SIGNAL_SINE
		SIGNAL_SQUARE
		SIGNAL_TRIANGLE
		SIGNAL_SAWTOOTH
		SIGNAL_RANDOM
		SIGNAL_CONSTANT
		ISUNIT
		SETUNITISGOAL
		GETUNITISGOAL
		CREATEUNIT
		DESTROYUNIT
		UNITISDESTROYED
		INITCANNONSHOT
		INITMISSILE
		MOVESHIP
		ROTATESHIPTOCELL
		ROTATESHIPTOPIXEL
		ROTATESHIP
		ROTATESHIPDEGREES
		GETSHIPHULLSECTION
		GETSHIPHULLSECTIONBUILT
		DELETESHIPFROMSLOT
		GETSHIPFROMSLOT
		GETSLOTFROMSHIP
		GETSHIPNAMEFROMSLOT
		GETSHIPSLOTCOUNT
		ADDSTOCKSHIPTOINVENTORY
		ADDCUSTOMSHIPTOINVENTORY
		ADDGAMEEVENT
		ADDGAMEEVENTATCELL
		ADDGAMEEVENTATPIXEL
		SETGAMEEVENTFADETIME
		SETGAMEEVENTMESSAGE
		SETGAMEEVENTTYPE
		GETLANDCOUNT
		GETENEMYMIRECOUNT
		GETMIRECOUNT
		GETENERGYSOURCECOUNT
		GETENERGYSOURCES
		GETRANDOMENERGYSOURCE
		GETGLOBALSTOREDENERGY
		SETGLOBALSTOREDENERGY
		GETAMPGEMCOUNT
		SETAMPGEMCOUNT
		GETMAXBLUEEMERGENT
		GETMAXREDEMERGENT
		GETBLUEEMERGENTRATE
		GETREDEMERGENTRATE
		SETMAXBLUEEMERGENT
		SETMAXREDEMERGENT
		SETBLUEEMERGENTRATE
		SETREDEMERGENTRATE
		GETTECHAVAILABILITY
		GETALLOWSHIPAMP
		SETTECHAVAILABILITY
		SETALLOWSHIPAMP
		SETHULLBUILDRATEMOD
		SETPICKUPTYPE
		SETDOPPELBEHAVIOR
		SETDOPPELHOMECELL
		DESTROYPARTICLE
		DESTROYBOND 
		CREATEPARTICLE
		PARTICLEEXISTS
		GETOWNEDPARTICLECOUNT
		CREATEBOND
		BONDEXISTS
		GETPARTICLESINRANGE
		GETPARTICLESINRADIUS
		GETPARTICLECOUNTINRADIUS
		GETNEARESTTARGET
		DAMAGEPARTICLE
		ISEMERGENT
		ISHULL
		ISPARTICLE
		GETPARTICLEPOSITION
		SETPARTICLEPOSITION
		TELEPORTPARTICLE
		FINDPARTICLETARGET
		GETPARTICLEMAXSPEED
		GETPARTICLEMAXAGE
		GETPARTICLEMAXDISTANCE
		GETPARTICLEHEALTH
		GETPARTICLEDESTROYATEDGE
		GETPARTICLEMASS
		GETPARTICLEDRAG
		GETPARTICLEIMMEDIATEFORCE
		GETPARTICLETARGET
		GETPARTICLETARGETATTRACTIONINTERVAL
		GETPARTICLETARGETATTRACTIONFORCE
		GETPARTICLESAMEINTERACTION
		GETPARTICLEMOTION
		GETPARTICLEHASTELEPORTED
		SETPARTICLEMAXSPEED
		SETPARTICLEMAXAGE
		SETPARTICLEMAXDISTANCE
		SETPARTICLEHEALTH
		SETPARTICLEDESTROYATEDGE
		SETPARTICLEMASS
		SETPARTICLEDRAG
		SETPARTICLEIMMEDIATEFORCE
		SETPARTICLETARGET
		SETPARTICLETARGETATTRACTIONINTERVAL
		SETPARTICLETARGETATTRACTIONFORCE
		SETPARTICLESAMEINTERACTION
		SETPARTICLEMOTION
		SETPARTICLEFORCEPARAMS
		GETPARTICLEFORCEPARAMS
		SETPARTICLEFORCEDIRECTIONRELATIVEPARTICLE
		SETPARTICLEFORCESPEEDLIMIT
		SETPARTICLEINTERACTDELAY
		GETPARTICLEINTERACTDELAY
		SETPARTICLERETURNWHENRECALLED
		SETUNITRECALLCHILDPARTICLES
		SETBONDMOVEMENTPARAMS
		GETBONDMOVEMENTPARAMS
		GETBONDLENGTH
		SETBONDLENGTH
		GETALLCONNECTEDPARTICLES
		GETALLCONNECTEDPARTICLECOUNT
		GETALLCONNECTEDBONDS
		GETALLCONNECTEDBONDCOUNT 
		SETFIELDCELL
		CLEARALLFIELDS
		ISHQPRESENT
		GETHQS
		GETLAND
		SETLAND
		SETLANDBULK
		GETMIRE
		SETMIRE
		MIRELAND
		GROWSTRUC
		SETEMITTERPARTICLETYPE
		SETEMITTERPRODUCTIONINTERVAL
		SETEMITTERMAXPARTICLES
		SETEMITTERMAXTIME
		SETEMITTERMAXDISTANCE
		SETEMITTERMAXPARTICLESPEED
		SETEMITTERPARTICLEHEALTH
		SETEMITTERTARGETPROBABILITY
		SETEMITTEREMITTERTARGETPROBABILITY
		SETEMITTERRECALLRANGE
		SETEMITTERDESTROYEATEDGE/*typo*/
		SETEMITTERDESTROYATEDGE
		SETEMITTERENEMYPATTERN
		SETEMITTERBONDDISTANCE
		SETEMITTERBONDSTIFFNESS
		SETEMITTERMINCHAINLENGTH
		SETEMITTERMAXCHAINLENGTH
		SETEMITTERSHAPESIZE
		GETEMITTERPARTICLETYPE
		GETEMITTERPRODUCTIONINTERVAL
		GETEMITTERMAXPARTICLES
		GETEMITTERMAXTIME
		GETEMITTERMAXDISTANCE
		GETEMITTERMAXPARTICLESPEED
		GETEMITTERPARTICLEHEALTH
		GETEMITTERTARGETPROBABILITY
		GETEMITTEREMITTERTARGETPROBABILITY
		GETEMITTERRECALLRANGE
		GETEMITTERDESTROYEATEDGE/*typo*/
		GETEMITTERDESTROYATEDGE
		GETEMITTERENEMYPATTERN
		GETEMITTERBONDDISTANCE
		GETEMITTERBONDSTIFFNESS
		GETEMITTERMINCHAINLENGTH
		GETEMITTERMAXCHAINLENGTH
		GETEMITTERSHAPESIZE
		SETENERGYSOURCERATE
		SETENERGYSOURCERANGE
		SETENERGYSOURCEGROWENEMYENERGYMINE
		GETENERGYSOURCERATE
		GETENERGYSOURCERANGE
		GETENERGYSOURCEGROWENEMYENERGYMINE
		GETUNITLATHETARGETS
		GETUNITCREATEENERGYSOURCEWHENDESTROYED
		GETUNITISENEMY
		GETUNITGROWSTRUC
		GETUNITCREATEAMPGEMWHENDESTROYED
		GETUNITCREATEFOOTPRINT
		GETUNITMISSIONGOAL
		GETUNITTAKEMAPSPACE
		GETUNITISBUILDING
		GETUNITISDESTROYED
		ETUNITCOORDS
		GETUNITCOORDX
		GETUNITCOORDY
		GETUNITPIXELCOORDS
		GETUNITPIXELCOORDX
		GETUNITPIXELCOORDY
		GETUNITRECEIVESPACKETS
		GETUNITHEALTH
		GETUNITMAXHEALTH
		GETUNITENERGY
		GETUNITMAXENERGY
		GETUNITHASHEALTHBAR
		GETUNITHASENERGYBAR
		GETUNITENERGYPACKDELAY
		GETUNITPARTICLESDAMAGE
		GETUNITSHIPHULLDAMAGES
		GETUNITMIREDAMAGES
		GETUNITMIREDAMAGEAMT
		GETUNITLATHEDAMAGEAMT
		SETUNITLATHETARGETS
		SETUNITCREATEENERGYSOURCEWHENDESTROYED
		SETUNITISENEMY
		SETUNITGROWSTRUC
		SETUNITCREATEAMPGEMWHENDESTROYED
		SETUNITCREATEFOOTPRINT
		SETUNITMISSIONGOAL
		SETUNITTAKEMAPSPACE
		SETUNITISBUILDING
		SETUNITCOORDS
		SETUNITCOORDX
		SETUNITCOORDY
		SETUNITPIXELCOORDS
		SETUNITPIXELCOORDX
		SETUNITPIXELCOORDY
		SETUNITRECEIVESPACKETS
		SETUNITHEALTH
		SETUNITMAXHEALTH
		SETUNITENERGY
		SETUNITMAXENERGY
		SETUNITHASHEALTHBAR
		SETUNITHASENERGYBAR
		SETUNITENERGYPACKDELAY
		SETUNITPARTICLESDAMAGE
		SETUNITSHIPHULLDAMAGES
		SETUNITMIREDAMAGES
		SETUNITMIREDAMAGEAMT
		SETUNITLATHEDAMAGEAMT
		GETSHIPISDESTROYED
		GETSHIPROTATION
		GETSHIPCOORDS
		GETSHIPCOORDX
		GETSHIPCOORDY
		GETSHIPPIXELCOORDS
		GETSHIPPIXELCOORDX
		GETSHIPPIXELCOORDY
		GETSHIPISENEMY
		GETSHIPHULLSIZE
		GETSHIPHULLBUILT
		GETSHIPCMCOST
		GETSHIPCMBUILTAMT
		GETSHIPISCONNECTEDTOENERGYMINE
		SETSHIPROTATION
		SETSHIPCOORDS
		SETSHIPCOORDX
		SETSHIPCOORDY
		SETSHIPPIXELCOORDS
		SETSHIPPIXELCOORDX
		SETSHIPPIXELCOORDY
		SETSHIPISENEMY 
		GETSHIPROTATIONDEGREES
		SETSHIPROTATIONDEGREES
		SETSHIPTHRUSTMULTIPLIER
		GETSHIPTHRUSTMULTIPLIER
		GETSHIPHASAMP
		GETSHIPHULLWIDTH
		GETSHIPHULLHEIGH
		GETSHIPENERGY
		SETSHIPENERGY
		GETSHIPENERGYCAP
		SETSHIPENERGYCAP
		SETSHIPMODULESAMMO
		
Tech_Types
	 UPGRADE_MINE_PRODUCTION = 0;
     UPGRADE_LAND_PRODUCTION = 1;
     UPGRADE_ENERGY_RANGE = 2;
     UPGRADE_MINE_CANNONS = 3;
     UPGRADE_OMNI_CANNONS = 4;
     UPGRADE_DEFENSIVE_STRUC = 5;
     UPGRADE_MINE_DISCHARGERS = 6;
     UPGRADE_EMERGENT_CONTROL = 7;
     UPGRADE_EMITTER_CONTROL = 8;
     UPGRADE_OMNI_REACTORS = 9;
     UPGRADE_SPEED = 10; //Build and move speed
     UPGRADE_LAND_REMOVAL = 11; //Rock Burning
	 
Ship_BEHAVIOR Also Dopel_behavior (enum list)
	SIT = 0
	ROTATE = 1
	ROTATE_NEAREST_SHIP = 2
	MOVE_TO_SHIP = 3
	MOVE_TO_SHIP_SMART = 4
	DEFEND = 5
	DEFEND_ROAM = 6
	PATROL =  7
	
		

SHIP_ATTRIBUTES 
        ISENEMY
		HULLSIZE
		HULLBUILT
		CMCOST
		CMBUILTAMT
		ISCONNECTEDTOENERGYMINE
		ISDESTROYED
		COORDX
		COORDY
		PIXELCOORDX
		PIXELCOORDY
		ROTATION
		ROTATIONDEGREES
        HASAMP
		HULLWIDTH
		HULLHEIGHT
		ENERGY
		ENERGYCAP
		SETSHIPMODULESAMMO
		THRUSTMULTIPLIER
		
UNIT_ATTRIBUTES 
		LATHETARGETS
		CREATEENERGYSOURCEWHENDESTROYED
		ISENEMY
		GROWSTRUC
		CREATEAMPGEMWHENDESTROYED
		CREATEFOOTPRINT
		MISSIONGOAL
		TAKEMAPSPACE
		ISBUILDING
		ISDESTROYED
		COORDX
		COORDY
		PIXELCOORDX
		PIXELCOORDY
		RECEIVESPACKETS
		HEALTH
		MAXHEALTH
		ENERGY
		MAXENERGY
		HASHEALTHBAR
		HASENERGYBAR
		ENERGYPACKDELAY
		PARTICLESDAMAGE
		SHIPHULLDAMAGES
		MIREDAMAGES
		MIREDAMAGEAMT
		LATHEDAMAGEAMT

SIGNALTYPES 
		SIGNAL_NONE
		SIGNAL_SINE
		SIGNAL_SQUARE
		SIGNAL_TRIANGLE
		SIGNAL_SAWTOOTH
		SIGNAL_RANDOM
		SIGNAL_CONSTANT