Code:
=begin
????????????????????????????????????????????????????????????????????????????????
? Actor AutoSelfVariables ?
? by PK8 ?
? November 8th, 2009 ?
? http://rmvxp.com ?
????????????????????????????????????????????????????????????????????????????????
? ? Table of Contents ?
? ?? Author's Notes - Line 14,15 ?
? ?? Introduction & Description - Line 17?18 ?
? ?? Features - Line 20?21 ?
? ?? This aliases the following... - Line 23,24 ?
????????????????????????????????????????????????????????????????????????????????
? ? Author's Notes ?
? Boredom wins again! ?
????????????????????????????????????????????????????????????????????????????????
? ? Introduction & Description ?
? This script sets initial values of self-variables of actors. ?
????????????????????????????????????????????????????????????????????????????????
? ? Features ?
? ? Set initial values of self-variables of actors at the start of your project?
????????????????????????????????????????????????????????????????????????????????
? ? This aliases the following... ?
? initialize - Game_Party::SelfVariables ?
????????????????????????????????????????????????????????????????????????????????
=end
#===============================================================================??
# ** Actor AutoSelfVariables Customization!
#===============================================================================??
class PK8
AASV_Variables = {} # Do not touch.
# AASV_Parameters[[actorid, id]] = value
AASV_Variables[[1, 'alignment']] = 50 # Actor 1's Alignment Variable
AASV_Variables[[2, 'alignment']] = 60 # Actor 2's Alignment Variable
AASV_Variables[[3, 'alignment']] = 75 # Actor 3's Alignment Variable
AASV_Variables[[4, 'alignment']] = 40 # Actor 4's Alignment Variable
end
#==============================================================================
# ** Game_Party::SelfVariables
#------------------------------------------------------------------------------
# This handles self variables. It's a wrapper for the built-in class "Array."
# The instance of this class is referenced by $game_party.self_variables.
#==============================================================================
class Game_Party::SelfVariables
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias_method :pk8_actorautoselfvariables_initialize, :initialize
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
pk8_actorautoselfvariables_initialize
PK8::AASV_Variables.each_pair { | k, v | @data[k] = v }
end
end