Hi, I'm trying to make a trigger where the game selects all the players of a certain race to sleep at a certain time. This is my trigger, but what doesn't happen is the desired result. The units that are selected are able to sleep (I checked the box in the Object Editor), but they just stand awake. Would there be a way to cast a sleep spell on each individual unit? If so, I might just do that... But I can't figure out how to do that.
Sleeping
Events
Game - The in-game time of day becomes Equal to 22.00
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Race of (Picked player)) Equal to Human)) and do (Actions)
Loop - Actions
Unit - Make (Triggering unit) Sleep when unprovoked
Sleeping
Events
Game - The in-game time of day becomes Equal to 22.00
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Race of (Picked player)) Equal to Human)) and do (Actions)
Loop - Actions
Unit - Make (Triggering unit) Sleep when unprovoked