PDA

View Full Version : Advanced Time Management



Czarisyn
May 13th, 2021, 14:25
Advanced Time Management v1.1
Works with the calendar mod to help manage the time and date within your game.

/atm
/atm ? or help
/atm [add/sub/set] [mn/dy/yr/hr/mn/sc] [int]
/atm set ep [string]

examples

/atm add mn 1 | Adds 1 month to the current date
/atm sub yr 10 | Subtracts 10 years from current year
/atm set hr 0 | Sets the current hour to midnight
/atm set ep AD | Sets the Epoch (Age) to AD
/atm | Sends message of current time and date to chat

celestian
May 13th, 2021, 15:56
Advanced Time Management
Works with the calendar mod to help manage the time and date within your game.

/atm [add/sub/set] [mn/dy/yr/hr/mn/sc] [int]
/atm set ep [string]
examples
/atm add mn 1 | Adds 1 month to the current date
/atm sub yr 10 | Subtracts 10 years from current year
/atm set hr 0 | Sets the current hour to midnight
/atm set ep AD | Sets the Epoch (Age) to AD

Is this for calendar management only or does it also affect the timers on effects and such? So if you want to hand wave 10 hours have passed can you do so and the effects that last 24 hours consume 10 hours of that?

Czarisyn
May 13th, 2021, 16:02
Is this for calendar management only or does it also affect the timers on effects and such? So if you want to hand wave 10 hours have passed can you do so and the effects that last 24 hours consume 10 hours of that?

Right now, it just adjustments to the calendar.
I wrote this with games in mind that have a time sensitive component like "Tomb of Annihilation"
My goal is to eventually incorporate the effects as well, and to add a widget showing sun/moon position and maybe seasons

Right now, it does add 6 seconds per combat round passed. Eventually I'll add an option to change that but it seems that rounds tend to be only 6 seconds in most games.

Three of Swords
May 14th, 2021, 00:34
This has a lot of potential. Looking forward to seeing where it goes!

bmos
May 15th, 2021, 13:46
My goal is to eventually incorporate the effects as well, and to add a widget showing sun/moon position and maybe seasonsYou might want to look at the code I added to ClockAdjuster as it already does the round decrementation.
It could make it easier for you to add something similar here.
https://github.com/bmos/FG-PFRPG-Time-Manager/blob/main/scripts/longtermeffects.lua
https://github.com/bmos/FG-PFRPG-Time-Manager/blob/60fdfc08ab152b21ae514f9e5618d45f054535b6/desktop/desktop_panels.xml#L198

There is also Moon Tracker:
https://www.fantasygrounds.com/forums/showthread.php?46672-Andraax-Moon-Tracker-Extension&p=580396&viewfull=1#post580396

Which you could leverage to handle moon phases.

YAKO SOMEDAKY
May 15th, 2021, 19:47
It would be interesting if there was something to pass the time, which is but at the same time not connected to the combat tracker.
I'll try to explain what I thought:
For example, let's say I am in a dungeon carrying a torch, but as we are in exploration I would not use the combat tracker, as I think of it to manage battles, so with this time control I could say that 1 hour and boom has passed! the torch goes out, the effect of a spell wears off and time advances and I don't have to worry about managing one more thing.

Czarisyn
May 15th, 2021, 19:56
It would be interesting if there was something to pass the time, which is but at the same time not connected to the combat tracker.
I'll try to explain what I thought:
For example, let's say I am in a dungeon carrying a torch, but as we are in exploration I would not use the combat tracker, as I think of it to manage battles, so with this time control I could say that 1 hour and boom has passed! the torch goes out, the effect of a spell wears off and time advances and I don't have to worry about managing one more thing.

I see what you are asking, however that would mean you would have to play in "real-time" where 1hr real is 1hr in game. Problem is that some skill checks, such as looking for traps, can take 10 minutes and such.
With my ext, you can hotkey the commands and move time along with the amount of time you say has passed.
For example, if they took a long rest, I'd have a hotkey for the command "/atm add hr 8"

YAKO SOMEDAKY
May 16th, 2021, 07:13
I Will try.

Czarisyn
May 16th, 2021, 11:35
I Will try.

Please do, and let me know if any problems happen :D

Czarisyn
May 30th, 2021, 13:46
Updated to v1.1


Changed the command to show help to '/atm ?' or '/atm help'
Added the ability to send current time to chat with '/atm'