• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How do I make hero stats static?

Status
Not open for further replies.
Level 4
Joined
Jul 24, 2009
Messages
59
Do you want the second hero to start at the same level as the first? Or do you want it to be level one?

It would be easier to make it the same level as the first.
 
Level 4
Joined
Sep 27, 2009
Messages
119
If you want it to be level one when it morphs there are several conditions that need to be met, such as reaching the right level, acquiring the right item. Killing the right enemies, etc. I will show reaching level and acquiring item.
Trigger Level:
  • Events:
  • Unit gains a level
  • Conditions:
  • Level of Leveling Hero equal to (desired level)
  • Actions:
  • If / Then / Else, Multiple Functions:
  • Conditions:
  • Owner of Leveling Hero equal to Player 1
  • Actions:
  • Set Strength [1] to Strength of the Leveling Hero (Exclude bonuses)
  • Set Agility [1] to Agility of the Leveling Hero (Exclude bonuses)
  • Set Intelligence [1] to Agility of the Leveling Hero (Exclude bonuses)
  • Actions:
  • Replace Leveling Hero with (Morphed Hero) using the old unit's relative life and mana.
  • Modify Strength of the Last Replaced Unit : Set to Strength [1]
  • Modify Agility of the Last Replaced Unit : Set to Agility [1]
  • Modify Intelligence of the Last Replaced Unit : Set to Intelligence [1]
Trigger Item:
  • Events:
  • A unit acquires an item.
  • Conditions:
  • Item being manipulated is equal to (Your item type)
  • Owner of Leveling Hero equal to Player 1
  • Actions:
  • Set Strength [1] to Strength of the Hero Manipulating Item(Exclude bonuses)
  • Set Agility [1] to Agility of the Hero Manipulating Item (Exclude bonuses)
  • Set Intelligence [1] to Agility of the Hero Manipulating Item (Exclude bonuses)
  • Actions:
  • Replace Hero Manipulating Item with (Morphed Hero) using the old unit's relative life and mana.
  • Modify Strength of the Last Replaced Unit : Set to Strength [1]
  • Modify Agility of the Last Replaced Unit : Set to Agility [1]
  • Modify Intelligence of the Last Replaced Unit : Set to Intelligence [1]
That should get you started.:thumbs_up:
 
Status
Not open for further replies.
Top