When the unit dies store it's XP as a real variable with the function "Unit Property". Then after creating the new unit use the action "Set Unit Property" to set the XP to what is stored in the real variable.
I assume you are using the built in "Bounty(XP)" property to store your XP. I haven't made a map where units gain XP yet, but it looks like this should work.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How do I make it so when a hero dies, and it is revived (through triggers) it keeps its xp?
When the unit dies store it's XP as a real variable with the function "Unit Property". Then after creating the new unit use the action "Set Unit Property" to set the XP to what is stored in the real variable.
I assume you are using the built in "Bounty(XP)" property to store your XP. I haven't made a map where units gain XP yet, but it looks like this should work.