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

[Trigger] Transfer Stats, Level, and items to unit

Status
Not open for further replies.
Level 1
Joined
Jun 21, 2009
Messages
282
Alright so guys, I need a trigger where you enter a Circle of Power, and the entering is aquired to be a hero, transfer stats, items in slots 1, 2, 3, 4, 5, and 6, and last transfer the level, so say the entering unit is level 30, the hero above the circle of power will then be level 30 with the stats and items, then remove entering unit from the game

Please and Thank you =:grin:
 
Level 16
Joined
Oct 17, 2009
Messages
1,580
Here:
  • Trigger
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Create 1 Paladin for (Owner of (Triggering unit)) at (Center of Region 001 <gen>) facing Default building facing degrees
      • Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
      • Hero - Modify Strength of (Last created unit): Set to (Strength of (Triggering unit) (Exclude bonuses))
      • Hero - Modify Agility of (Last created unit): Set to (Agility of (Triggering unit) (Exclude bonuses))
      • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Triggering unit) (Exclude bonuses))
      • Hero - Give (Item carried by (Triggering unit) in slot 1) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 2) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 3) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 4) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 5) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 6) to (Last created unit)
      • Camera - Apply Camera 001 <gen> for (Owner of (Triggering unit)) over 0.00 seconds
      • Unit - Remove (Triggering unit) from the game
 
Level 1
Joined
Jun 21, 2009
Messages
282
Here:
  • Trigger
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Unit - Create 1 Paladin for (Owner of (Triggering unit)) at (Center of Region 001 <gen>) facing Default building facing degrees
      • Hero - Set (Last created unit) Hero-level to (Hero level of (Triggering unit)), Hide level-up graphics
      • Hero - Modify Strength of (Last created unit): Set to (Strength of (Triggering unit) (Exclude bonuses))
      • Hero - Modify Agility of (Last created unit): Set to (Agility of (Triggering unit) (Exclude bonuses))
      • Hero - Modify Intelligence of (Last created unit): Set to (Intelligence of (Triggering unit) (Exclude bonuses))
      • Hero - Give (Item carried by (Triggering unit) in slot 1) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 2) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 3) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 4) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 5) to (Last created unit)
      • Hero - Give (Item carried by (Triggering unit) in slot 6) to (Last created unit)
      • Camera - Apply Camera 001 <gen> for (Owner of (Triggering unit)) over 0.00 seconds
      • Unit - Remove (Triggering unit) from the game



Thanks!! =D
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Unit - Replace (Triggering unit) with a Archmage using The old unit's relative life and mana
This transfers life, mana, items, exp, causes no collision issues with the old and new unit and you don't need to worry about setting/clearing the location.

Also, turn the trigger off as the first action since it can cause an infinite loop. Unit enters region -> a unit is created, thus it enters the region -> a unit is created, thus it enters the region -> ... -> computer freezes.
 
Status
Not open for further replies.
Top