• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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