Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Mod script] Calendar and Weather - Fully customizable calendar and weather system (en/fr)

1749890600
Maïlare
Pro
Sheet Author
API Scripter
Hello, I published my first mod in the Roll20 API repo. Because I couldn't find any with a complete weather system like I wanted, I decided to create my own. My mod is fully customizable and it is in English and French The code of the mod and the Readme :  (Github) Calendar and Weather The wiki of the mod :  (Wiki) Calendar and Weather  If you have any questions or you find a bug, please post here. Configuration By modifying the tables at the beginning of the script, you can change a number of parameters. For the calendar, edit the  CalendarConfig   object  : Day names : Change or add/remove days in  days . Month names and lengths : Change or add/remove months in  months . Season months : Change which months belong to each season in  seasons  (months are zero-indexed: first month = 0). Edit the  MoonConfig  object to change : Moon names Cycle length Phase names  (in order) You can add or remove moons, following the format. Edit the  WeatherConfig  object to change : Wind strength : Change the values in  windForce . Precipitation strength : Change the values in  precipitationStrength . For each climate ( climates ), you can modify: Humidity :  humidity Wind direction probability :  windChances Temperature ranges for each season :  temperature Weather probabilities :  precipitation You can also edit the style variables at the very beginning of the script to format the chat output as you wish (reserved for users who know how to format css so as not to break the script) : Chat report style  : chatStyle . Title  :   styleTitle . Section title  :  styleSection . Line between scetions  :  hr . Buttons  :  btnStyle . Commands All commands are accessible from the GM menu. You can, just create a Macro with the GM menu command and make all the others in the GM menu with the buttons. Command Description !weather menu Show the GM main menu !weather report Show the full weather report to the GM !weather showplayers Show the weather report to all players !weather menu-date Show the date settings menu !weather menu-manual Show the manual weather menu !weather menu-profiles Show the profiles menu !weather next Advance the calendar by one day !weather lang en/fr Change the language !weather save <name> Save the current weather profile !weather load <name> Load a saved weather profile !weather export <name> Export a profile to a handout !weather import <name> Import a profile from a handout GM menu Weather report
1749922215
Gold
Forum Champion
Thanks for creating and sharing!
Thank you for the script, this can be very handy for Raiders of the Serpent Sea. One problem I'm encountering is that the menu is being displayed to players when I call it as a GM. Sadly I can't use this while this bug is present, it overloads the player log very quickly. Does this occur for anyone else or has my QA curse struck me again?
1754036380
Maïlare
Pro
Sheet Author
API Scripter
Hello SageRourke, I just tested the code and indeed the menus are displayed in the chat for the players too. I don't understand why because all the commands are configured to display the menus with "/w gm". I will look at the code to fix this. Thanks for the information.
1754339903
Maïlare
Pro
Sheet Author
API Scripter
Hello SageRourke, I have found the problem with the help of other API scripters. I have updated my code and I just waiting Roll20 team approve my commit on the github. If you want the code now, send me a private message and i'll send it to you.
Hello Maïlare, Most excellent! Thank you very much for finding and fixing the issue. I will happily accept the source via PM