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

[Solved] Replacing units under certain event

Status
Not open for further replies.
Level 4
Joined
Feb 3, 2011
Messages
56
Hey I am trying to make the villagers that i spawn in the mornging, be replaced by zombies at night. Spawning the villagers works and killing the zombies in the morning works, but I can't seem to be able to replace the villagers.

Events:
Game-The ingame time of day is equal to 18:00
Conditions:
(Villager (male 2) 0026 <gen> is a ground unit) is equal to true
Actions:
replace Villager (male 2) 0026 <gen> with a zombie using the new unit's max life and mana

Confused am I
 
Level 4
Joined
Feb 3, 2011
Messages
56
This didn't work either:

Events:
Game-The ingame time of day is equal to 18:00

Actions:
Unit group-Pick every unit in (units of type villager (male 2)) and do (unit-replace (matching unit) with a zombie using the new unit's default life and mana)
 
Status
Not open for further replies.
Top