The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: IXFURU on September 17, 2010, 01:39:12 PM

Title: Script to adjust switch/variable prior to loading
Post by: IXFURU on September 17, 2010, 01:39:12 PM
A while back, I thought I saw a script which would allow you to preset a variable and/or switch before the game was loaded or started.   I have this script, Simple HP/SP/State HUD by Jens009.  I want it to be shown, but not at the beginning of the game.  It runs off a switch and I can turn it off easily.  However, at the beginning, you go through a process of choosing your character, and I don't want the HUD visible until the player selects the character.  Even if I flip the switch off immediately at the start of the game, you can still see it for a brief moment at the beginning.
Title: Reply
Post by: sacred on September 17, 2010, 02:31:11 PM
For new game, you can go to script scene title. Find the def command_newgame (i don't remember the exact name) and before the end of that def, control the switch as you like by add this:       $game_switches[switch id] = true/false
Title: Re: Script to adjust switch/variable prior to loading
Post by: IXFURU on September 17, 2010, 03:12:30 PM
Thanks!  That worked!  Issue resolved  ;)