• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Firered: Activating Weathers based on RTC

Hello.
I wanted to know if there was a way to make the weather change in overworld based on what month it is. I have installed Primal-Dialga's RTC and wrote a script that compares the month and the time of the day bytes from the RAM and performs various 'doweather's based on comparisons. Here is the overall script in case needed:
Spoiler:


It works if placed as a level script as well. What i want to know is whether there is a way to activate it everytime a map is loaded. Something related to the map headers may be? Someway similar to how the music, tileset or map names are loaded? I just dont wanna write level scripts in every single map.
 
compile the script and save it as a type 01 or 03 level script. In that way it will be loader every time you enter into the map.

Yeah, but that only works for one map at a time and I have to manually put level scripts in all of my maps. I was wondering if the game could do this automatically. Like, I put the pointer to the script at a particular place using hex or something and the game automatically loads the weather everytime a map is loaded. Can i do that?
 
Yeah, but that only works for one map at a time and I have to manually put level scripts in all of my maps

you can use the same script offset in all the maps,no need to compile it over and over

I was wondering if the game could do this automatically. Like, I put the pointer to the script at a particular place using hex or something and the game automatically loads the weather everytime a map is loaded. Can i do that?
That sounds hard to do,but maybe you can write a routine that does that
 
Back
Top