• 🏆 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!

requesting transformation triggers

Status
Not open for further replies.
Level 6
Joined
Jul 21, 2011
Messages
139
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

all help welcome thx :psmile:
 
Level 25
Joined
Sep 26, 2009
Messages
2,378
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.
 
Level 6
Joined
Jul 21, 2011
Messages
139
Unit - Replace unit might work for you.

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?

ohhhh nvm found it

  • (Hero level of (Triggering unit)) Igual a 2
i think i will use this btw

http://www.hiveworkshop.com/forums/general-mapping-tutorials-278/hero-passive-transformation-198482/

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.

interesing, i will test this right now, thx guys
 
Status
Not open for further replies.
Top