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

Detect Day/Night

Status
Not open for further replies.
Level 5
Joined
Jun 21, 2013
Messages
116
I made triggers to detect day and night that check when time becomes greater than 6 and greater than 18.

However, it is slightly messed up when "Item Change Time of The Day" ability is used. And since I have a unit that is pretty much godmode during the night, so players should attack during the day, It kinda ruins the game.
Are there any ideas on how to check for day and night better way?

I tried to do it, and got stuck on one detail. I created trigger to check for day.

Event
-Time becomes greater than 6
Condition
-Time less than 18
Actions
-Day-actions

However, when I turn to night time between 18 and 24 and from that interval i turn to somewhere between 6 and 18, it does nothing. It's day, but night actions are still on.
 
Status
Not open for further replies.
Top