The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => VX Scripts Database => Topic started by: pacdiggity on March 27, 2011, 03:20:43 AM

Title: Exempt Battle Stats
Post by: pacdiggity on March 27, 2011, 03:20:43 AM
Exempt Battle Stats
Version: 1.0
Author: Welfare-Daddy Pacman
Date: March 27, 2011

Version History


Code: [Select]
#==============================================================================
#  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

Thanks

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: