Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Memorize/Restore Screen Color Tone & Weather

I'm designing a very special project for the public, great for veterans but especially designed for people new to RPGXP, called "The Ultimate Database". I'm not 'Advertising' my project, just linking it incase you wanted more info.

Anyways, I need help. I need a common event that will memorize, not only the map's BGM/BGS, but also the screen color tone, weather, fog and anything else I forgot to mention. The only catch is this is a common event (for a 99% event based system) so I'm trying to do it in a call script. Does anybody know how I could easily memorize and recall that information using an event with a call script command?
 
You could always use $game_variables to save in info read from the $game classes, then just restore them.
Code:
# Tone
$game_variables[x] = $game_screen.tone
# Weather Type
$game_variables[x] = $game_screen.weather
# Weather Max
... = $game_screen.weather_max
# Fog
... = $game_map.fog_name
# ...

Then just restore them with simple call scripts as well.
Code:
# Change tone
$game_screen.start_tone_change($game_variables[x], duration)
# Weather
$game_screen.weather($game_variables[x], $game_variables[y], duration)
# ...

Just check around at the top of Game_Screen and Game_Map. Those attr variables hold your current info. Then just find the method in the class to change them.

If you need anything specific, just ask.
 
Wow, this board isn't shy about quick responses! This could possibly be a good piece to put in your FAQ ;)

I'm going to try it out right now!

Thanks alot Seph!

EDIT: It brings up an error saying Insufficiant number of arguments. Can a normal $game_variable[] hold the information of the R, G, B at once?
 
Don't feel bad, high respect goes to anybody who offers their help ;)

With as many awesome scripts you wrote, I'm amazed you can remember all this crazy stuff. Maybe I should start taking memory vitamins, lol!

I'll figure it out eventually, unless somebody else ends up figuring it out first.
 
well..
I think it can go like this...
$game_variables[id] = $game_screen.tone.R

Can't remember I haven't scripted in RMXP for a long, long time...
My last script was the Sonic Platform Engine :) Good old times ...Anyway stop babling, if that doesn't work,I will try to thrown something back at you.
 

e

Sponsor

Kain Nobel":2nhd10td said:
Wow, this board isn't shy about quick responses! This could possibly be a good piece to put in your FAQ ;)

I'm going to try it out right now!

Thanks alot Seph!

EDIT: It brings up an error saying Insufficiant number of arguments. Can a normal $game_variable[] hold the information of the R, G, B at once?

Technically, $game_variable[] could hold anything. Could you post exactly what line caused the error?
 
Sorry, I was trying to get the $game_variables to store the RGB data of the screen color, and other information, with call scripts. (Then restore it with call scripts.)

Its not an error with anybodys script, I'm just trying to teach myself how to store and recall this data on my own without an outside script. Every day, I've gotta get on here and learn something new, because I want to become as good/better than anybody else who's got a decent mind on this forum ;)

However, I'll go ahead and try that script out, thanks.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top