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)

June 14 (1 month ago)
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:
    • Humidityhumidity
    • Wind direction probabilitywindChances
    • Temperature ranges for each seasontemperature
    • Weather probabilitiesprecipitation

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.

CommandDescription
!weather menuShow the GM main menu
!weather reportShow the full weather report to the GM
!weather showplayersShow the weather report to all players
!weather menu-dateShow the date settings menu
!weather menu-manualShow the manual weather menu
!weather menu-profilesShow the profiles menu
!weather nextAdvance the calendar by one day
!weather lang en/frChange 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


June 14 (1 month ago)
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?