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

I've found a way to change hero's primary attribute

Status
Not open for further replies.
I'm going to write a script to do this semi-seamlessly, but so far, my findings are as follows:

1) This is done by morphing your hero to a normal unit, then morphing it to a hero again, but the hero loses all hero metadata so he ends up with 0 0 0 attributes, and 0 experience as well
2) You need to let some ticks through while doing this, your hero needs to be an unit for the minimal amount of time, so you'll need to use a timer to do this properly, and after it's done, you just remove the chaos ability used to morph to a dummy unit, and add the one you want, I am not sure this works seamlessly, and we need to test this
3) If your unit has any armor, negative or positive, before transformation, it will end up as a permanent bonus after two transformations back and forth

If anybody wants to experiment with this or even write a simple system, he's free to, I will be making my won in the near future anyway.
 
This is a known technique but due to complication arising during even such a short period of time when hero becomes a unit result in it being uncommonly used.
It's not a simple switch - several factors have to be taken into consideration and you can't be sure about what random triggers in random map are doing to random hero that is going to be shifted.
 
Level 19
Joined
Jul 2, 2011
Messages
2,161
only working solution solution.

create multiple morph abilities, 3 for each hero model 1 for every attribute.

giving a morph ability to a hero, which ever attribute they want matching their model file

morph the hero

use a trig to replace unit with matching unit with same stats

kill and revive hero

now you have a permanent change

happy hiving :)
 
Level 19
Joined
Jul 2, 2011
Messages
2,161
the only error I got was that sometimes you got negative armour, but if you kill and revive the hero the problem goes away.

multiple morphs doesn't disrupt the game, it just takes time is all
 
Status
Not open for further replies.
Top