18k
0

About this script

Mechanics

At each turn the weather can change:

  • 25% chance to get better;

  • 25% chance to get worse;

  • 40% chance to have no weather prompt, means your LLM decides what to do about it.

If for last 5 turns the weather was the same (in general categories like fog, rain, rainbow etc), it's forced to change to different type. It's also a probability:

  • 60% chance it's a normal shift.

  • 40% chance it's a drastic flip. Flip happens as toggle between active and passive. If you are stuck with the rain, it is prompted to change to random passive state, e.g. clear sky. If you have stagnant air for too long, it is prompted for active environment, e.g. flood.

Weather it's focusing on

Default active: rain, fog, wind, sand storm, wildfire smoke, pollen cloud, flood.

Default passive: heat, clear sky, high humidity, cold spike, clouds, stale air, dry air.

Additionally you can enable exotic/specific types of weather: winter, desert, seashore. See code and comments in it to find how to enable those.

Weather indication

Script reads last 5 bot's messages to see what weather was mentioned. Additionally it's asking LLM to add hidden block of text at the end of bot's message that you can see if you open bot's message for editing. It will look like Current weather: snow.

Author's note

Please share your experience in comments to this script. I would love to know how your weather is acting. When commenting don't forget to mention if you're using JLLM (built-in JanitorAI LLM) or other LLM (specify which). If you don't know what it means and didn't change "API Settings" section, you're using JLLM.

It's welcomed to copy the script. Please add credits to the bot where you use it and leave automatic cloning message intact.

Tested with: GLM 4.6, GLM 4.7, GLM 5.0, GLM 5.1, Gemini 2.5, Gemini 2.5 PRO, Gemini 3.1 PRO. Credits for alpha testing: Harper, Barrin, CeliMax.

The best suited for outdoors bots and gloomy atmosphere (as there's barely nice weather). Climate zone is generally continental (no extremes, no specific events like tsunami or volcano eruption). Feel free to adjust to your own setting. If you need help with adding weather types, leave a comment.


Script source

Public codeContext depth 10

Please log in to see comments