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

Adding a mana cost to the basic unit attack

Status
Not open for further replies.
Level 2
Joined
Oct 30, 2012
Messages
6
I feel almost stupid for having to ask this. It sounds like it should be one of the simplest ability modifications in the world but for some reason I am completely blanking out on it.

I need to apply a small mana cost to the basic attack ability so that units must return to their bases in order to "reload" their attack and continue fighting. The map I am making is a standard RTS meant for small ranged-attack armies with powerful weapons and adding a mana cost to the basic attack ability would go a long ways towards balancing the current version of my map.

If anybody can help I would appreciate it immensely. If you need to know more before offering your help just let me know.

Thanks.
 
Level 9
Joined
Aug 7, 2009
Messages
380
I can think of 2 options for you to choose:
1. Removing the basic attack and use the autocast ability that uses on attack such as searing arrows, etc... in order to make it cost mana
2. Each attack of the unit of type X you do the trigger:
Check unit's mana = 0 equal to false
Then
Set mana of X = Current Mana of X - (number you want)
Else
Order unit to stop
 
Status
Not open for further replies.
Top