Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Vocab
- #------------------------------------------------------------------------------
- # This module defines terms and messages. It defines some data as constant
- # variables. Terms in the database are obtained from $data_system.
- #==============================================================================
- module Vocab
- # Party
- def self.party
- return "Party"
- end
- end
- #==============================================================================
- # ** End Vocab
- #------------------------------------------------------------------------------
- ###############################################################################
- #==============================================================================
- # ** Scene_File
- #------------------------------------------------------------------------------
- # This class performs the save and load screen processing.
- #==============================================================================
- class Scene_File < Scene_Base
- #--------------------------------------------------------------------------
- # * Return to Original Screen
- #--------------------------------------------------------------------------
- def return_scene
- if @from_title
- $scene = Scene_Title.new
- elsif @from_event
- $scene = Scene_Map.new
- else
- $scene = Scene_Map.new#Scene_Menu.new(5)
- end
- end
- end
- #==============================================================================
- # ** End Scene_File
- #------------------------------------------------------------------------------
- ###############################################################################
- #==============================================================================
- # ** Scene_End
- #------------------------------------------------------------------------------
- # This class performs game end screen processing.
- #==============================================================================
- class Scene_End < Scene_Base
- #--------------------------------------------------------------------------
- # * Return to Original Screen
- #--------------------------------------------------------------------------
- def return_scene
- $scene = Scene_Map.new#Scene_Menu.new(6)
- end
- end
- #==============================================================================
- # ** End Scene_End
- #------------------------------------------------------------------------------
- ###############################################################################
- #==============================================================================
- # ** Scene_Menu
- #------------------------------------------------------------------------------
- # This class performs the menu screen processing.
- #==============================================================================
- class Scene_Menu < Scene_Base
- #--------------------------------------------------------------------------
- # * Create Command Window
- #--------------------------------------------------------------------------
- def create_command_window
- s1 = Vocab::item
- s2 = Vocab::skill
- s3 = Vocab::equip
- s4 = Vocab::status
- s5 = Vocab::party
- s6 = Vocab::save
- s7 = Vocab::game_end
- @command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])#, s7])
- @command_window.index = @menu_index
- if $game_party.members.size == 0 # If number of party members is 0
- @command_window.draw_item(0, false) # Disable item
- @command_window.draw_item(1, false) # Disable skill
- @command_window.draw_item(2, false) # Disable equipment
- @command_window.draw_item(3, false) # Disable status
- @command_window.draw_item(4, false) # Disable party
- end
- # if $game_system.save_disabled # If save is forbidden
- # @command_window.draw_item(5, false) # Disable save
- # end
- end
- #--------------------------------------------------------------------------
- # * Update Command Selection
- #--------------------------------------------------------------------------
- def update_command_selection
- if Input.trigger?(Input::B)
- Sound.play_cancel
- $scene = Scene_Map.new
- elsif Input.trigger?(Input::C)
- if $game_party.members.size == 0 and @command_window.index < 5
- Sound.play_buzzer
- return
- elsif $game_system.save_disabled and @command_window.index == 5
- Sound.play_buzzer
- return
- end
- Sound.play_decision
- case @command_window.index
- when 0 # Item
- $scene = Scene_Item.new
- when 1,2,3 # Skill, equipment, status
- start_actor_selection
- when 4 # End Game
- $scene = Scene_Party.new
- # when 5 # Save
- # $scene = Scene_File.new(true, false, false)
- when 5 # End Game
- $scene = Scene_End.new
- end
- end
- end
- end
- #==============================================================================
- # ** End Scene_Menu
- #------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment