This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:getscriptvar [2014/01/24 12:22] – Added varaible names for exisitng units pawel345 | crpl:docs:getscriptvar [2021/02/05 11:43] (current) – Rmoved discussion tag Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
- | ===== | + | ===== |
^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 |
- | | + | |
- | | + | |
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | The amount of creeper produced per production, multiplied by 1000000. | ||
SporeTower | SporeTower | ||
- | STARTTIME | + | Script: 0 |
- | | + | |
- | | + | |
- | | + | The number of frames before the tower starts producing spores. |
+ | | ||
+ | The number of frames between each wave of spores. | ||
+ | | ||
+ | The number of spores in each wave. | ||
+ | | ||
+ | The amount of creeper that each spores dumps on the map when it lands, multiplied by 1000000. | ||
AETower | AETower | ||
- | RANGE | + | Script: 0 |
+ | |||
+ | | ||
+ | The size of the exclusion zone. | ||
RunnerNest | RunnerNest | ||
- | SPAWNINTERVAL | + | Script: 0 |
- | | + | |
- | | + | |
- | | + | The number of frames between the production of each runner |
- | | + | |
+ | The maximum number of runners produced by this nest on the map at any given time. | ||
+ | | ||
+ | The movement speed in pixels per second of each runner. | ||
+ | | ||
+ | The maximum health and starting health of each runner. | ||
+ | | ||
+ | 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 |
- | | + | |
- | | + | |
- | | + | The number of frames before the inhibitor starts producing creeper. |
+ | | ||
+ | The number of frames between each production of creeper. | ||
+ | | ||
+ | The amount of creeper produced. | ||
+ | | ||
+ | The range of the aerial exclusion zone. Set to 0 for none. | ||
ResourcePack | ResourcePack | ||
- | AMT | + | Script: 0 |
- | | + | |
- | | + | |
+ | The starting amount that the pack carries. Must be less than MAXAMT. | ||
+ | | ||
+ | The maximum amount that the pack carries. | ||
+ | | ||
+ | The type of resource that the pack carries. Either | ||
+ | |||
+ | 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 === |