Giúp phần script

Hari Bé ThưHari Bé Thư Posts: 926Registered
[align=center]Giúp hôm nay mới lên google tìm cái script của corpse party vừa copy paste vào cái script scene_base thì nó báo lỗi như z ai bik chỉ với[/align]



[align=center]JdkGdNT.jpg[/align]

Comments

  • slucis7593slucis7593 Posts: 544Registered
    Bạn post full script lên đây để mọi ng dễ tìm lỗi nhé
  • Hari Bé ThưHari Bé Thư Posts: 926Registered
    slucis7593 wrote:
    Bạn post full script lên đây để mọi ng dễ tìm lỗi nhé

    Đây
    yjNSAIB.jpg
    pPASeXD.jpg
    12HAhfL.jpg
    2OdJtT7.jpg
  • dsiver144dsiver144 Posts: 1,064Registered
    Haha ý bác ấy là post cái script bị lỗi kia kì. Chứ tại sao lại post mấy cái trên kia chi vậy.
  • Dang_KhoaDang_Khoa Posts: 3,861Administrators
    Nhìn tên script là có thể đoán bệnh được rồi :3
  • Hari Bé ThưHari Bé Thư Posts: 926Registered
    #==============================================================================
    # ** Scene_Base
    #------------------------------------------------------------------------------
    #  This is a super class of all scenes within the game.
    #==============================================================================
    
    class Scene_Base
      #--------------------------------------------------------------------------
      # * Main
      #--------------------------------------------------------------------------
      def main
        start
        post_start
        update until scene_changing?
        pre_terminate
        terminate
      end
      #--------------------------------------------------------------------------
      # * Start Processing
      #--------------------------------------------------------------------------
      def start
        create_main_viewport
      end
      #--------------------------------------------------------------------------
      # * Post-Start Processing
      #--------------------------------------------------------------------------
      def post_start
        perform_transition
        Input.update
      end
      #--------------------------------------------------------------------------
      # * Determine if Scene Is Changing
      #--------------------------------------------------------------------------
      def scene_changing?
        SceneManager.scene != self
      end
      #--------------------------------------------------------------------------
      # * Frame Update
      #--------------------------------------------------------------------------
      def update
        update_basic
      end
      #--------------------------------------------------------------------------
      # * Update Frame (Basic)
      #--------------------------------------------------------------------------
      def update_basic
        Graphics.update
        Input.update
        update_all_windows
      end
      #--------------------------------------------------------------------------
      # * Pre-Termination Processing
      #--------------------------------------------------------------------------
      def pre_terminate
      end
      #--------------------------------------------------------------------------
      # * Termination Processing
      #--------------------------------------------------------------------------
      def terminate
        Graphics.freeze
        dispose_all_windows
        dispose_main_viewport
      end
      #--------------------------------------------------------------------------
      # * Execute Transition
      #--------------------------------------------------------------------------
      def perform_transition
        Graphics.transition(transition_speed)
      end
      #--------------------------------------------------------------------------
      # * Get Transition Speed
      #--------------------------------------------------------------------------
      def transition_speed
        return 10
      end
      #--------------------------------------------------------------------------
      # * Create Viewport
      #--------------------------------------------------------------------------
      def create_main_viewport
        @viewport = Viewport.new
        @viewport.z = 200
      end
      #--------------------------------------------------------------------------
      # * Free Viewport
      #--------------------------------------------------------------------------
      def dispose_main_viewport
        @viewport.dispose
      end
      #--------------------------------------------------------------------------
      # * Update All Windows
      #--------------------------------------------------------------------------
      def update_all_windows
        instance_variables.each do |varname|
          ivar = instance_variable_get(varname)
          ivar.update if ivar.is_a?(Window)
        end
      end
      #--------------------------------------------------------------------------
      # * Free All Windows
      #--------------------------------------------------------------------------
      def dispose_all_windows
        instance_variables.each do |varname|
          ivar = instance_variable_get(varname)
          ivar.dispose if ivar.is_a?(Window)
        end
      end
      #--------------------------------------------------------------------------
      # * Return to Calling Scene
      #--------------------------------------------------------------------------
      def return_scene
        SceneManager.return
      end
      #--------------------------------------------------------------------------
      # * Fade Out All Sounds and Graphics
      #--------------------------------------------------------------------------
      def fadeout_all(time = 1000)
        RPG::BGM.fade(time)
        RPG::BGS.fade(time)
        RPG::ME.fade(time)
        Graphics.fadeout(time * Graphics.frame_rate / 1000)
        RPG::BGM.stop
        RPG::BGS.stop
        RPG::ME.stop
      end
      #--------------------------------------------------------------------------
      # * Determine if Game Is Over
      #   Transition to the game over screen if the entire party is dead.
      #--------------------------------------------------------------------------
      def check_gameover
        SceneManager.goto(Scene_Gameover) if $game_party.all_dead?
      end
    end
    
  • Hari Bé ThưHari Bé Thư Posts: 926Registered
    Dang_Khoa wrote:
    Nhìn tên script là có thể đoán bệnh được rồi :3

    bị gì ?
  • Hari Bé ThưHari Bé Thư Posts: 926Registered
    http://www.rpgmakervxace.net/topic/30246-witchs-house-menu/
    Mình copy cái script trên đây bị lỗi như trên lun
  • slucis7593slucis7593 Posts: 544Registered
    Mình làm thấy nó bình thường ko vấn đề gì.
    Nhưng bạn bảo bạn copy vào phần scene_menu mặc định của rpg maker vx ace phải ko?
    Tuyệt đối ko được nhé, thường sẽ không ai xóa code mặc định đi cả, người ta chỉ sửa thôi, mà ko phải sửa trực tiếp, sửa ở 1 ô mới, hoàn toàn có thể làm được.
    Bạn tạo 1 ô mới đặt tên là Custom Menu chẳng hạn rồi copy paste code vào đó.
    Còn cái ô Scene_Menu mặc định nếu lỡ xóa thì copy từ project khác vào.
  • Hari Bé ThưHari Bé Thư Posts: 926Registered
    slucis7593 wrote:
    Mình làm thấy nó bình thường ko vấn đề gì.
    Nhưng bạn bảo bạn copy vào phần scene_menu mặc định của rpg maker vx ace phải ko?
    Tuyệt đối ko được nhé, thường sẽ không ai xóa code mặc định đi cả, người ta chỉ sửa thôi, mà ko phải sửa trực tiếp, sửa ở 1 ô mới, hoàn toàn có thể làm được.
    Bạn tạo 1 ô mới đặt tên là Custom Menu chẳng hạn rồi copy paste code vào đó.
    Còn cái ô Scene_Menu mặc định nếu lỡ xóa thì copy từ project khác vào.

    Copy rùi vẫn bị nhé , giờ đã xóa project đó và tạo lại = cái ms
Sign In or Register to comment.