Main Menu
  • Welcome to The RPG Maker Resource Kit.

Script to adjust switch/variable prior to loading

Started by IXFURU, September 17, 2010, 01:39:12 PM

0 Members and 1 Guest are viewing this topic.

IXFURU

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.

sacred

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

IXFURU