Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Mason Wheeler on April 01, 2016, 05:11:03 am

Title: Any way to programatically create new Actors?
Post by: Mason Wheeler on April 01, 2016, 05:11:03 am
Does anyone have a script that will let you create a new Actor from a Class, who's not predefined in the Database?  Anyone who's recruited new random party members in a Disgaea game will understand what I'm looking for and why it's useful.
Title: Re: Any way to programatically create new Actors?
Post by: Blizzard on April 01, 2016, 06:36:23 am
It's possible by just creating a instance and adding it to $data_actors, but it won't get saved with save games without some extra scripting.
Title: Re: Any way to programatically create new Actors?
Post by: Mason Wheeler on April 01, 2016, 07:49:09 am
Yeah, I suppose $data_actors wouldn't get saved automatically, because it's part of the database.

Does such a script exist, that you know of?
Title: Re: Any way to programatically create new Actors?
Post by: Blizzard on April 01, 2016, 09:06:54 am
Maybe if somebody made a custom pokemon script that wasn't a complete rewrite of the default scripts.
Title: Re: Any way to programatically create new Actors?
Post by: Zexion on April 01, 2016, 01:06:03 pm
I can do dis, but I am enjoying the first day in 2 weeks without homework or test lol. I will attempt this after some league. Just give me some specifics on how you wanna do it. Do you want it to happen automatically given some conditions, or within events... stuff like that
Title: Re: Any way to programatically create new Actors?
Post by: Mason Wheeler on April 01, 2016, 02:04:50 pm
Thanks, Zexion!

Having it happen within events is infeasible without being able to change the event editor.  Basically what I need is a script command, a function that inputs an integer (ID of a Class in the database) and returns a newly-created party member, and oh-by-the-way ensures that everything will save and load correctly.
Title: Re: Any way to programatically create new Actors?
Post by: Mason Wheeler on April 16, 2016, 06:04:24 am
Any progress on this?
Title: Re: Any way to programatically create new Actors?
Post by: KK20 on April 16, 2016, 01:27:54 pm
When I told him about this last week, he said he forgot all about this. Typical Zex xP

There's some questions regarding the request though. The attributes to an actor isn't just only the class ID assigned to it. What about the level? Strength? Exp Curve? Equipment? Name? And so forth...

You have to explain more as to how this system works.
Title: Re: Any way to programatically create new Actors?
Post by: Blizzard on April 16, 2016, 02:16:12 pm
This should help solve that issue: http://forum.chaos-project.com/index.php/topic,5563.0.html