MCsephiroth13
Member
What statement is used to turn on a specified switch?
I'm thinking it's:
or
but I have absolutely no idea.
I want to be able to incorporate it in this script after the conditional branch that checks if a save file exists:
Line 12 is where I want it. (Btw, special thanks to Zeriab for the above script! You saved my game!!!)
I'm thinking it's:
Code:
$game_system.switches = data.switches(x)(
or
Code:
@data.switches(x) = true
but I have absolutely no idea.
I want to be able to incorporate it in this script after the conditional branch that checks if a save file exists:
Code:
class Scene_Title
alias_method :zeriab_scene_title_main, :main
def main
alias :main :zeriab_scene_title_main
load_database
# Select the starting map and coordinates
$data_system.start_map_id = 1
$data_system.start_x, $data_system.start_y = 8, 5
command_new_game
end
if FileTest.exist?("Save#{i+1}.rxdata")
$game_system.switches =
def load_database
# Load database
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
# Make system object
$game_system = Game_System.new
end
end
Line 12 is where I want it. (Btw, special thanks to Zeriab for the above script! You saved my game!!!)