IntroText + Time
Last updated
Last updated
It is possible to define an IntroText depending on the current Time in the game and similar to the Default IntroText, you can include more than 1 speech if you want to.
These are the possibilities:
IntroTextMorning - Used from 5 to 10 (5am to 10am)
IntroTextDay - Used from 5 to 20 (5am to 8pm)
IntroTextAfternoon - Used from 14 to 17 (2pm to 5pm)
IntroTextEvening - Used from 17 to 20 (5pm to 8pm)
IntroTextNight - Used from 20 to 5 (8pm to 5am)
It might be a bit confusing but Day is overlaped by Morning, Afternoon and Evening. You could assume that Noon would be from 10 to 14 (10am to 2pm). Later on I'll explain more about this so you'll understand better.
Defining IntroTextAfternoon looks like this:
This will be used by the script when it's Afternoon in the game:
The script first checks what time it is in game.
Then it checks if it either matches with Morning, Day, Afternoon, Evening or Night.
If the time would be 15 (3pm) it would assume it's Afternoon.
But when you didn't provide an IntroTextAfternoon, it'll fall-back to IntroTextDay.
If you still have not defined one for Day, it'll use the default one IntroText (this one should never be empty)
Here's a simple break down of what I mentioned above:
Morning - If not then Day - If not then Default.
Day - If not then Default.
Afternoon - If not then Day - If not then Default.
Evening - If not then Day - If not then Default.
Night - If not then Default.