- 0
1st ever script, Need somer help (RGSS3)
Asked by
FleshRenderStudios
-
Recently Browsing 0 members
No registered users viewing this page.
Asked by
FleshRenderStudios
No registered users viewing this page.
latest problem (original post deleted):-
Hey guys just cleaned the code up quite a bit so it look's more readable but for some reason none of my scene's will not start e.g clicking on an option in my arena scene does nothing :)
module Flesh_Render_Studios module Arena_Scene_Module #////////////////////////////////////////////////////////////////# # Menu Command Names (Editable) - Only edit stuff inside the " " # #////////////////////////////////////////////////////////////////# MenuCommandText = "Arena" Select_Opponent = "Enter Arena" Arena_Status = "Check Your Status" Arena_Shop = "Enter Exchange Kiosk" end module Select_Opponent_Module #////////////////////////////////////////////////////////////////# # Menu Command Names (Editable) - Only edit stuff inside the " " # #////////////////////////////////////////////////////////////////# #///////////////////////////////////////////////////////////////# # Opponent Setup - Setup enemy data here for each enemy battler # #///////////////////////////////////////////////////////////////# Opponents = { "Slime" => { :Display_Name => "Slimey", # Set opponent name here :Battler_HP => 100, # Set opponent health points here :Battler_MP => 20, # Set opponent magic points here :Battler_ATK => 2, # Set opponent attack here :Battler_DEF => 5, # Set opponent defence here :Battler_MAT => 2, # Set opponent magic attack here :Battler_MDF => 1, # Set opponent magic defence here :Battler_AGI => 1, # Set opponent agility here :Battler_LUK => 0, # Set opponent luck here #:Currency_Drop_Type => #currency_array[1] #:Currency_Drop_Amount => #$game_variable[1] #:Conditional_Switch => #$game_switch[1] }, "Monster 2" => { :Display_Name => "Monster 2", # Set opponent name here :Battler_HP => 100, # Set opponent health points here :Battler_MP => 20, # Set opponent magic points here :Battler_ATK => 2, # Set opponent attack here :Battler_DEF => 5, # Set opponent defence here :Battler_MAT => 2, # Set opponent magic attack here :Battler_MDF => 1, # Set opponent magic defence here :Battler_AGI => 1, # Set opponent agility here :Battler_LUK => 0, # Set opponent luck here #:Currency_Drop_Type => #currency_array[1] #:Currency_Drop_Amount => #$game_variable[1] #:Conditional_Switch => #$game_switch[1] }, } #//////////////////////# # Opponent Setup - end # #//////////////////////# end module Arena_Status_Module A = "Check your Status" B = "Check you Rank" C = "Check your Missions" end module Arena_Shop_Module D = "Buy Item" E = "Sell Item" F = "Exchange Item" end end ################################################################################ class Arena_Scene < Scene_Base include Flesh_Render_Studios::Arena_Scene_Module #==================================# # Arena Scene Setup and Processing # #==================================# def start super() @Arena_Command_List = Arena_Menu_Command.new(0, 0) @Arena_Command_List.width = 160 @Arena_Command_List.height = 96 @custom_sprite = Sprite.new() @custom_sprite.bitmap = Cache.picture("Arena_Background") @custom_sprite.x = 0 @custom_sprite.y = 0 @custom_sprite.opacity = 155 end def post_start super() end def update super() return_scene() if Input.trigger?(:B) end def pre_terminate super() end def terminate super() end end # Arena Scene Setup #=================================# # Add Custom Command to game menu # #=================================# class Window_MenuCommand < Window_Command alias frs_add_original_commands_5vr67 add_original_commands def add_original_commands frs_add_original_commands_5vr67() add_command(Flesh_Render_Studios::Arena_Scene_Module::MenuCommandText, :Arena_Scene) end end #==================================# # Make Command List - Inside Arena # #==================================# class Arena_Menu_Command < Window_Command include Flesh_Render_Studios::Arena_Scene_Module def make_command_list add_command(Flesh_Render_Studios::Arena_Scene_Module::Select_Opponent, :select_opponent) add_command(Flesh_Render_Studios::Arena_Scene_Module::Arena_Status, :arena_status) add_command(Flesh_Render_Studios::Arena_Scene_Module::Arena_Shop, :arena_shop) end end #=============================# # Call Arena Method and Scene # #=============================# class Scene_Menu < Scene_MenuBase include Flesh_Render_Studios::Arena_Scene_Module alias frs_create_command_window_5vr67 create_command_window def create_command_window frs_create_command_window_5vr67() # Call Original Method @command_window.set_handler(:Arena_Scene, method(:arena_scene_method)) end def arena_scene_method SceneManager.call(Arena_Scene) end end ################################################################################ class Select_Opponent < Scene_Base include Flesh_Render_Studios::Select_Opponent_Module #==================================================# # Arena Select Opponent Scene Setup and Processing # #==================================================# def start super() @Arena_Command_List = Select_Opponent_Menu_Command.new(0, 0) @Arena_Command_List.width = 160 @Arena_Command_List.height = Graphics.height end def post_start super() end def update super() return_scene() if Input.trigger?(:B) end def pre_terminate super() end def terminate super() end end # Select Opponent Scene Setup #==========================================# # Make Command List inside Select Opponent # #==========================================# class Select_Opponent_Menu_Command < Window_Command include Flesh_Render_Studios::Select_Opponent_Module def make_command_list add_command(Flesh_Render_Studios::Select_Opponent_Module::Opponents, :Select_Opponent) end end #=======================================# # Call Select Opponent Method and Scene # #=======================================# class Scene_Menu < Scene_MenuBase include Flesh_Render_Studios::Select_Opponent_Module alias Select_Opponent_Menu_Command_87gf78 create_command_window def create_command_window Select_Opponent_Menu_Command_87gf78() # Call Original Method @command_window.set_handler(:Select_Opponent, method(:select_opponent_method)) end def select_opponent_method SceneManager.call(Select_Opponent) end end ################################################################################ class Arena_Status_Scene < Scene_Base include Flesh_Render_Studios::Arena_Status_Module #=========================================# # Arena Status Scene Setup and Processing # #=========================================# def start super() @Arena_Command_List = Arena_Status_Menu_Command.new(0, 0) @Arena_Command_List.width = 160 @Arena_Command_List.height = Graphics.height end def post_start super() end def update super() return_scene() if Input.trigger?(:B) end def pre_terminate super() end def terminate super() end end # Arena Status Scene Setup #==========================================# # Make Command List inside Arena Status # #==========================================# class Arena_Status_Menu_Command < Window_Command include Flesh_Render_Studios::Arena_Status_Module def make_command_list add_command(Flesh_Render_Studios::Arena_Status_Module::A, :Arena_Status) add_command(Flesh_Render_Studios::Arena_Status_Module::B, :Arena_Status) add_command(Flesh_Render_Studios::Arena_Status_Module::C, :Arena_Status) end end #=======================================# # Call Arena Status Method and Scene # #=======================================# class Scene_Menu < Scene_MenuBase include Flesh_Render_Studios::Arena_Status_Module alias arena_status_menu_command_th49gi create_command_window def create_command_window arena_status_menu_command_th49gi() # Call Original Method @command_window.set_handler(:Arena_Status, method(:arena_status_method)) end def arena_status_method SceneManager.call(Arena_Status_Scene) end end ################################################################################ class Arena_Shop_Scene < Scene_Base include Flesh_Render_Studios::Arena_Shop_Module #============================# # Scene Setup and Processing # #============================# def start super() @Arena_Command_List = Arena_Shop_Menu_Command.new(0, 0) @Arena_Command_List.width = 160 @Arena_Command_List.height = 128 p("called Arena_Shop_Menu_Command") end def post_start super() end def update super() return_scene() if Input.trigger?(:B) end def pre_terminate super() end def terminate super() end end # Arena Shop Scene Setup #==========================================# # Make Command List inside Arena Shop # #==========================================# class Arena_Shop_Menu_Command < Window_Command include Flesh_Render_Studios::Arena_Shop_Module def make_command_list add_command(Flesh_Render_Studios::Arena_Shop_Module::D, :arena_shop) add_command(Flesh_Render_Studios::Arena_Shop_Module::E, :arena_shop) add_command(Flesh_Render_Studios::Arena_Shop_Module::F, :arena_shop) end end #=======================================# # Call Arena Shop Method and Scene # #=======================================# class Scene_Menu < Scene_MenuBase include Flesh_Render_Studios::Arena_Shop_Module alias arena_shop_menu_command_65dc6 create_command_window def create_command_window arena_shop_menu_command_65dc6() # Call Original Method @command_window.set_handler(:arena_shop, method(:arena_shop_method)) end def arena_shop_method SceneManager.call(Arena_Shop_Scene) end end ################################################################################As far as I can tell I'm notdoing anything wrong, but my eye's hurt now so I probablly missed something very simple :s
As advised by BigAce I have renamed all the method's, module's and call's differently so that they cannot conflict with one another.

Edited by FleshRenderStudiosShare this post
Link to post
Share on other sites