[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
 
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.
Back
Top