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!
Do you mean change primary attribute from Intelligence to Strength? That isn't possible. You'd have to resort to metamorphosis trickery or create separate dummies for the unit with a "changed primary".
You can use BlzSetHeroPrimaryStat takes unit whichUnit, integer value returns ? for this, where 1=str, 2=int, 3=agi.
This native is not listed in common.j, so I don't know if you can use it in GUI/jass, but it works with lua.
You can use BlzSetHeroPrimaryStat takes unit whichUnit, integer value returns ? for this, where 1=str, 2=int, 3=agi.
This native is not listed in common.j, so I don't know if you can use it in GUI/jass, but it works with lua.
I tested this in Lua and it actually works differently than you'd expect. It sets your Heroes Primary Attribute AMOUNT to the given value, instead of changing the Attribute Type.
So by using this with a Value of 1 on the Archmage it set his Intelligence to 1.
I tested this in Lua and it actually works differently than you'd expect. It sets your Heroes Primary Attribute AMOUNT to the given value, instead of changing the Attribute Type.
So by using this with a Value of 1 on the Archmage it set his Intelligence to 1.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.