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

Help me out, please.

Status
Not open for further replies.
Level 2
Joined
May 16, 2013
Messages
27
I need to make the trigger say "Unit - Set mana of (Attacked unit) to (Percentage mana of (Attacked unit) + 20) but I cannot put the +20 in there. What do I do to add it? Complete scrub with triggers.

or better yet (Unit - Set mana of (Attacking unit) to ((Mana of (Attacking unit)) + 1.00)
 
Last edited by a moderator:
Level 2
Joined
May 16, 2013
Messages
27
Thank you soo much apoc. Holy god. Thank you.

how do I set it not to percentage but to the normal value?
 
Last edited by a moderator:
Level 28
Joined
Jan 26, 2007
Messages
4,789
how do I set it not to percentage but to the normal value?
There are 3 functions to get the mana/HP of a unit:
1) Unit - Percentage Life
2) Unit - Percentage Mana
3) Unit - Unit property (this is the exact value for current/max mana or HP, not a percentage).

The third is the one you need :).
or use integer to string and type in 20
What? How would this be useful? :p
 
Status
Not open for further replies.
Top