• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] How do I duplicate a hero's stats (in game)

Status
Not open for further replies.
Level 2
Joined
Dec 11, 2020
Messages
11
Hi, I'm looking for a way to duplicate a player's hero stats/attributes (max Hp, mana, etc) in game. I'm trying to make a custom map where the final "boss" is a copy of the hero you're playing as. Ie, the boss would have the same stats as your hero.

This is just a bonus, but I'm having trouble getting the AI to use some abilities.

Would be great if anyone has any ideas on how or generally any tips on doing so!
 
You probably have to do it via triggers.

  • Hero - Modify Strength of YourBoss: Set to (Strength of YourHero (Include bonuses)).
  • Hero - Modify Agility of YourBoss: Set to (Agility of YourHero (Include bonuses)).
  • Hero - Modify Intelligence of YourBoss: Set to (Intelligence of YourHero (Include bonuses)).
  • Unit - Set Max HP of YourBoss to (Max HP of YourHero)
  • Unit - Set Max Mana of YourBoss to (Max Mana of YourHero)
  • -------- etc. --------
 
Sorry for the late reply, thanks for the help. One thing I don't understand is the "YourBoss" and "YourHero", do you need to create a variable?

And if so, could you provide another example or direct me to a tutorial. I'm not very experienced with using variables.
 
Status
Not open for further replies.
Back
Top