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

[Trigger] Trigger for zombie map

Status
Not open for further replies.
I dont understanded.

If a player dies it will become a zombie?


Unit dies

Owner of Dying unit is not equal to Zombie Player
Owner of Dying unit is not equal to Zombified Player (p6,p7,p8,p9etc...)
Dying unit is a hero equal to true.


Wait 3 seconds.
Revive Dying Unit at position of Dying Unit.
Replace Dying Unit as a Zombie.
Make owner of Dying unit threat Zombie Player as an ally.
Make Zombie Player threat owner of Dying unit as an ally.
 
Owright, now I have understanded.
This trigger appears to the trigger then I am using in World of Ham Ham to determinate if the player will play in the Alliance or Horde.

Create a Player Group variable named Living
Create a player Group variable named Zombie

Events:
map Initialization

Actions
Add player 1 to player group Living
Add player 2 to player group Living
Add player 3 to player group Living
Add player 4 to player group Living
Add blehblehbleh to living
Add Zombie Player to player group Zombie

------------------------------------------------------------------------
This is another trigger

Events
Map Initialization
Every .10 seconds of Game

Actions

Make Zombie Player threat Player Group Zombie as an ally.
Make Player Group Zombie threat Zombie player as an ally.
Make Player Group Zombie threat Player group Living as an enemy.
Make Zombie Treath Living as an enemy.

-----------------------------------------------------------------------
When the hero dies, make the owner of dying unit threat Playergroup Zombie as an ally, Zombie player as an ally, and living as an enemy.
Make the Zobie Player and the Zombie Group threat owner of dying unit as an ally.


Test it, if this doesnt work, tomorrow I will bring a map with the right code ;)
 
Status
Not open for further replies.
Top