Cần script gấp

BrosbrosbrosBrosbrosbros Posts: 28Registered
Mình làm horror game nên cần cái script làm cho bảng menu mất hết chỉ còn item, save, game end.
Nếu có thể thì giúp m làm phần item tổng hợp đò vật lun dc ko? ( ko phân ra amour,weapon...)
Thanks nhiều :)  
«1

Comments

  • Black FaceBlack Face Posts: 424Registered
    Tưởng cần script gấp giấy thì có chứ cái đó thì chịu 277638789.gif
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    Black Face wrote:
    Tưởng cần script gấp giấy thì có chứ cái đó thì chịu 277638789.gif

    :huh:
  • McDonanMcDonan Posts: 280Registered
    Đây bạn:
    #==============================================================================

    # ** Scene_Menu
    #
    #  This class performs the menu screen processing.
    #==============================================================================

    class Scene_Menu < Scene_MenuBase
      
      alias :mrts_wh_start :start
      
      def start
        mrts_wh_start
        move_windows
      end

      def create_gold_window ; end
        
      def move_windows
        @command_window.y = Graphics.height - @command_window.height - 20
        @command_window.x += 10
        @status_window.y = Graphics.height - @status_window.height - 10
        @status_window.x += 20
      end
    end

    class Window_MenuStatus < Window_Selectable
      #
      # * Get Window Width
      #
      def window_width
        Graphics.width - 180
      end
      #
      # * Get Window Height
      #
      def window_height
        96 + standard_padding * 2
      end
      
      def draw_actor_simple_status(actor, x, y)
        draw_actor_name(actor, x, y + 12)
        draw_actor_level(actor, x, y + line_height * 1 + 12)
        draw_actor_hp(actor, x + 100, y + line_height * 1 + 12)
      end
    end

    class Window_MenuCommand < Window_Command
      #
      # * Get Window Width
      #
      def window_width
        return 140
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
    end 
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    Boss_RPG wrote:
    Đây bạn:
    #==============================================================================

    # ** Scene_Menu
    #
    #  This class performs the menu screen processing.
    #==============================================================================

    class Scene_Menu < Scene_MenuBase
      
      alias :mrts_wh_start :start
      
      def start
        mrts_wh_start
        move_windows
      end

      def create_gold_window ; end
        
      def move_windows
        @command_window.y = Graphics.height - @command_window.height - 20
        @command_window.x += 10
        @status_window.y = Graphics.height - @status_window.height - 10
        @status_window.x += 20
      end
    end

    class Window_MenuStatus < Window_Selectable
      #
      # * Get Window Width
      #
      def window_width
        Graphics.width - 180
      end
      #
      # * Get Window Height
      #
      def window_height
        96 + standard_padding * 2
      end
      
      def draw_actor_simple_status(actor, x, y)
        draw_actor_name(actor, x, y + 12)
        draw_actor_level(actor, x, y + line_height * 1 + 12)
        draw_actor_hp(actor, x + 100, y + line_height * 1 + 12)
      end
    end

    class Window_MenuCommand < Window_Command
      #
      # * Get Window Width
      #
      def window_width
        return 140
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
    end 
    bỏ vào materials hả???
  • McDonanMcDonan Posts: 280Registered
    Bỏ vào dưới phần Scene_Gameover(gần cuối) và trên phần Main (Bắt buộc)
    Bạn còn thêm script nào nữa thì cứ bỏ vào cái mấy cái vị trí trống đó,thiếu chỗ thì insert thêm vào
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    Boss_RPG wrote:
    Bỏ vào dưới phần Scene_Gameover(gần cuối) và trên phần Main (Bắt buộc)
    Bạn còn thêm script nào nữa thì cứ bỏ vào cái mấy cái vị trí trống đó,thiếu chỗ thì insert thêm vào
    Script 'Scene_Gameover' line 10: NameError occurred.
    underfined method `Confusedtart` for class `Scene_Menu'  :huh:
    (có print màn hình lỗi mà ko bik đăng chỗ nào, ai bik chỉ m với)
  • StupidDonutStupidDonut Posts: 1,196Registered
    Boss_RPG wrote:
    Bỏ vào dưới phần Scene_Gameover(gần cuối) và trên phần Main (Bắt buộc)
    Bạn còn thêm script nào nữa thì cứ bỏ vào cái mấy cái vị trí trống đó,thiếu chỗ thì insert thêm vào
    Script 'Scene_Gameover' line 10: NameError occurred.
    underfined method `Confusedtart` for class `Scene_Menu'  :huh:
    (có print màn hình lỗi mà ko bik đăng chỗ nào, ai bik chỉ m với)
    Paste thẳng vào Window_MenuCommand
    #==============================================================================

    # ** Window_MenuCommand
    #
    #  This command window appears on the menu screen.
    #==============================================================================

    class Window_MenuCommand < Window_Command
      #
      # * Initialize Command Selection Position (Class Method)
      #
      def self.init_command_position
    @last_command_symbol = nil
      end
      #
      # * Object Initialization
      #
      def initialize
        super(0, 0)
        select_last
      end
      #
      # * Get Window Width
      #
      def window_width
        return 160
      end
      #
      # * Get Number of Lines to Show
      #
      def visible_line_number
        item_max
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_formation_command
        add_original_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
    #    add_command(Vocab::skill,  :skill,  main_commands_enabled)
    #    add_command(Vocab::equip,  :equip,  main_commands_enabled)
    #    add_command(Vocab::status, :status, main_commands_enabled)
      end
      #
      # * Add Formation to Command List
      #
      def add_formation_command
    #    add_command(Vocab::formation, :formation, formation_enabled)
      end
      #
      # * For Adding Original Commands
      #
      def add_original_commands
      end
      #
      # * Add Save to Command List
      #
      def add_save_command
        add_command(Vocab::save, :save, save_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
      #
      # * Get Activation State of Main Commands
      #
      def main_commands_enabled
        $game_party.exists
      end
      #
      # * Get Activation State of Formation
      #
      def formation_enabled
        $game_party.members.size >= 2 && !$game_system.formation_disabled
      end
      #
      # * Get Activation State of Save
      #
      def save_enabled
        !$game_system.save_disabled
      end
      #
      # * Processing When OK Button Is Pressed
      #
      def process_ok
    @last_command_symbol = current_symbol
        super
      end
      #
      # * Restore Previous Selection Position
      #
      def select_last
    @last_command_symbol)
      end
    end
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    mr.rpg.700 wrote:
    Script 'Scene_Gameover' line 10: NameError occurred.
    underfined method `Confusedtart` for class `Scene_Menu'  :huh:
    (có print màn hình lỗi mà ko bik đăng chỗ nào, ai bik chỉ m với)
    Paste thẳng vào Window_MenuCommand
    #==============================================================================

    # ** Window_MenuCommand
    #
    #  This command window appears on the menu screen.
    #==============================================================================

    class Window_MenuCommand < Window_Command
      #
      # * Initialize Command Selection Position (Class Method)
      #
      def self.init_command_position
    @last_command_symbol = nil
      end
      #
      # * Object Initialization
      #
      def initialize
        super(0, 0)
        select_last
      end
      #
      # * Get Window Width
      #
      def window_width
        return 160
      end
      #
      # * Get Number of Lines to Show
      #
      def visible_line_number
        item_max
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_formation_command
        add_original_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
    #    add_command(Vocab::skill,  :skill,  main_commands_enabled)
    #    add_command(Vocab::equip,  :equip,  main_commands_enabled)
    #    add_command(Vocab::status, :status, main_commands_enabled)
      end
      #
      # * Add Formation to Command List
      #
      def add_formation_command
    #    add_command(Vocab::formation, :formation, formation_enabled)
      end
      #
      # * For Adding Original Commands
      #
      def add_original_commands
      end
      #
      # * Add Save to Command List
      #
      def add_save_command
        add_command(Vocab::save, :save, save_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
      #
      # * Get Activation State of Main Commands
      #
      def main_commands_enabled
        $game_party.exists
      end
      #
      # * Get Activation State of Formation
      #
      def formation_enabled
        $game_party.members.size >= 2 && !$game_system.formation_disabled
      end
      #
      # * Get Activation State of Save
      #
      def save_enabled
        !$game_system.save_disabled
      end
      #
      # * Processing When OK Button Is Pressed
      #
      def process_ok
    @last_command_symbol = current_symbol
        super
      end
      #
      # * Restore Previous Selection Position
      #
      def select_last
    @last_command_symbol)
      end
    end
    Vẫn báo lỗi :(
  • McDonanMcDonan Posts: 280Registered
    mr.rpg.700 wrote:
    Script 'Scene_Gameover' line 10: NameError occurred.
    underfined method `Confusedtart` for class `Scene_Menu'  :huh:
    (có print màn hình lỗi mà ko bik đăng chỗ nào, ai bik chỉ m với)
    Paste thẳng vào Window_MenuCommand
    #==============================================================================

    # ** Window_MenuCommand
    #
    #  This command window appears on the menu screen.
    #==============================================================================

    class Window_MenuCommand < Window_Command
      #
      # * Initialize Command Selection Position (Class Method)
      #
      def self.init_command_position
    @last_command_symbol = nil
      end
      #
      # * Object Initialization
      #
      def initialize
        super(0, 0)
        select_last
      end
      #
      # * Get Window Width
      #
      def window_width
        return 160
      end
      #
      # * Get Number of Lines to Show
      #
      def visible_line_number
        item_max
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_formation_command
        add_original_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
    #    add_command(Vocab::skill,  :skill,  main_commands_enabled)
    #    add_command(Vocab::equip,  :equip,  main_commands_enabled)
    #    add_command(Vocab::status, :status, main_commands_enabled)
      end
      #
      # * Add Formation to Command List
      #
      def add_formation_command
    #    add_command(Vocab::formation, :formation, formation_enabled)
      end
      #
      # * For Adding Original Commands
      #
      def add_original_commands
      end
      #
      # * Add Save to Command List
      #
      def add_save_command
        add_command(Vocab::save, :save, save_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
      #
      # * Get Activation State of Main Commands
      #
      def main_commands_enabled
        $game_party.exists
      end
      #
      # * Get Activation State of Formation
      #
      def formation_enabled
        $game_party.members.size >= 2 && !$game_system.formation_disabled
      end
      #
      # * Get Activation State of Save
      #
      def save_enabled
        !$game_system.save_disabled
      end
      #
      # * Processing When OK Button Is Pressed
      #
      def process_ok
    @last_command_symbol = current_symbol
        super
      end
      #
      # * Restore Previous Selection Position
      #
      def select_last
    @last_command_symbol)
      end
    end

    Thôi chết bạn đừng copy
    Vào đây cop nè : http://pastebin.com/n5Lp6gE9
    (tại cái mặt cười ấy mà)
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    mr.rpg.700 wrote:
    Paste thẳng vào Window_MenuCommand
    #==============================================================================

    # ** Window_MenuCommand
    #
    #  This command window appears on the menu screen.
    #==============================================================================

    class Window_MenuCommand < Window_Command
      #
      # * Initialize Command Selection Position (Class Method)
      #
      def self.init_command_position
    @last_command_symbol = nil
      end
      #
      # * Object Initialization
      #
      def initialize
        super(0, 0)
        select_last
      end
      #
      # * Get Window Width
      #
      def window_width
        return 160
      end
      #
      # * Get Number of Lines to Show
      #
      def visible_line_number
        item_max
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_main_commands
        add_formation_command
        add_original_commands
        add_save_command
        add_game_end_command
      end
      #
      # * Add Main Commands to List
      #
      def add_main_commands
        add_command(Vocab::item,   :item,   main_commands_enabled)
    #    add_command(Vocab::skill,  :skill,  main_commands_enabled)
    #    add_command(Vocab::equip,  :equip,  main_commands_enabled)
    #    add_command(Vocab::status, :status, main_commands_enabled)
      end
      #
      # * Add Formation to Command List
      #
      def add_formation_command
    #    add_command(Vocab::formation, :formation, formation_enabled)
      end
      #
      # * For Adding Original Commands
      #
      def add_original_commands
      end
      #
      # * Add Save to Command List
      #
      def add_save_command
        add_command(Vocab::save, :save, save_enabled)
      end
      #
      # * Add Exit Game to Command List
      #
      def add_game_end_command
        add_command(Vocab::game_end, :game_end)
      end
      #
      # * Get Activation State of Main Commands
      #
      def main_commands_enabled
        $game_party.exists
      end
      #
      # * Get Activation State of Formation
      #
      def formation_enabled
        $game_party.members.size >= 2 && !$game_system.formation_disabled
      end
      #
      # * Get Activation State of Save
      #
      def save_enabled
        !$game_system.save_disabled
      end
      #
      # * Processing When OK Button Is Pressed
      #
      def process_ok
    @last_command_symbol = current_symbol
        super
      end
      #
      # * Restore Previous Selection Position
      #
      def select_last
    @last_command_symbol)
      end
    end
    Vẫn báo lỗi :(
    À thôi, mình làm dc rồi mà sao cái bảng to to điền hp mp lv gì gì đấy không biến mất?
    phiền bạn làm phần hiển thị tiền & cái bảng đó mất đi dc ko, giúp mình dịch cái bảng menu qua chính giữa với
    (script bạn thiếu phần save nên bổ sung thêm,làm lun phần item tổng hợp giúp mình) :blush:
  • StupidDonutStupidDonut Posts: 1,196Registered
    đơn giản là down cái này về, thẩy vào data

    http://www.mediafire.com/download/237ebk449qz84kz/Scripts.rar
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    mr.rpg.700 wrote:
    đơn giản là down cái này về, thẩy vào data

    http://www.mediafire.com/download/237ebk449qz84kz/Scripts.rar

    bạn chỉ mình cách xóa continue ở đầu game được không?
  • StupidDonutStupidDonut Posts: 1,196Registered
    mr.rpg.700 wrote:
    đơn giản là down cái này về, thẩy vào data

    http://www.mediafire.com/download/237ebk449qz84kz/Scripts.rar

    bạn chỉ mình cách xóa continue ở đầu game được không?

    để vào Scene_Title
    #==============================================================================

    # ** Scene_Title
    #
    #  This class performs the title screen processing.
    #==============================================================================

    class Scene_Title < Scene_Base
      #
      # * Start Processing
      #
      def start
        super
        SceneManager.clear
        Graphics.freeze
        create_background
        create_foreground
        create_command_window
        play_title_music
      end
      #
      # * Get Transition Speed
      #
      def transition_speed
        return 20
      end
      #
      # * Termination Processing
      #
      def terminate
        super
        SceneManager.snapshot_for_background
        dispose_background
        dispose_foreground
      end
      #
      # * Create Background
      #
      def create_background
        @sprite1 = Sprite.new
        @sprite1.bitmap = Cache.title1($data_system.title1_name)
        @sprite2 = Sprite.new
        @sprite2.bitmap = Cache.title2($data_system.title2_name)
        center_sprite(@sprite1)
        center_sprite(@sprite2)
      end
      #
      # * Create Foreground
      #
      def create_foreground
        @foreground_sprite = Sprite.new
        @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
        @foreground_sprite.z = 100
        draw_game_title if $data_system.opt_draw_title
      end
      #
      # * Draw Game Title
      #
      def draw_game_title
        @foreground_sprite.bitmap.font.size = 48
        rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
        @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
      end
      #
      # * Free Background
      #
      def dispose_background
        @sprite1.bitmap.dispose
        @sprite1.dispose
        @sprite2.bitmap.dispose
        @sprite2.dispose
      end
      #
      # * Free Foreground
      #
      def dispose_foreground
        @foreground_sprite.bitmap.dispose
        @foreground_sprite.dispose
      end
      #
      # * Move Sprite to Screen Center
      #
      def center_sprite(sprite)
        sprite.ox = sprite.bitmap.width / 2
        sprite.oy = sprite.bitmap.height / 2
        sprite.x = Graphics.width / 2
        sprite.y = Graphics.height / 2
      end
      #
      # * Create Command Window
      #
      def create_command_window
        @command_window = Window_TitleCommand.new
        @command_window.set_handler(:new_game, method(:command_new_game))
    #    @command_window.set_handler(:continue, method(:command_continue))
        @command_window.set_handler(:shutdown, method(:command_shutdown))
      end
      #
      # * Close Command Window
      #
      def close_command_window
        @command_window.close
        update until @command_window.close?
      end
      #
      # * [New Game] Command
      #
      def command_new_game
        DataManager.setup_new_game
        close_command_window
        fadeout_all
        $game_map.autoplay
        SceneManager.goto(Scene_Map)
      end
      #
      # * [Continue] Command
      #
      def command_continue
        close_command_window
        SceneManager.call(Scene_Load)
      end
      #
      # * [Shut Down] Command
      #
      def command_shutdown
        close_command_window
        fadeout_all
        SceneManager.exit
      end
      #
      # * Play Title Screen Music
      #
      def play_title_music
        $data_system.title_bgm.play
        RPG::BGS.stop
        RPG::ME.stop
      end
    end
  • BrosbrosbrosBrosbrosbros Posts: 28Registered
    mr.rpg.700 wrote:

    bạn chỉ mình cách xóa continue ở đầu game được không?

    để vào Scene_Title
    #==============================================================================

    # ** Scene_Title
    #
    #  This class performs the title screen processing.
    #==============================================================================

    class Scene_Title < Scene_Base
      #
      # * Start Processing
      #
      def start
        super
        SceneManager.clear
        Graphics.freeze
        create_background
        create_foreground
        create_command_window
        play_title_music
      end
      #
      # * Get Transition Speed
      #
      def transition_speed
        return 20
      end
      #
      # * Termination Processing
      #
      def terminate
        super
        SceneManager.snapshot_for_background
        dispose_background
        dispose_foreground
      end
      #
      # * Create Background
      #
      def create_background
        @sprite1 = Sprite.new
        @sprite1.bitmap = Cache.title1($data_system.title1_name)
        @sprite2 = Sprite.new
        @sprite2.bitmap = Cache.title2($data_system.title2_name)
        center_sprite(@sprite1)
        center_sprite(@sprite2)
      end
      #
      # * Create Foreground
      #
      def create_foreground
        @foreground_sprite = Sprite.new
        @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
        @foreground_sprite.z = 100
        draw_game_title if $data_system.opt_draw_title
      end
      #
      # * Draw Game Title
      #
      def draw_game_title
        @foreground_sprite.bitmap.font.size = 48
        rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
        @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
      end
      #
      # * Free Background
      #
      def dispose_background
        @sprite1.bitmap.dispose
        @sprite1.dispose
        @sprite2.bitmap.dispose
        @sprite2.dispose
      end
      #
      # * Free Foreground
      #
      def dispose_foreground
        @foreground_sprite.bitmap.dispose
        @foreground_sprite.dispose
      end
      #
      # * Move Sprite to Screen Center
      #
      def center_sprite(sprite)
        sprite.ox = sprite.bitmap.width / 2
        sprite.oy = sprite.bitmap.height / 2
        sprite.x = Graphics.width / 2
        sprite.y = Graphics.height / 2
      end
      #
      # * Create Command Window
      #
      def create_command_window
        @command_window = Window_TitleCommand.new
        @command_window.set_handler(:new_game, method(:command_new_game))
    #    @command_window.set_handler(:continue, method(:command_continue))
        @command_window.set_handler(:shutdown, method(:command_shutdown))
      end
      #
      # * Close Command Window
      #
      def close_command_window
        @command_window.close
        update until @command_window.close?
      end
      #
      # * [New Game] Command
      #
      def command_new_game
        DataManager.setup_new_game
        close_command_window
        fadeout_all
        $game_map.autoplay
        SceneManager.goto(Scene_Map)
      end
      #
      # * [Continue] Command
      #
      def command_continue
        close_command_window
        SceneManager.call(Scene_Load)
      end
      #
      # * [Shut Down] Command
      #
      def command_shutdown
        close_command_window
        fadeout_all
        SceneManager.exit
      end
      #
      # * Play Title Screen Music
      #
      def play_title_music
        $data_system.title_bgm.play
        RPG::BGS.stop
        RPG::ME.stop
      end
    end
    vẫn còn mà :(((
  • StupidDonutStupidDonut Posts: 1,196Registered
    mr.rpg.700 wrote:

    để vào Scene_Title
    #==============================================================================

    # ** Scene_Title
    #
    #  This class performs the title screen processing.
    #==============================================================================

    class Scene_Title < Scene_Base
      #
      # * Start Processing
      #
      def start
        super
        SceneManager.clear
        Graphics.freeze
        create_background
        create_foreground
        create_command_window
        play_title_music
      end
      #
      # * Get Transition Speed
      #
      def transition_speed
        return 20
      end
      #
      # * Termination Processing
      #
      def terminate
        super
        SceneManager.snapshot_for_background
        dispose_background
        dispose_foreground
      end
      #
      # * Create Background
      #
      def create_background
        @sprite1 = Sprite.new
        @sprite1.bitmap = Cache.title1($data_system.title1_name)
        @sprite2 = Sprite.new
        @sprite2.bitmap = Cache.title2($data_system.title2_name)
        center_sprite(@sprite1)
        center_sprite(@sprite2)
      end
      #
      # * Create Foreground
      #
      def create_foreground
        @foreground_sprite = Sprite.new
        @foreground_sprite.bitmap = Bitmap.new(Graphics.width, Graphics.height)
        @foreground_sprite.z = 100
        draw_game_title if $data_system.opt_draw_title
      end
      #
      # * Draw Game Title
      #
      def draw_game_title
        @foreground_sprite.bitmap.font.size = 48
        rect = Rect.new(0, 0, Graphics.width, Graphics.height / 2)
        @foreground_sprite.bitmap.draw_text(rect, $data_system.game_title, 1)
      end
      #
      # * Free Background
      #
      def dispose_background
        @sprite1.bitmap.dispose
        @sprite1.dispose
        @sprite2.bitmap.dispose
        @sprite2.dispose
      end
      #
      # * Free Foreground
      #
      def dispose_foreground
        @foreground_sprite.bitmap.dispose
        @foreground_sprite.dispose
      end
      #
      # * Move Sprite to Screen Center
      #
      def center_sprite(sprite)
        sprite.ox = sprite.bitmap.width / 2
        sprite.oy = sprite.bitmap.height / 2
        sprite.x = Graphics.width / 2
        sprite.y = Graphics.height / 2
      end
      #
      # * Create Command Window
      #
      def create_command_window
        @command_window = Window_TitleCommand.new
        @command_window.set_handler(:new_game, method(:command_new_game))
    #    @command_window.set_handler(:continue, method(:command_continue))
        @command_window.set_handler(:shutdown, method(:command_shutdown))
      end
      #
      # * Close Command Window
      #
      def close_command_window
        @command_window.close
        update until @command_window.close?
      end
      #
      # * [New Game] Command
      #
      def command_new_game
        DataManager.setup_new_game
        close_command_window
        fadeout_all
        $game_map.autoplay
        SceneManager.goto(Scene_Map)
      end
      #
      # * [Continue] Command
      #
      def command_continue
        close_command_window
        SceneManager.call(Scene_Load)
      end
      #
      # * [Shut Down] Command
      #
      def command_shutdown
        close_command_window
        fadeout_all
        SceneManager.exit
      end
      #
      # * Play Title Screen Music
      #
      def play_title_music
        $data_system.title_bgm.play
        RPG::BGS.stop
        RPG::ME.stop
      end
    end
    vẫn còn mà :(((

    nhầm
    để vào Window_TitleCommand
    #==============================================================================

    # ** Window_TitleCommand
    #
    #  This window is for selecting New Game/Continue on the title screen.
    #==============================================================================

    class Window_TitleCommand < Window_Command
      #
      # * Object Initialization
      #
      def initialize
        super(0, 0)
        update_placement
        select_symbol(:continue) if continue_enabled
        self.openness = 0
        open
      end
      #
      # * Get Window Width
      #
      def window_width
        return 160
      end
      #
      # * Update Window Position
      #
      def update_placement
        self.x = (Graphics.width - width) / 2
        self.y = (Graphics.height * 1.6 - height) / 2
      end
      #
      # * Create Command List
      #
      def make_command_list
        add_command(Vocab::new_game, :new_game)
    #    add_command(Vocab::continue, :continue, continue_enabled)
        add_command(Vocab::shutdown, :shutdown)
      end
      #
      # * Get Activation State of Continue
      #
      def continue_enabled
        DataManager.save_file_exists?
      end
    end
Sign In or Register to comment.