• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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