Thread: ELI5: Customizing a Calendar
-
June 16th, 2020, 08:55 #21
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 19,657
No, the calendar code is fairly simple (as most game system calendars are fairly simple), and was really only modified for the specifics of Gregorian calendar (which is the most common used other than the game system calendars). Anything else would require an extension to rewrite the calendaring system to what you want.
Regards,
JPGFG Wish List - https://fgapp.idea.informer.com/
-
June 16th, 2020, 12:54 #22
I dont believe its currently possible. The calendar code in CoreRPG defines all months as periods in the xml, and gives access to 2 different functions.
lunardaycalc - This function calculates what day of the week any given date falls on. It is passed a date (year, day, month), and has to return a value between 1 and the number of days in a week.
periodvarcalc - This function is used to implement leap years by calculating how many extra/fewer days are in any given period/month. The function is passed year and month values, and calculates how many extra/fewer days are in that month. For example, February normally has 28 days on any given year. This function would take the values for year and month and calculate that on a leap year, there should be 1 extra day, so it returns the value of 1. Any other month or non-leap year Feb, it would return 0 since there is no change to the period.
There is no function that allows you to insert or remove a period/month from the calendar. This functionality could be developed as an extension, but its not currently possible with the existing code.For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/FVgtecr
DMsGuild Conversions https://www.dmsguild.com/browse.php?...iate_id=712946
DMsGuild Extensions Support Threads: Syrinscape Sounds, 5e Coin Converter,Shops, ID All, Player NPC End Turn, CT Open on Turn, Unshare Image, 5e Modifier Buttons
Other Helpful Links: Custom Calendar Tutorial, Custom Calendar Creator, Linker, CSV Importer, Font Extensions, 5e Class, Background, Race, Feat interpreted strings, Extended Language Fonts
FG DM Video Series: https://www.youtube.com/playlist?lis...Y5zjaBmVgwR2cc
-
January 17th, 2023, 14:34 #23
- Join Date
- Nov 2021
- Posts
- 1
I'm not sure if anyone is checking this thread anymore, but I just wanted to express my thanks to the OP. The instructions were crystal clear, and I was able to create a functional homebrew campaign calendar in Fantasy Grounds by following them.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks