Day/Night events

Hey guys,

I am using this Event day/night system there is one part of the code i would like to change if possible but not sure how.

In the video for the night time there is this code

Code:
if: 24_hour < 8

end
if: 24_hour > 17

end

in the video he states that it can be done better but now how to make that bit better.
I would like to make it like the day part of the code

Code:
if:24_housr > 8
  if:24_hour <17
 
  end
end

this way i can just put one event / text / what ever into the one box for night time just like day and not have to double up on the code..

I tried to combine them with an odd situation where my character would just stop walking.. (which im having that issue with another plugin and cant work out why)

any ideas?

Thanks in advance.
If you look inside the conditional branch, on the last page, there should be an option labelled script. If you type this:
JavaScript:
$gameVariables.value(yourVariable) > 8 || $gameVariables.value(yourVariable) < 17
It should work. Replace the "yourVariable" with the number of the variable you're using for your hour counter.
oh that is perfect.. thank you..

to be honest i never even noticed that option because iv only been focusing on the others lol thank you though.. ill test it out as soon as i re-enable the script after fixing something else lol
You're much welcome!
Ok so just tested it and its working perfect.. thanks again

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/day-night-events.118900/