• 🏆 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!

Mana frenzy spell

Status
Not open for further replies.
Level 10
Joined
Apr 22, 2010
Messages
421
It has 4 levels, the /x/ represents each level's stats.
At level one, if the enemy unit's mana is above 90%, the beast is sent into the frenzy where he attacks 50% faster.
At level two, if the enemy unit's mana is above 85%, the beast is sent into the frenzy where he attacks 60% faster.......and so on/.....
 
Level 10
Joined
Jul 12, 2009
Messages
318
Periodically pick all units around the beast in 600 range, matching that the unit is not dead, is an enemy of the beast, and has mana greater than the amount needed for the level of Mana Frenzy. If the resultant group is not empty, give a buffing ability to the beast (I would base it on Slow Aura (Tornado) with negative values, so it does not show an ability icon on the unit). Otherwise, remove the ability.

Here's a non-MUI example (ManaLevel is an array of "real" type):
  • Mana Frenzy
    • Events
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • Set ManaLevel[1] = 90.00
      • Set ManaLevel[2] = 85.00
      • Set ManaLevel[3] = 80.00
      • Set ManaLevel[4] = 75.00
      • Set TempPoint = (Position of Beast)
      • Custom script: set bj_wantDestroyGroup = true
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Units within 600.00 of TempPoint matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is dead) Equal to False)) and ((((Matching unit) belongs to an enemy of (Owner of Beast)) Equal to True) and (((Mana of (Matching unit)) Greater than or equal to 0.00) and (Percent mana of (Matching unit) Greater than or equal to ManaLevel[(Level of Mana Frenzy for Beast)])))))) is empty) Equal to False
        • Then - Actions
          • Unit - Add Speed Bonus to Beast
          • Unit - Set level of Speed Bonus for Beast to (Level of Mana Frenzy for Beast)
        • Else - Actions
          • Unit - Remove Mana Frenzy from Beast
      • Custom script: call RemoveLocation(udg_TempPoint)
 
Last edited:
Status
Not open for further replies.
Top