If a “SetUniversalVar” was written in StartTurn or StartTurnPost,will it be reset to zero in the next turn?
Posted: Sat Aug 06, 2022 3:55 pm
For instance,I intend to utilize a UniversalVar to kill the loop which shall be terminated once triggered under certain conditions. Be like this
The reinforcements shall be placed under the condition of Function(EditorWritten) rather than GetTurn() designated as a fixed number.Hence the loop must be killed once it’s “if(……)”was fulfilled and it’s {……} was executed.
However I’m not sure whether a “SetUniversalVar” written in either StartTurn or StartTurnPost,will it be reset to zero in the next turn?
Code: Select all
if(GetUniversalVar(“turntriggered”)==0)
{
If (FunctionIWritten(side,team,routed)==1)
{
……placereinforcement……
SetUniversalVar(“turntriggered”,1);
}
}
However I’m not sure whether a “SetUniversalVar” written in either StartTurn or StartTurnPost,will it be reset to zero in the next turn?