Victory kỉu mí

Thảo luận trong 'Game Development' bắt đầu bởi y.r.p, 2/6/06.

  1. y.r.p

    y.r.p Youtube Master Race

    Tham gia ngày:
    15/8/04
    Bài viết:
    85
    This is a really easy edit that will be good for beginner scripters like me.


    Above main create Window_Victory and place this code inside it


    CODE


    #==============================================================================
    # ¦ Window_Victory
    #------------------------------------------------------------------------------
    # ??????????????????????
    #==============================================================================

    class Window_Victory < Window_Base
    #--------------------------------------------------------------------------
    # ? ?????????
    #--------------------------------------------------------------------------
    def initialize
    super(0, 0, 160, 96)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $defaultfonttype # "Number of Victorys" window font
    self.contents.font.size = $defaultfontsize
    refresh
    end
    #--------------------------------------------------------------------------
    # ? ??????
    #--------------------------------------------------------------------------
    def refresh
    self.contents.font.color = system_color
    self.contents.draw_text(4, 0, 120, 32, "Victorys")
    self.contents.font.color = normal_color
    self.contents.draw_text(4, 32, 120, 32, $game_variables[2].to_s, 2)
    end
    end




    Then go to Scene_Menu and find line 45-48


    CODE

    REPLACE

    # ??????????
    @steps_window = Window_Steps.new
    @steps_window.x = 0
    @steps_window.y = 320



    WITH

    # Make victory window
    @victory_window = Window_Victory.new
    @victory_window.x = 0
    @victory_window.y = 320




    Still in Scene_Menu find line 77

    CODE


    REPLACE

    @steps_window.dispose



    WITH

    @victory_window.dispose



    Then find line 88

    CODE


    REPLACE

    @steps_window.update


    WITH

    @victory_window.update

    chịu khó dịch nhe ;;)
    CHÚC THÀNH CÔNG :D
     

Chia sẻ trang này