Author Topic: [SOLVED] How to call script in certain "day" of game?  (Read 1047 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivkolya

  • Sergeant Major
  • *
  • Posts: 333
    • View Profile
  • Nick: Ivkolya
  • Side: Neutral
[SOLVED] How to call script in certain "day" of game?
« on: October 01, 2015, 02:12:58 am »
Is it even possible, to call script after certain time after beginning of game (I mean, in some "day" in game)?

I honestly searched very long time :) But all I could find was calling script after certain amount of real seconds, after some event happened, it's not what I need.
« Last Edit: October 01, 2015, 12:58:53 pm by Ivkolya »

Offline Ivkolya

  • Sergeant Major
  • *
  • Posts: 333
    • View Profile
  • Nick: Ivkolya
  • Side: Neutral
Re: How to call script in certain "day" of game?
« Reply #1 on: October 01, 2015, 12:57:49 pm »
Answers from TW Forum (maybe I'm not the only one noob, who didn't know how to do it and someone will find this theme useful):

Docm30:
Make a simple trigger that fires once every 24 hours and adds 1 to your day variable and then check once a day for the variable reaching certain days.

kalarhan
Code
store_current_day          = 2272  # (store_current_day, <destination>),
                                   # Stores number of days that have passed since beginning of the game. Commonly used to track time when high accuracy is not required

Docm30
Oh yeah. It's the weather you can't read, not the date.