I'm using the custom switches Yanfly provided in his System Menu script, and it works. However, the "effect" of the switch doesn't survive when you close/re-open the saved game. The switch remains on/off as you set it, but the "effect" of that switch (in the ADDED section below) doesn't carry over.
I've never taken data from RTP and saved in a config file, so I have no experience with that.
Can anyone lend a hand?
I've never taken data from RTP and saved in a config file, so I have no experience with that.
Can anyone lend a hand?
Code:
#-------------------------------------------------------------------------- # change_custom_switch #-------------------------------------------------------------------------- def change_custom_switch(direction) value = direction == :left ? false : true ext = current_ext current_case = $game_switches[YEA::SYSTEM::CUSTOM_SWITCHES[ext][0]] $game_switches[YEA::SYSTEM::CUSTOM_SWITCHES[ext][0]] = value Sound.play_cursor if value != current_case draw_item(index) #ADDED if !$game_switches[25] $mouse.enabled = false end #end ADD end