Main Menu
  • Welcome to The RPG Maker Resource Kit.

Exempt Battle Stats

Started by pacdiggity, March 27, 2011, 03:20:43 AM

0 Members and 1 Guest are viewing this topic.

pacdiggity

    Exempt Battle Stats
    Version: 1.0
    Author: Welfare-Daddy Pacman
    Date: March 27, 2011

    Version History




    • <Intergration> 27.03.2011 - Script integrated with  Exempt Actor Stats into Exempt Actor Parameters. This script is now obsolete.
      • <Version 1.0> 27.03.2011 - Original release.

      Planned Future Versions

      • Integrating a slice of pie into the piece :V

      Description

      This script allows you to choose which actors, if any, should have ATK, DEF, SPI and AGI displayed. This is most likely to be used in non-fighting games.
      Features


      • Allows creator to choose which actors have battle stats displayed.
      • Incredibly easy to implement.

      Screenshots

      Not applicable, really.

      Instructions


    #==============================================================================
    #  Exempt Battle Stats
    #  Version: 1.0
    #  Author: Welfare-Daddy Pacman (rmrk.net)
    #  Date: March 27, 2011
    #
    #------------------------------------------------------------------------------#
    #  Description:
    #
    #  This is a script to be used with my Actor Stats script. It allows you to
    #  choose if actors have battle stats (ATK, DEF, SPI and AGI) or not.
    #
    #------------------------------------------------------------------------------#
    #  Instructions:
    #   
    #  - First, get my Actor Stats script from here:
    #  - Place this script in the materials section, above Main.
    #  - Enter the Actor IDs whose Battle Stats you don't want displayed in the
    #  EXEMPT_BSTATS array.
    #=============================================
    class Window_Base
    #=============================================
      # EDITABLE SECTION
     
    EXEMPT_BSTATS = [1, 2] # Place actor IDs who you wish to not have battle stats
    # displayed here, e.g. [1, 2, 3, 4]

      # END EDITABLE SECTION
    #=============================================

    alias exempt_draw_actor_parameter draw_actor_parameter
    def draw_actor_parameter(actor, x, y, type)
      if EXEMPT_BSTATS.include?(actor.id)
        return
      else
        exempt_draw_actor_parameter(actor, x, y, type)
      end
    end
    end
    #=============================================
      #Process complete
    #=============================================


    Credit



    • Welfare-Daddy Pacman
    Thanks

    • LoganForrests for helping me with scripting.
    • RMRK for being awesome.

    Known Compatibility Issues

    Nothing yet.

    Author's Notes

    Use as you wish, but you must credit me please. If you are going to use it in a commercial game (RM commerical? That'll be the day), let me know.
    This script will soon be combined with the Actor Stats script for user convinience. In fact, I'm working on it right now!

    :ccbysa: :rmvx:
    it's like a metaphor or something i don't know