Im working on a map, and i need a warrior there, thats gonna work like the warrior in WoW. He doesnt got any mana/rage in begining and when he fight he get some if it. I know how to maximize the mana to 100, and how make he gains mana in fight, and how to lose mana out of fight. But the thing is, he looses mana ALWAYS. Ive tried several ways but not figured out how to do it. And i dont know how to make the mana-bar another color either so i need help with *Only lose rage outside combat *Make the mana-bar a different color.
223 posts If it was the same as yours, would you still wanna ask it? joined
#2
no clue how to help you on the second thing, but on the first thing:
the new flying undeath unit , the Destroyer (upgrade of obsidian statue) already has the 'lose mana' ability. copy it.
then I would make a trigger: events: unit is attacked conditions: attacking unit type == (the rage unit) actions: set "damage" (it's a 'real' variable) = event response - damage taken Unit - Set mana of (attacking unit) to ((mana of (attacking unit)) + damage)
if it's too overpowered, just make it damage/2 or damage/3 (or a non-attack based amount, which is always the same, that's an option too.)
ofcourse, in fight he'll still be losing mana (because I don't know how to disable the lose mana aility when fighting... but if you just make the gain mana strong enough, it won't be noticable.
about the mana bar, I've no idea, but I think it's a model at the interface somewhere in the MPQ... just edit the mana bar skin and import it in your map using the same paths as the mana bar in the mpq I guess...