• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Trigger Help for Enable Abilities

Status
Not open for further replies.
Level 4
Joined
Jul 19, 2007
Messages
76
Hello guys,
Is there any other more easier way to enable abilities.
  • Unit
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Unit
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 2
        • Then - Actions
          • Player - Enable Abilities[1] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 3
        • Then - Actions
          • Player - Enable Abilities[2] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 4
        • Then - Actions
          • Player - Enable Abilities[3] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 5
        • Then - Actions
          • Player - Enable Abilities[4] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 6
        • Then - Actions
          • Player - Enable Abilities[5] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 7
        • Then - Actions
          • Player - Enable Abilities[6] for (Owner of (Triggering unit))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Triggering unit)) Equal to 4
        • Then - Actions
          • Unit - Increase level of Flurry of Burning oils for (Triggering unit)
        • Else - Actions
Thanks in advance.
 
Level 6
Joined
Jul 22, 2008
Messages
243
  • Unit
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Unit
    • Actions
      • Player - Enable Abilities[Hero level of (Triggering unit) - 1] for (Owner of (Triggering unit)
 
  • Events
    • Unit - A unit gains a level
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 8, do (Actions)
      • Loop - Actions
        • If (Conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Hero level of (Triggering unit)) Equal to (IntegerA)
          • Then - Actions
            • Player - Enable Abilities[((IntegerA) - 1)] for (Owner of (Triggering unit))
          • Else - Actions
 
Level 4
Joined
Jul 19, 2007
Messages
76
Guys, I want on specific level to enable abilities and increasing levels, example:
Level 1 - Enable Ability[1]
Level 5 - Enable Ability[2]
Level 10 - Increase level of Ability[1]
 
Status
Not open for further replies.
Top