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

I would like the get help with a Rage System

Status
Not open for further replies.

king92

K

king92

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.

Help is VERY appreciated :)
 
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...
 
thx for the tip. the thing is, it didnt work :/ i dont know why, but i think it is the variable there is something wrong with..
 
if u make an Integer Variable you cant make it "Event Response - Damage Taken". example:

Set "Varible" = "Value"
Set "Damage" = "Value" <-- you cannot choose "Event Response - Damage Taken" if "Damage" is a Integer Variable :(
 
Status
Not open for further replies.
Back
Top