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

[JASS] possible to change the hero-attack-type with jass?

Status
Not open for further replies.
Level 2
Joined
Dec 16, 2006
Messages
12
is it possible (im not sure, =/) with jass, (i don't believe doing it with triggers is possible) where, when you buy "xxxx" item, it changes your hero's attack type to "this"?

if so, could someone create one (if you have the time, as i suck with jass) to make me one where you purchase Chaotic attack, will change your heros attack type to CHAOS instead of its current PIERCING attack?


Thankyou for the help, and your time.
 
Level 8
Joined
Feb 4, 2007
Messages
389
There is no way to change a hero's attack-type in-game. What you could do, which would be a little less practical, would be to save all the hero's stats to variables, and have a copy of your unit, and have that copy have the other attack ability. Then, replace the unit with your copy, and update all the stats.
 
Level 2
Joined
Dec 16, 2006
Messages
12
lol nah, i think ill just not implement it, as i'd have to copy over 200 heros, and i just don't feel like doing that, lol.


but thanks anyways :p
 
Status
Not open for further replies.
Top