Jump to content

Recommended Posts

EST - CLONE ACTOR

v 1.0


Creator name : Estriole

 

Requires : EST - OBJECT DATA SAVE


Introduction

this was originally add ons to my EST - BRIBE AND BATTLE ROYALE script.

but it could also work as stand alone script so i guess i will post it separately.

 

this script add new actor to party based on existing one in database.

this new added actor will have all the existing actor feature, trait, graphics, etc. basically cloned actor.

so this was best used if pokemons game.

(you can script the capture system yourself or use event)


Version History:

v1.0 - 2012-12-10 - finished the script


Features

- add new actor based on existing one

- easy to add new clone actor

- cloned actor is the exact copies of the existing actor. including the starting equipment.

- can set the level which the actor enter the party

- can set the new name for the actor


Screenshots
not needed

How to Use

example if used for pokemon games.

1) create actor 5 as pikachu. set all the trait.
then use
$game_party.add_custom_actor(5,30,"Pikachu A")
 
then you will get new actor
who is like actor 5 (pikachu)
will enter party at lv 30
then named "Pikachu A"
 
all the feature of the base actor will be gained
even the initial equipment will be the same


Script

http://pastebin.com/w0TfMS8G

 

Demo

not needed


Credit and Thanks
- Estriole

 

Licences

see my sig. valid for all my scripts.


Author's Notes
when i have time i will update the script to able to track the original of that cloned actor (for eventing purpose).

example you need to capture 2 pikachu and put it in battle_member.

Edited by estriole

Share this post


Link to post
Share on other sites

really? it supposed to give initial equipment set in database for every cloned actor.

i try that again and it work. i give 3 pieces of equipment to my original actor and it's clone all have the 3 pieces equipment.

 

btw i update the script once already (wrong id when creating new actor. i use original id instead of cloned id). about 5 minutes after posting the topic. maybe that's the cause. try redownloading the script :D.

Edited by estriole

Share this post


Link to post
Share on other sites

it because previous error i mentioned above. already fixed :D.

 

but there's some more problems if using equip menu. and maybe all menu.

it's menu actor bug related. when pressing :L at custom actor pages... it will go to actor 1 pages. so i guess i will have to fix that too.

when pressing :L. it will go to actor 1 pages. so i guess i will have to fix that too.

 

 

*fixed all the bugs

i change the method a little bit. i set the new clone actor to appropriate $data_actors[id] then  add the new actor id to @actor.

and before i add the custom actor in new array so i can create command to delete all custom actors (example). now i change it to recognized inside RPG::Actor

 

thx xypher for pointing some bug. if there's any bug left just tell me i'll try to fix that :D.

Edited by estriole

Share this post


Link to post
Share on other sites

this script works great, but i got an error.

first i start the game with this script, then i clone some actors, i save the game.

but when i try to load my saved game, those clones are gone.

its like they are never exist in database.

 

and of course that saved game cannot be loaded

Edited by say.id

Share this post


Link to post
Share on other sites

Yeah, it's not the fresh project, but then i try to fresh project, that error is still occurred.

This is the error message:
Script'Game_Unit' line 29: NoMethodError occurred.
undefined method'alive?' for nil:NilClass

if i load the game after i save it, i don't get this error
but after i exit the game, then i load it, i got this error
i think it's because the actor database.

 

EDIT: the error is gone after i put your EST - DATA OBJECT SAVE script :P

Edited by say.id

Share this post


Link to post
Share on other sites

@say.id: hmm strange. i will look it out. thx for the bug report :D

 

ah yes. apparently i remove the data actor saving part and move that part inside object data save script. but i forgot about it :D. i guess i will add requirement for this script to use the object data save script.

Edited by estriole

Share this post


Link to post
Share on other sites

Greetings , 

 

I have been having some  issues with my project , while using this script , and after days of trying to figure out why i am gettingthis error , i have finanaly figured out what is happening( i think anyways ) , and i hope i am able to find a fix for it ,lol , so here is the error :

 

Capture.png
 
 
 
the scripts that i am using in conjunction with this one is : 
Ace Menu 
Galv's Group Manager 
$D13x - Item Pack
 
 
there are others , but i added all of these at roughly the same time as i added the clone script , and it worked great before then.
SO what i am doing in the item pack to randomize  the "winning" of items that then add the Cloned actor to the party ,that part works great but when i go into the group manager it lets me add cloned actors to a group just fine , and all but when i go to use that group ,if the non-clone actor isn't in the group it throws that error.
 
 
 
I have only one actor that is in the database that is in the party , and i  think that when i remove him and have only cloned actors in the party it is throwing this error, i have removed the script and added actors manually with script calls , and the whole system works right, so if it would be possible to figure out how to make this work when the only actors in the party are  "cloned" actors it would be greatly appreciated ,since this is a key part of my project ,lol 
 
thank you in advance for any and all assistance in this matter ,
 
-Cazziuz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×