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!
for example, you have a blademaster and when he reachs lvl 10 he turns into a tauren chief (another different unit) with the exact lvl, exp, stats, items
The action "replace unit" saves items, xp and level, but it doesn't modify attributes and because you immediately replace units, it doesn't show level up graphic.
This should take care of all of it
Level Change
Events
Unit - A unit Gains a level
Conditions
(Hero level of (Triggering unit)) Equal to 5
(Unit-type of (Triggering unit)) Equal to Blademaster
Actions
Set Unit = (Triggering unit)
Set Stats[1] = (Strength of Unit (Exclude bonuses))
Set Stats[2] = (Agility of Unit (Exclude bonuses))
Set Stats[3] = (Intelligence of Unit (Exclude bonuses))
Unit - Replace Unit with a Tauren Chieftain using The old unit's relative life and mana
Set Unit = (Last replaced unit)
Hero - Modify Strength of Unit: Set to Stats[1]
Hero - Modify Agility of Unit: Set to Stats[2]
Hero - Modify Intelligence of Unit: Set to Stats[3]
Selection - Select Unit for (Owner of Unit)
Special Effect - Create a special effect attached to the origin of Unit using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Special Effect - Destroy (Last created special effect)
Set Unit = No unit
This will forcibly select the new unit, though, but it can be easily set to leave the selection that player had.
the event is a unit gains a lvl right, but what should the condition be if for example i want the transformation to happen when the unit reachs lvl 10?
The action "replace unit" saves items, xp and level, but it doesn't modify attributes and because you immediately replace units, it doesn't show level up graphic.
This should take care of all of it
Level Change
Events
Unit - A unit Gains a level
Conditions
(Hero level of (Triggering unit)) Equal to 5
(Unit-type of (Triggering unit)) Equal to Blademaster
Actions
Set Unit = (Triggering unit)
Set Stats[1] = (Strength of Unit (Exclude bonuses))
Set Stats[2] = (Agility of Unit (Exclude bonuses))
Set Stats[3] = (Intelligence of Unit (Exclude bonuses))
Unit - Replace Unit with a Tauren Chieftain using The old unit's relative life and mana
Set Unit = (Last replaced unit)
Hero - Modify Strength of Unit: Set to Stats[1]
Hero - Modify Agility of Unit: Set to Stats[2]
Hero - Modify Intelligence of Unit: Set to Stats[3]
Selection - Select Unit for (Owner of Unit)
Special Effect - Create a special effect attached to the origin of Unit using Abilities\Spells\Other\Levelup\LevelupCaster.mdl
Special Effect - Destroy (Last created special effect)
Set Unit = No unit
This will forcibly select the new unit, though, but it can be easily set to leave the selection that player had.
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.