
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
- Humidity:
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 |