• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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