Code:
=begin
????????????????????????????????????????????????????????????????????????????????
? AutoSelfParameters ?
? by PK8 ?
? November 2nd, 2009 ?
? http://rmvxp.com ?
????????????????????????????????????????????????????????????????????????????????
? ? Table of Contents ?
? ?? Author's Notes - Line 14?16 ?
? ?? Introduction & Description - Line 18,19 ?
? ?? Features - Line 21?23 ?
? ?? This aliases the following... - Line 25,26 ?
????????????????????????????????????????????????????????????????????????????????
? ? Author's Notes ?
? I wanted to give the users of my Self Parameters script an easy way to set ?
? params for multiple events at the start of the game so here it is. ?
????????????????????????????????????????????????????????????????????????????????
? ? Introduction & Description ?
? This script sets initial values of information about certain events. ?
????????????????????????????????????????????????????????????????????????????????
? ? Features ?
? ? Set initial values of information about certain events at the start of the ?
? game. ?
????????????????????????????????????????????????????????????????????????????????
? ? This aliases the following... ?
? initialize - Game_SelfPaameters ?
????????????????????????????????????????????????????????????????????????????????
=end
#===============================================================================??
# ** AutoSelfParameters Customization!
#===============================================================================??
class PK8
ASP_Parameters = {} # Do not touch.
# ASP_Parameters[[map_id, event_id, id]] = value
ASP_Parameters[[1, 1, 'gender']] = 'male'
ASP_Parameters[[1, 1, 'likes']] = 'cooking'
ASP_Parameters[[1, 2, 'gender']] = 'male'
ASP_Parameters[[1, 2, 'likes']] = 'farming'
ASP_Parameters[[1, 3, 'gender']] = 'male'
ASP_Parameters[[1, 3, 'likes']] = 'gardening'
ASP_Parameters[[1, 4, 'gender']] = 'female'
ASP_Parameters[[1, 4, 'likes']] = 'hunting'
end
#==============================================================================
# ** Game_SelfParameters
#------------------------------------------------------------------------------
# This class handles self switches. It's a wrapper for the built-in class
# "Hash." The instance of this class is referenced by $game_self_parameters.
#==============================================================================
class Game_SelfParameters
#--------------------------------------------------------------------------
# * Alias Listings
#--------------------------------------------------------------------------
alias_method :pk8_autoselfparameters_initialize, :initialize
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
pk8_autoselfparameters_initialize
PK8::ASP_Parameters.each_pair { | k, v | @data[k] = v }
end
end