User Tools

Site Tools


crpl:docs:getscriptvar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
crpl:docs:getscriptvar [2014/01/24 12:22] – Added varaible names for exisitng units pawel345crpl:docs:getscriptvar [2021/02/05 11:43] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
-~~DISCUSSION~~+
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#script_commands|Script Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#script_commands|Script Commands]]
-=====  getScriptVar  =====+=====  GetScriptVar  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
Line 8: Line 8:
  
 === Description === === Description ===
-Gets the named variable on the specified unit script.+Gets the named variable on the specified unit script.  
 List of variables for existing units(for builds 1.66 and newer): List of variables for existing units(for builds 1.66 and newer):
 +
 +Returns a special null value if the script or unit does not exist. This value is the same as zero for most intents and purposes.
  
 Emitter Emitter
-   STARTTIME +  Script: 0 
-   FINISHTIME +   
-   PRODUCTIONINTERVAL +  STARTTIME 
-   PRODUCTIONAMT+    Number of frames before emitter starts production. 
 +  FINISHTIME 
 +    Untested. Probably number of frames before emitter halts production. 
 +  PRODUCTIONINTERVAL 
 +    Number of frames between each creeper production. 
 +  PRODUCTIONAMT 
 +    The amount of creeper produced per production, multiplied by 1000000.
  
 SporeTower SporeTower
-   STARTTIME +  Script: 0 
-   WAVEINTERVAL +   
-   WAVECOUNT +  STARTTIME 
-   SPOREPAYLOAD+    The number of frames before the tower starts producing spores. 
 +  WAVEINTERVAL 
 +    The number of frames between each wave of spores. 
 +  WAVECOUNT 
 +    The number of spores in each wave. 
 +  SPOREPAYLOAD 
 +    The amount of creeper that each spores dumps on the map when it lands, multiplied by 1000000.
  
 AETower AETower
-   RANGE+  Script: 0 
 +   
 +  RANGE 
 +    The size of the exclusion zone.
  
 RunnerNest RunnerNest
-   SPAWNINTERVAL +  Script: 0 
-   MAXPOPULATION +   
-   MOVESPEED +  SPAWNINTERVAL 
-   RUNNERMAXHEALTH +    The number of frames between the production of each runner 
-   CREEPERPAYLOAD+  MAXPOPULATION 
 +    The maximum number of runners produced by this nest on the map at any given time. 
 +  MOVESPEED 
 +    The movement speed in pixels per second of each runner. 
 +  RUNNERMAXHEALTH 
 +    The maximum health and starting health of each runner. 
 +  CREEPERPAYLOAD 
 +    The amount of creeper that each runner dumps to the map when it dies or is killed, multiplied by 1000000.
  
 Inhibitor Inhibitor
-   STARTTIME +  Script: 0 
-   PRODUCTIONINTERVAL +   
-   PRODUCTIONAMT +  STARTTIME 
-   RANGE+    The number of frames before the inhibitor starts producing creeper. 
 +  PRODUCTIONINTERVAL 
 +    The number of frames between each production of creeper. 
 +  PRODUCTIONAMT 
 +    The amount of creeper produced. 
 +  RANGE 
 +    The range of the aerial exclusion zone. Set to 0 for none.
  
 ResourcePack ResourcePack
-   AMT +  Script: 0 
-   MAXAMT +   
-   RESOURCETYPE {'ENERGY''ORE', 'AETHER'}+  AMT 
 +    The starting amount that the pack carries. Must be less than MAXAMT. 
 +  MAXAMT 
 +    The maximum amount that the pack carries. 
 +  RESOURCETYPE 
 +    The type of resource that the pack carries. Either ENERGY, ORE or AETHER
 +     
 +Guppy Pad (added in 1.68) 
 +  Script: "" 
 +   
 +  MODE 
 +    The type of cargo that the guppy ferries. Either PACKET, ORE or AC.
        
 +Artifact of Odin (AOO) 
 +  Script: 0 
 +   
 +  TYPE 
 +    The type of AoO. Either FREEZE, MASS or CONVERT.
  
 === Examples === === Examples ===
crpl/docs/getscriptvar.1390584150.txt.gz · Last modified: 2014/10/01 15:02 (external edit)