Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Actor AutoSelfVariables [Add-on]
#1
Actor AutoSelfVariables
Version: 1

Introduction
This is an add-on to my Actor & Party Self Variables script [VX], [XP]. This is pretty similar to my autoswitcher script. Basically, you get to set initial values of self-variables for certain actors, which would be set up when your project starts.

Features
  • Set initial self variables values of certain actors.

Screenshots
No screenshots.

Demo
No demo.

Script
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

Instructions
Instructions are in the script.

FAQ
Awaiting question.

Compatibility
Aliases initialize of Game_Party::SelfVariables class.

Credits and Thanks
No one to thank. :p

Author's Notes
*blames Boredom again*

Terms and Conditions
Credit me. :p
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Actor Battle Items DerVVulfman 4 5,377 11-08-2020, 12:36 PM
Last Post: Melana
   Xenres Single Actor Escape Kirito 0 5,696 10-24-2010, 05:28 AM
Last Post: Kirito
  Actor Cloning System by Charlie Fleed Charlie Fleed 5 10,360 02-09-2010, 04:38 PM
Last Post: desbrina
   Battlestatus Actor Highlighter DerVVulfman 4 9,707 12-01-2009, 09:41 PM
Last Post: explocion200
  Actor AutoSelfSwitches [Add-on] PK8 0 397 11-09-2009, 05:59 AM
Last Post: PK8
  AutoSelfVariables [Add-on] PK8 0 344 11-08-2009, 06:25 PM
Last Post: PK8
   Actor Battler Graphics DerVVulfman 2 9,235 10-03-2009, 06:15 PM
Last Post: Yin
  Actor & Party's Self Variables XP PK8 0 467 09-17-2009, 01:47 AM
Last Post: PK8
   [Unsupported] Actor & Party's Self Switches XP PK8 3 8,182 09-17-2009, 01:46 AM
Last Post: Yin
  Actor & Party's Self Variables VX PK8 0 373 09-17-2009, 01:43 AM
Last Post: PK8



Users browsing this thread: