FANDOM


Override the weather of a set of maps
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This tutorial explains how to override the weather of a set of maps when a certain variable have a certain value. In PokemonField, change the line 'if weather && rand(100)<weather[1]' to:

weatherVariable=75 # Variable that control the weather numbers
mapsIDs=[70,71,73] # Map affected numbers
  
if pbGet(weatherVariable)>0 && mapsIDs.include?($game_map.map_id)
  $game_screen.weather(pbGet(weatherVariable),8,20)
elsif weather && rand(100)<weather[1]

With these default values, while you have the value 2 (Storm number in weather codes) in variable 75, the maps 70, 71 and 73 have 100% chance of having storm weather. You should also set the "Weather" metadata for all those maps, even if they won't normally have weather (i.e. the probability is 0).

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.