Cancel Attack & Defense in Status Menu

● ARCHIVED · READ-ONLY
Started by Morpheus 3 posts View original ↗
  1. So looking at the status window, I want to disable "Attack" & "Defense" from being selectable.
    This snippet from "Window_Status" controls that, I assume. Changing the "6.times" to "4.times" disables the bottom two, Agility & Luck is there a way to disable the top two, Attack & Defense using a command like this? Thank you.

    #--------------------------------------------------------------------------
    # * Draw Parameters
    #--------------------------------------------------------------------------
    def draw_parameters(x, y)
    6.times {|i| draw_actor_param(@actor, x, y + line_height * i, i + 2) }
    end
  2. You're halfway there.

    It's written that way for efficiency's sake. That +2 means that it starts at parameter ID 2 (Attack) and continues to write out the parameters until ID 7 which is Luck. When you changed the 6.times to 4.times, you stopped the count early and the last two values: AGI and LUK weren't drawn. Since ID 2 and 3 are Attack and Defense respectively, you should have also increased the count to +4, skipping over those two parameters.

    Like this:
    Code:
    #==============================================================================
    # ** Window_Status
    #------------------------------------------------------------------------------
    #  This window displays full status specs on the status screen.
    #==============================================================================
    
    class Window_Status < Window_Selectable
      #--------------------------------------------------------------------------
      # * Draw Parameters
      #--------------------------------------------------------------------------
      def draw_parameters(x, y)
        4.times {|i| draw_actor_param(@actor, x, y + line_height * i, i + 4) }
      end
    end

    This one's easier to understand, just remove the lines you don't need.
    Code:
    #==============================================================================
    # ** Window_Status
    #------------------------------------------------------------------------------
    #  This window displays full status specs on the status screen.
    #==============================================================================
    
    class Window_Status < Window_Selectable
      #--------------------------------------------------------------------------
      # * Draw Parameters
      #--------------------------------------------------------------------------
      def draw_parameters(x, y)
        draw_actor_param(@actor, x, y + line_height * 0, 0) # MHP
        draw_actor_param(@actor, x, y + line_height * 1, 1) # MMP
        draw_actor_param(@actor, x, y + line_height * 2, 2) # ATK
        draw_actor_param(@actor, x, y + line_height * 3, 3) # DEF
        draw_actor_param(@actor, x, y + line_height * 4, 4) # MAT
        draw_actor_param(@actor, x, y + line_height * 5, 5) # MDF
        draw_actor_param(@actor, x, y + line_height * 6, 6) # AGI
        draw_actor_param(@actor, x, y + line_height * 7, 7) # LUK
      end
    end

    Add either of these to your script list, below materials and above main.
    The game's code should never be altered directly.
  3. jesus wtf I thought you where me when I saw your pic
    There can only be one negga on this side of the hood