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

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:
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:
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.
Back
Top