• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] About Chaos

Status
Not open for further replies.
Level 23
Joined
Oct 12, 2008
Messages
1,783
Chaos is a passive transformation skill.
Id like to know
- Can you catch the transformation event? as expected, Unit Spell Event doesnt work.
- What stats are carried over during transformation?
- Do variables associated with the unit carry over?

Basically, is it worth using Chaos over Replace Unit?
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
Don't use ReplaceUnit. With Chaos, variables carry over and UnitUserData carries over.

As far as catching the transform event, I think the Undefend order ID is issued when the unit transforms - though this is speculation. If it does fire, I could add that feature to Unit Event and you can use that. I'll see if I can find some time this weekend to test that. Edit: You can also try the "enters region" event, if you're curious.

As far as stats carrying over - hero stats, auras, item bonuses... you may want to look into this: http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/hero-passive-transformation-198482/

Edit: I have updated Unit Event to include the feature to detect when a unit's type changes: http://www.hiveworkshop.com/forums/spells-569/unit-event-v2-1-0-0-a-201641/
 
Last edited:
Status
Not open for further replies.
Top