• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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