Actor AutoSelfSwitches [Add-on]
#1
Actor AutoSelfVariables
Version: 1

Introduction
This is an add-on to my Actor & Party Self Switches script [VX], [XP]. This is pretty similar to my autoswitcher script. Basically, you get to set which self-switches of actors turns on when your project starts.

Features
  • Set which self-switch of certain actors turns on by default.

Screenshots
No screenshots.

Demo
No demo.

Script
Code:
=begin
????????????????????????????????????????????????????????????????????????????????
? Actor AutoSelfSwitches                                                       ?
? 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 turns on the specified self-switches of actors by default.       ?
????????????????????????????????????????????????????????????????????????????????
? ? Features                                                                   ?
? ? Set which self-switches of actors would turn on at the start of your       ?
?   project.                                                                   ?
????????????????????????????????????????????????????????????????????????????????
? ? This aliases the following...                                              ?
? initialize          - Game_Party::SelfSwitches                               ?
????????????????????????????????????????????????????????????????????????????????
=end

#===============================================================================??
# ** Actor AutoSelfSwitches Customization!
#===============================================================================??
class PK8
  AASS_Switches = [
    # [actorid, id],
    [1, 'SwitchA'],
    [2, 'SwitchA'],
    [3, 'SwitchA'],
    [4, 'SwitchA']
  ]
end

#==============================================================================
# ** Game_Party::Switches
#------------------------------------------------------------------------------
#  This handles switches. It's a wrapper for the built-in class "Array."
# The instance of this class is referenced by $game_party.self_switches.
#==============================================================================

class Game_Party::SelfSwitches
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias_method :pk8_actorautoselfvariables_initialize, :initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    pk8_actorautoselfvariables_initialize
    PK8::AASS_Switches.each { | k | @data[k] = true }
  end
end

Instructions
Instructions are in the script.

FAQ
Awaiting question.

Compatibility
Aliases initialize of Game_Party::SelfSwitches class.

Credits and Thanks
No one to thank. :p

Author's Notes
*blames Boredom again*

Terms and Conditions
Credit me. :p
Reply }


Messages In This Thread
Actor AutoSelfSwitches [Add-on] - by PK8 - 11-09-2009, 05:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   DerVV's Actor Stat Points Distributor DerVVulfman 0 564 07-16-2024, 04:46 AM
Last Post: DerVVulfman
   Actor Battle Items DerVVulfman 4 6,094 11-08-2020, 12:36 PM
Last Post: Mel
   Xenres Single Actor Escape Kirito 0 6,123 10-24-2010, 05:28 AM
Last Post: Kirito
   Actor Cloning System by Charlie Fleed Charlie Fleed 5 11,143 02-09-2010, 04:38 PM
Last Post: desbrina
   Battlestatus Actor Highlighter DerVVulfman 4 10,363 12-01-2009, 09:41 PM
Last Post: explocion200
   Actor AutoSelfVariables [Add-on] PK8 0 807 11-09-2009, 05:49 AM
Last Post: PK8
   Actor & Party's Self Variables XP PK8 0 915 09-17-2009, 01:47 AM
Last Post: PK8
   [Unsupported] Actor & Party's Self Switches XP PK8 3 8,817 09-17-2009, 01:46 AM
Last Post: Yin
   Actor/Enemy HP Bars Raziel 0 5,330 03-07-2008, 05:04 AM
Last Post: Raziel
   Train Actor Fukuyama 0 5,616 03-04-2008, 04:21 AM
Last Post: Fukuyama



Users browsing this thread: 2 Guest(s)