Galaxy Editor (For SCII)
Posted: April 22nd, 2010, 8:18 pm
There, a place for it!
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"
[And yes, you can use record types as members of a record, however you can't use them recursively ( no linked lists. =( )
I think I may have found a workaround for the no recursive structs, to allow for linked lists.
[/s]
NVM! When I open up members for node in making a comparison or setting a value, it crashes.
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.