How do I make a warrior rage system like wow?

Wilmer Lindau

New Member
Reaction score
1
How do I make the mana of a unit act like the warrior's rage in wow? Meaning that there is a maximum of 100 mana at all times and the hero gains mana by dealing and taking damage. The mana is also constantly degenerating.

Any help is appreciated! Thank you and happy holidays!
 

Wilmer Lindau

New Member
Reaction score
1
Okay, I think I have most of it figured out now. But the trigger I made for gaining rage when being attacked doesn't seem to work. Could someone take a look at it for me?
Trigger:
  • Gain When Damaged
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) is in ug_rageusers) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Hero level of (Attacked unit)) Less than or equal to 3
        • Then - Actions
          • Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) + ((Damage taken) / 15.00))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Hero level of (Attacked unit)) Greater than 3
              • (Hero level of (Attacked unit)) Less than or equal to 6
        • Then - Actions
          • Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) + ((Damage taken) / 20.00))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Hero level of (Attacked unit)) Greater than 6
              • (Hero level of (Attacked unit)) Less than or equal to 9
        • Then - Actions
          • Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) + ((Damage taken) / 25.00))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Hero level of (Attacked unit)) Greater than 9
              • (Hero level of (Attacked unit)) Less than or equal to 12
        • Then - Actions
          • Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) + ((Damage taken) / 30.00))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Hero level of (Attacked unit)) Greater than 12
              • (Hero level of (Attacked unit)) Less than or equal to 15
        • Then - Actions
          • Unit - Set mana of (Attacked unit) to ((Mana of (Attacked unit)) + ((Damage taken) / 35.00))
        • Else - Actions
 

Slapshot136

Divide et impera
Reaction score
471
there is no "damage taken" for the "unit is attacked" event - that only exist in the "unit takes damage" event
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top