Jump to content

a time problem


Drakon Master

Recommended Posts

In short, yes. The call tick_difference does this. There are some issues, however. For instance, when a saved game is reloaded in the outdoors, the variables get reset, so any normal practice of setting a variable to get_current_tick and testing tick_difference doesn't work. You could get around this using SDFs. The dehydration script I wrote ( here ) demonstrates how to use SDFs to keep track of time.

 

Basically, the idea is to use two SDFs as two digits in base-256. That is, the first one is set to 0 for all number 0-255. Then, for 256-511, the first one is 1, and the second one ranges over the same numbers. If you must, you can even use a third SDF if you expect the tick number to be obscenely high.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...