[RMXP] Actor Cloning
#1
Alright, I am going to try to make this as easy to understand and concise as possible.

I have been looking for a way to, for example, take Actor001, its level etc, create a new Database entry somewhere other than $game_actors, and save that Actor001 with a unique ID.

I want to be able to use the same 6 actors for my party members, but be able to swap them out, and still save all of their info. I could in theory use actors 7 - 450 for the BASE characters (no level or statistic changes), and 451-999 to store owned party members, but I still don't understand how exactly I would move the actors around the database.

Basically, I create a new Actor001 with Actor054 as a base, give it its own stats etc(that stats part I can do heh) and when I pull Actor001 from my party it will be stored in the first available slot from 451+ UNLESS that actors ID already exists in 451+, in that case it overwrites the currently stored actor.

SO again, to make it clear...how can I overwrite actors with other actors, essentially cloning them?
Reply }
#2
I just saw this thread.

Here's something you may be interested in.
Actor Cloning System by Charlie Fleed
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }
#3
Yea I found that too, unfortunately there is no Actor Cloning System on Planted Fleed, I don't know if it has just been lost or what?

Would anyone be able to tell me how to create a new section like Actors in the save file?

This seems to be how the entire actor Class is added to the Actors array
Code:
#==============================================================================
# ** Game_Actors
#------------------------------------------------------------------------------
#  This class handles the actor array. Refer to "$game_actors" for each
#  instance of this class.
#==============================================================================

class Game_Actors
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
@data = []
  end
  #--------------------------------------------------------------------------
  # * Get Actor
  # actor_id : actor ID
  #--------------------------------------------------------------------------
  def [](actor_id)
if actor_id > 999 or $data_actors[actor_id] == nil
  return nil
end
if @data[actor_id] == nil
  @data[actor_id] = Game_Actor.new(actor_id)
end
return @data[actor_id]
  end
end

Code:
def initialize(actor_id)
super()
setup(actor_id)
  end
  #--------------------------------------------------------------------------
  # * Setup
  # actor_id : actor ID
  #--------------------------------------------------------------------------
  def setup(actor_id)
   ...

from what I can tell from Actors, I would have to at least have these two sections correct?

Anyways I am pretty much looking for the easy way to do this, but it seems like there may not be an easy way. ya can check out my post about this subject, and what I am really trying to do here
Code:
http://www.hbgames.org/forums/viewtopic.php?p=826676
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Personal graph by actor zlsl 4 4,965 10-23-2021, 06:43 AM
Last Post: zlsl
   [RMXP] Showing skill gained by leveling up on battle result FrQise 12 12,636 05-07-2021, 02:05 PM
Last Post: FrQise
   Actor names in Quest Script jreagan406 5 8,634 03-07-2017, 08:06 AM
Last Post: JayRay
   RMXP SKill animations too bright (overlaying the battle screen) Starmage 4 10,151 06-13-2016, 03:41 AM
Last Post: Starmage
   Actor Graphic/Reflection Refuses to Update/Refresh penguwin 6 9,794 11-06-2014, 09:51 PM
Last Post: penguwin
   [RMXP]Game Over and Atoa Battle Status mishaps firestalker 8 10,928 08-07-2014, 01:59 AM
Last Post: firestalker
  Attack from an enemy to a actor as condinitional branch Djigit 7 10,026 07-05-2014, 06:58 PM
Last Post: Djigit
Star Multilanguage script petition for RMXP Iqus 11 19,214 01-07-2013, 10:50 AM
Last Post: Narzew
   Modifying Actor ID to Class ID for Advanced Individual Battle Commands Script NewHope 1 4,627 07-11-2012, 11:37 PM
Last Post: NewHope
   Repositioning the actor command window. MegaPowerNinja 4 9,379 04-12-2011, 05:21 AM
Last Post: MegaPowerNinja



Users browsing this thread: 3 Guest(s)