• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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