• 🏆 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] Level Question

Status
Not open for further replies.
Level 13
Joined
Apr 15, 2008
Messages
854
How to do something like this:

  • Trigger
    • Actions
      • If Then Else
        • If - Ability level is equal to 1
        • Then - My Actions for level 1
        • Else - Else actions for level 1
      • If Then Else
        • If - Ability level is equal to 2
        • Then - My Actions for level 2
        • Else - Else actions for level 2
      • If Then Else
        • If - Ability level is equal to 3
        • Then - My Actions for level 3
        • Else - Else actions for level 3
+rep for the people who helped me!
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
I think you wanted this, but I am not sure:

  • Level
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to YourAbility
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of YourAbility for (Triggering unit)) Equal to 1
        • Then - Actions
          • -------- The comparison above is integer comparison --------
          • -------- Unit - Level of Ability for Unit --------
          • -------- Your actions for level 1 here --------
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of YourAbility for (Triggering unit)) Equal to 2
        • Then - Actions
          • -------- Your actions for level 2 here --------
        • Else - Actions
      • -------- And so on... --------
 
Status
Not open for further replies.
Top