Skip to main content

epScript Constants Reference

TrgCount​

All: 0
Other integers

TrgModifier​

SetTo: 7 // =
Add: 8 // +=
Subtract: 9 // -= (It can be reduced to zero at most, even if a number greater than the current value is subtracted)

TrgComparison​

AtLeast: 0 // >=
AtMost: 1 // <=
Exactly: 10 // ==

TrgSwitchState​

Set: 2
Cleared: 3

TrgSwitchAction​

Set: 4
Clear: 5
Toggle: 6
Random: 11

TrgResource​

Ore: 0
Gas: 1
OreAndGas: 2

TrgAllyStatus​

Enemy: 0
Ally: 1
AlliedVictory: 2

TrgOrder​

Move: 0
Patrol: 1
Attack: 2

TrgPropState​

Enable: 4
Disable: 5
Toggle: 6

TrgScore​

Total: 0
Units: 1
Buildings: 2
UnitsAndBuildings: 3
Kills: 4
Razings: 5
KillsAndRazings: 6
Custom: 7

TrgLocation​

// There are a total of 255 locations/areas, numbered from 0 to 63, 65 to 255
// Location 64 represents "Anywhere"
"Location 1~64": 0~63
"Anywhere": 64
"Location 66~256": 65~255
// When euddraft compiles, it removes all location/area names from the map string table. Location/area names therefore do not exist at runtime and are only used by map developers for identification.

TrgSwitch​

// There are a total of 256 switches, numbered 0 to 255
"Switch 1~256": 0~255
// When euddraft compiles, it removes all switch names from the map string table. Switch names therefore do not exist at runtime and are only used by map developers for identification.

TrgPlayer​

TrgUnit​

TrgAIScript​

Weapon​

Tech​

Upgrade​

UnitOrder​

Flingy​

Image​

Icon​

Iscript​

Portrait​

Sprites​

StatText​