GUI Triggering is still annoying to get around, but they definitely added some nice things...
You can now make functions, choosing the return type, and adding parameters to it and such.
It finally natively has structs, which in GUI are called "Records"
Code: Select all
SomeTrigger
Events
TriggerAddEventMapInit()
Local Variables
i = 0 <int>
extraUnitData <UnitDataPlus[7]>
Conditions
Actions
While()
Conditions
Comparison(i, <, 8)
Actions
SetVariable(i, (ArithmeticInt(i, +, 1)))
SetVariable(extraUnitData[i].energy, 10.0)
SetVariable(extraUnitData[i].satiation, 10.0)
Code: Select all
SetVariable
var: extraUnitData
Index 1: i
Member: energy
val: 10.0
Code: Select all
Inquery
Variables
YARRRR <YesYouCan>
Code: Select all
node
Variables
val = 0 <int>
link <nodeLister>
Code: Select all
nodeLister
Variables
next <node>
prev <node>
NVM! When I open up members for node in making a comparison or setting a value, it crashes.