estriole 326 Posted January 3, 2013 (edited) 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 Screenshotsnot neededHow 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 Noteswhen 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 February 21, 2013 by estriole 1 Jester reacted to this Share this post Link to post Share on other sites
Xypher 176 Posted January 3, 2013 equipment doesn't work too well with this Share this post Link to post Share on other sites
estriole 326 Posted January 3, 2013 (edited) 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 . Edited January 3, 2013 by estriole Share this post Link to post Share on other sites
Xypher 176 Posted January 3, 2013 when you go to change the clone's equips the items are equipped to the original actor Share this post Link to post Share on other sites
estriole 326 Posted January 3, 2013 (edited) it because previous error i mentioned above. already fixed . 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 . Edited January 3, 2013 by estriole Share this post Link to post Share on other sites
say.id 0 Posted February 18, 2013 (edited) 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 February 18, 2013 by say.id Share this post Link to post Share on other sites
estriole 326 Posted February 19, 2013 need more info. do you try that in fresh project? since it might be incompatibility. if it's incompatibility can you narrow down which script that caused it. so i can look on the solution to fix it. Share this post Link to post Share on other sites
say.id 0 Posted February 19, 2013 (edited) 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:NilClassif i load the game after i save it, i don't get this errorbut after i exit the game, then i load it, i got this errori think it's because the actor database. EDIT: the error is gone after i put your EST - DATA OBJECT SAVE script Edited February 19, 2013 by say.id Share this post Link to post Share on other sites
estriole 326 Posted February 20, 2013 (edited) @say.id: hmm strange. i will look it out. thx for the bug report ah yes. apparently i remove the data actor saving part and move that part inside object data save script. but i forgot about it . i guess i will add requirement for this script to use the object data save script. Edited February 21, 2013 by estriole Share this post Link to post Share on other sites
cazziuz 9 Posted April 26, 2014 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 : 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