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

Replace Unit System

Status
Not open for further replies.
Level 6
Joined
Apr 14, 2007
Messages
109
How would I make a system that replaces a unit and sets the stats of the unit that replaces the old unit to the 2 times the stats of the old unit? and they both are the same lvl and have the same skills/spellbook

EX: Paladin gets to lvl 25 and he has 25 str 25 agi and 25 int so he gets replaced by Blademaster and the Blademaster would be lvl 25 have 50 str 50 agi and 50 int and the blademaster would have the exact same spellbook as the paladin.
 
Level 11
Joined
Dec 11, 2007
Messages
888
this trigger should work:
  • 134
  • Events
    • Unit - A unit Gains a level
  • And - All (Conditions) are true
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 25
      • (Unit-type of (Triggering unit)) Equal to (Hero x)
    • Actions
      • Set agility = (Agility of (Triggering unit) (Exclude bonuses))
      • Set intelligence = (Intelligence of (Triggering unit) (Exclude bonuses))
      • Set strength = (Strength of (Triggering unit) (Exclude bonuses))
      • Unit - Replace (Triggering unit) with a (Which hero you want) using The new unit's default life and mana
      • Hero - Modify Agility of (Last replaced unit): Set to (agility x 2)
      • Hero - Modify Intelligence of (Last replaced unit): Set to (intelligence x 2)
      • Hero - Modify Strength of (Last replaced unit): Set to (strength x 2)
you will need 3 integers: agility, intelligence and strength
when the Hero reaches lv 25 it will be changed with a blademaster and then will change his attributes with the previous Hero x2
 
Last edited:
Status
Not open for further replies.
Top