• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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