Making a day/night system
Posted: Sat Jul 27, 2019 10:03 am
Hey everyone
I'm wondering if it's possible to make a day/night system using Dialogue System. There's a few things I'd like to do, for example:
- Some quests only available at certain times of day
- Some areas off limits at certain times of day, such as a shop being closed at night
- Characters being in different places at different times of day
- You have to wait a certain amount of days before something happens
So far, I figured I could have variables for 'morning, 'afternoon', 'evening' and so on, having them switch on and off throughout the 'day'. But is there a way to have them switch on and off on a timer? Or would that require some custom code.
Alternatively, is there a way to make these variables somehow interact with the timeline object that is controlling the visual side of the day/night cycle?
If anyone has done something like this before, any advice is much appreciated Thanks!
I'm wondering if it's possible to make a day/night system using Dialogue System. There's a few things I'd like to do, for example:
- Some quests only available at certain times of day
- Some areas off limits at certain times of day, such as a shop being closed at night
- Characters being in different places at different times of day
- You have to wait a certain amount of days before something happens
So far, I figured I could have variables for 'morning, 'afternoon', 'evening' and so on, having them switch on and off throughout the 'day'. But is there a way to have them switch on and off on a timer? Or would that require some custom code.
Alternatively, is there a way to make these variables somehow interact with the timeline object that is controlling the visual side of the day/night cycle?
If anyone has done something like this before, any advice is much appreciated Thanks!