• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Main condition?

Status
Not open for further replies.
I fell so sill, for asking this...

So lets say i have a main condition like this
  • (Life of Unit[1]) Greater than or equal to (75.00 x (Real((Level of Black Arrow for Unit[1]))))
Nothing special right?

Now i set the variables in the actions
  • Set Unit[1] = (Triggering unit)
See the point?

I use that variable in condition before i even set the variable...could something go wrong or i should just use condition like that?

  • (Life of (Triggering unit)) Greater than or equal to (75.00 x (Real((Level of Black Arrow for (Triggering unit)))))
I mean could something fuck up in the further actions?

Thanks!

~Berz
 
Remove the condition and do this instead..

Because the variable has to be set before it can be used..

  • Actions
  • Set Unit[1] = (Triggering unit)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Life of (Unit[1])) Greater than or equal to (75.00 x (Real((Level of Black Arrow for (Unit[1])))))
    • Then - Actions
      • (other actions)
    • Else - Actions
      • Do Nothing
 
Status
Not open for further replies.
Top