• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[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