Jump to content


Photo

Incongruent time measures


  • Please log in to reply
2 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 21 March 2018 - 01:50 PM

Let's do the arithmetic:

 

1 round = 6 seconds

 

10 rounds = 60 seconds = 1 turn

 

6 turns = 360 seconds = 1 hour

 

24 hours = 8640 seconds = 1 day

 

This is not, however, how scripts and spells measure time. Spells that are supposed to last 24 hours, like Invisibility, find 7200 seconds in a day. And scripts, if you give them the timer duration TWELVE_HOURS, send you ahead not by 4320 seconds but, apparently, by a shorter measure again. Spelling out in digits what should be twelve hours, AdvanceTime(4320), transports the party not by 12 hours but by 15. What is this about?



#2 subtledoctor

subtledoctor
  • Modder
  • 656 posts

Posted 21 March 2018 - 02:30 PM

I think 1 hour is 300 seconds

#3 -kjeron-

-kjeron-
  • Guest

Posted 21 March 2018 - 10:04 PM

Yeah, 1 hour = 5 turns / 50 rounds / 300 seconds.
ONE_MINUTE = 5 seconds
ONE_ROUND = 6 seconds

Also, using labels like TWELVE_HOURS in scripts is not always exact, as some of them are offset by 1-2 seconds if multiple labels would otherwise have the same value.
For example, all of these should be 60, but:
TEN_ROUNDS = 60
ONE_TURN = 61
TWELVE_MINUTES = 62