• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Mana using like ammo

Status
Not open for further replies.
Level 4
Joined
Apr 24, 2008
Messages
94
I dont know how to use mana as ammo if you have ammo in your inventory after you killed all your mana 0 and you will need use ammo and mana now full again how to do that?
 
I can't understand what you are saying, it's fairly bad explained, but I think what you want to do is make a unit waste mana whenever it attacks.

Basically, create a hidden spellbook with the 'Searing Arrows' ability in it. Then set the manacost of Searing Arrows to the mana you want wasted per shot, set the additional damage to 0, and change the missile art to that of your unit. Also, do not forget to set that the unit should have the spell on autocast by default.

Then, simply make that ammo which you'd need to reload a mana potion, so it has the same effect. To prevent units from attacking while they have no ammo, use:

  • Events
    • Unit - A Unit is being attacked
  • Conditions
    • Mana of (Attacking Unit) is less than 1
  • Actions
    • Unit - Order (Attacking Unit) to stop
 
"Unit - Set mana of (Attacking unit) to mana of (Attacking unit) -1" I cant put -1 number it wont write there :S
 
Status
Not open for further replies.
Back
Top