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

Hero reboring under a different player

Status
Not open for further replies.
Level 4
Joined
Dec 10, 2005
Messages
73
I have no idea how to do this one. I wanted to make it so the that Player A control the hero but when the hero dies, Players B has to ressurect the hero. When ressurected, it goes back to Player A control.
 
Level 3
Joined
Oct 23, 2005
Messages
51
Not sure about that one, you could try making two triggers something like this:

Event
A unit dies
Condition
[Triggering unit] equal to (Hero)
Action
Change ownership of [Triggering unit] to (Player B)

Event
A unit is revived
Conidition
[Triggering unit] equal to (Hero)
Action
Change ownership of (Hero) to (Player A)

My only concern is that you may not be able to change the ownership of a dead unit or hero, also, is the idea that Player A loses a pre-placed hero, or trains/gets one and later loses that?
If it's that latter some alterations will be required, also the idea is that Player B has a unit or building that has the ability to revive heroes, right?
 
Status
Not open for further replies.
Top