• 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.

A hero with 3 separate entities

Status
Not open for further replies.
Level 4
Joined
Apr 18, 2013
Messages
57
I want this hero to have 3 separate hp, mp, and xp bar and ability sets. Presently i have a bunch of copies of the hero stashed away from the battlefield. whenever you click the ability it swaps the copy that you are using with the next unit in line. I also want them to have a small bonus to hp and mp regen when not in play. How would I accomplish this without them premade.
 
u would have to trigger it all.

when the unit gets moved out of play u need to get its health, mana, health regen, mana regen. raise the health and mana regen.
then to raise it u basically have a trigger that is every 1 second. add the health regen to the health and the mana regen to the mana variables and there u go.

it would be better with premade units tho since premade units arent that hard to manage u wont need to do all the triggers. also when u create units they always leak. so if this happens often it will raise the ram and eventually crash the game. although that will take a long time to do it will never happen with the premade units.

u can also have a trigger that runs on map init to create the units and store them in variables.
 
Status
Not open for further replies.
Top