Encounters determined by a variable

I have a time system set up for a portion of my game. I use a variable to represent the current hour said time is. Is there a way to make certain encounters only appear during certain "hours"( i.e. when a variable is a certain value range?)

For example:

When variable is from 10-18, daytime monsters appear, and when variable is from 19-24 and 1-9, nighttime monsters appear.
Are you using RANDOM encounters, or are your monsters events on the map?
For the most part, random encounters.
This one applies conditions to each troop, rather than each map encounter (though I guess it could)


http://www.himeworks.com/2013/05/17/encounter-conditions/
I got it to work! 😀 Thanks!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/encounters-determined-by-a-variable.25499/