Grrrr, this is where an actual example of scripting in the docs would be awesome.
I have an issue with a unit, that takes a child. The child then takes an option that needs to modify the parent units stat with an eval script.
here's what I have currently: (Shields is a text field)
if (parent.unit.stat[Shields] = "1") then
parent.stat[Shields] = "1/2"
endif
I've tried parent.stat, unit.parent, parent.unit they all say undeclared variable! What is the correct sytax here?!?!?!
I have an issue with a unit, that takes a child. The child then takes an option that needs to modify the parent units stat with an eval script.
here's what I have currently: (Shields is a text field)
if (parent.unit.stat[Shields] = "1") then
parent.stat[Shields] = "1/2"
endif
I've tried parent.stat, unit.parent, parent.unit they all say undeclared variable! What is the correct sytax here?!?!?!