• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[General] Triggers and Abilities?

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
I want to trigger multiple abilities. However I don't want to slow down the engine.

How is it better to make them?

1) Stack them all in one trigger, with a if/then/else, like this:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to 1
    • Then - Actions
      • Do what you have to do
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Ability being cast) Equal to 2
        • Then - Actions
          • Do what you have to do
        • Else - Actions
          • etc.
2) Stack them in same trigger, but not in one condition.
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to 1
    • Then - Actions
      • Do what you have to do
    • Else - Actions
      • Do Nothing
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to 2
    • Then - Actions
      • Do what you have to do
    • Else - Actions
      • Do Nothing
3) Make a separate trigger for every one of them.
 
Status
Not open for further replies.
Top