CODE
==============================================================================
# ** Game_Actors
#------------------------------------------------------------------------------
# This class handles the actor array. The instance of this class is
# referenced by $game_actors.
#==============================================================================
class Game_Actors
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@data = []
end
#--------------------------------------------------------------------------
# * Get Actor
# actor_id : actor ID
#--------------------------------------------------------------------------
def [](actor_id)
if @data[actor_id] == nil and $data_actors[actor_id] != nil
@data[actor_id] = Game_Actor.new(actor_id)
end
return @data[actor_id]
end
end
# ** Game_Actors
#------------------------------------------------------------------------------
# This class handles the actor array. The instance of this class is
# referenced by $game_actors.
#==============================================================================
class Game_Actors
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
@data = []
end
#--------------------------------------------------------------------------
# * Get Actor
# actor_id : actor ID
#--------------------------------------------------------------------------
def [](actor_id)
if @data[actor_id] == nil and $data_actors[actor_id] != nil
@data[actor_id] = Game_Actor.new(actor_id)
end
return @data[actor_id]
end
end
I've created a secondary module to define actors and would like to use them as the basis for the actors. This would overwrite the RPG::Actor module which is called by the $data_actors. So, how would I set this little portion of script up to call the new module instead?
