• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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