Hi, I was looking through lines of script and I couldn't figure out how I could make these things happen.
The scripts I'm using are: Kha's Awesome Lights and Vlue's Advanced Game Time.
I'm trying to make a fire being lit only during night, while it being burnt out during the day.
I'm also trying to have an event happen during a certain time, like a certain character only appears at 9:00 PM.
Oh and also, I want my in-game menu clock to not change numbers only if you exit the menu and reenter it, life if I set my minutes to go by as a second passes, I want to see the numbers constantly changing.
Lighting Based on Time and Time Events
● ARCHIVED · READ-ONLY
-
-
If the fire is an event, you can simply use two pages one with the burning fire, the other will be the burnt... have the burning fire on page 2 and use the time variable perhaps for the condition
Also, try to simply read thru Vlue's thread for his advanced game time because your questions are already asked so many times there -
I'm new to how people write their posts here so I get confused easily.
Vlue kept saying something like to add "GameTime.hour?"
So, how do I implement this in an event?
I tried this:
Control Variable: [0005:GameTime.hour?]=GameTime.hour?
Conditional Branch: Variable [0005:GameTime.hour?]>=20
Comment: [light]
Else:
Branch End
But it didn't work. -
What is the trigger for that event? Also, you might need to use two pages instead and use the condition on the conditions part of the event page (on the left side of the event window) since I think Khas' script will still read that comment no matter how that conditional turns out since AFAIK it only looks up if there is a comment that says [light]
So you will have like
Page 1 -> no conditions, no light comment
Page 2 -> variable >= 20, light comment
Though you'd need a parallel process common event to keep setting the variable into the value of GameTime.hour? since you'd be using the conditions part of the event which doesn't accept script input -
I had to fix it by adding a parallel process somewhere on the map and used a conditional variable to activate and turn off a switch at certain times.
Then I made two event pages for the light event....and it's easy to tell where it's going from here.
So yeah, I finally got it to work after 6 hours of trying different things.