None Optimize Equip Scene

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by MeowFace, Jan 10, 2016.

  1. MeowFace

    MeowFace Meow Veteran

    Messages:
    1,034
    Likes Received:
    176
    Location:
    La La Land
    First Language:
    Meowish
    Made for a request here.

    This script simply removes the optimize/clear from the equip scene.

    Features:

    Non-optimize equip scene

    How to use:

    [1] Paste this script below Material and above other custom scripts.

    Note: Page Up/Down in the slot window will no longer scroll up/down in page but change to prev/next actor.

    Compatibility:

    This script uses overwrite method. It may conflicts with other custom scripts that try to modify the same method this script is using. If you are using another custom script that modifies the equip scene(eg, my slot customize script), try place this script above it to avoid conflicts.

    Terms of Use:

    Free for both commercial and non-commercial

    Script:

    Code:
    #==============================================================================# ■ Meow Face Non-optimize Equip Scene#------------------------------------------------------------------------------# Equip Scene without Optimize/Clear#==============================================================================# How to Use:# [1] Put this script below Material and above other custom scripts#==============================================================================class Window_EquipSlot < Window_Selectable  def visible_line_number #overwrite    return 7  endendclass Scene_Equip < Scene_MenuBase  def start #overwrite    super    create_help_window    create_status_window    create_slot_window    create_item_window  end  def create_slot_window #overwrite    wx = @status_window.width    wy = @help_window.height    ww = Graphics.width - @status_window.width    @slot_window = Window_EquipSlot.new(wx, wy, ww)    @slot_window.viewport = @viewport    @slot_window.help_window = @help_window    @slot_window.status_window = @status_window    @slot_window.actor = @actor    @slot_window.set_handler(:ok,       method(:on_slot_ok))    @slot_window.set_handler(:cancel,   method(:return_scene))    @slot_window.set_handler(:pagedown, method(:next_actor))    @slot_window.set_handler(:pageup,   method(:prev_actor))    @slot_window.activate    @slot_window.select(0)  end  def on_actor_change #overwrite    @status_window.actor = @actor    @slot_window.actor = @actor    @item_window.actor = @actor    @slot_window.activate    @slot_window.select(0)  endend
     
    #1
  2. tale

    tale Volunteer Veteran

    Messages:
    263
    Likes Received:
    330
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    Fixed script format, credit Meow Face.
    Code:
    #==============================================================================
    # ■ Meow Face Non-optimize Equip Scene
    #------------------------------------------------------------------------------
    # Equip Scene without Optimize/Clear
    #==============================================================================
    # How to Use:
    # [1] Put this script below Material and above other custom scripts
    #==============================================================================
    class Window_EquipSlot < Window_Selectable 
      def visible_line_number #overwrite   
        return 7 
      end
    end
    class Scene_Equip < Scene_MenuBase 
        def start #overwrite   
          super   
          create_help_window   
          create_status_window   
          create_slot_window   
          create_item_window 
        end 
        def create_slot_window #overwrite   
          wx = @status_window.width   
          wy = @help_window.height   
          ww = Graphics.width - @status_window.width   
          @slot_window = Window_EquipSlot.new(wx, wy, ww)   
          @slot_window.viewport = @viewport   
          @slot_window.help_window = @help_window   
          @slot_window.status_window = @status_window   
          @slot_window.actor = @actor   
          @slot_window.set_handler(:ok, method(:on_slot_ok))   
          @slot_window.set_handler(:cancel, method(:return_scene))   
          @slot_window.set_handler(:pagedown, method(:next_actor))   
          @slot_window.set_handler(:pageup,   method(:prev_actor))   
          @slot_window.activate   
          @slot_window.select(0) 
        end 
        def on_actor_change #overwrite   
          @status_window.actor = @actor   
          @slot_window.actor = @actor   
          @item_window.actor = @actor   
          @slot_window.activate   
          @slot_window.select(0) 
        end
        end
     
    #2
    TheTitan99 likes this.

Share This Page