In Add Event to Trigger, are variables evaluated at the time of definition?

crabbb622

New Member
Reaction score
9
Trigger - Add to Region <gen> the event (Unit - A unit enters (Region centered at (Position of (Picked unit)) with size (448.00, 448.00)))

Is (Picked unit) going to be valid, since there is the possibility that it won't be translated to the actual picked unit at that time, and try to fetch a picked unit from the abyss...

And what about global variables, like X? Is the event dynamic, meaning that the event changes when X changes, or is X evaluated already?
 

WilliamPa

Active Member
Reaction score
51
Picked unit works, not sure about variable, but it should be counted as a constant in the event.
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
Events are not dynamic.
But they are some work around like morphing an unit, add/remove rect/cell to a region, and so one.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
variables work with events too like when you set a variable to triggering unit and using the variable will have the same effect
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top