• 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.

Mana using like ammo

Status
Not open for further replies.
Level 4
Joined
Apr 24, 2008
Messages
95
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?
 
Level 10
Joined
Jun 16, 2007
Messages
415
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
 
Level 4
Joined
Apr 24, 2008
Messages
95
Asgard_Ragna where do you get mana in your conditions? I have only russian world editor and cant find it
 
Level 4
Joined
Apr 24, 2008
Messages
95
"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.
Top