Reset a specific actor's data(level,skills,equips,exp,etc.) by script call

Tobiasu

Wizman
Member
Joined
Aug 10, 2014
Messages
13
Reaction score
5
First Language
English
Primarily Uses
hello guys!
I know there's a script call:
$game_actors = Game_Actors.new
that can reset their settings in actor's database
but this script call resets all actor's data
I just wondering if it's possible to reset a specific actors only
thanks!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,513
Reaction score
8,147
First Language
German
Primarily Uses
RMMV
Usually that is done with the change member event command.

Initialize means resetting all data on that actor in adding it (checkbox)
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,153
Reaction score
14,652
First Language
English
Primarily Uses
RMMV
$game_actors = Game_Actors.new is not "resetting" actor data. It is removing all the actors from your party. When you add them back again, they get added with the database settings.

Use Andar's method unless you NEED to do it via a script call.
 

Tobiasu

Wizman
Member
Joined
Aug 10, 2014
Messages
13
Reaction score
5
First Language
English
Primarily Uses
yeah! that's what I'm talking about!
I want to remove a member in my party
then when they join again, they will only have
their settings in database.

instead of doing this:
Untitled.jpg
...which their current equips and learned skills are carried over when they joined my party again.

is there a script call that can revert their setting in the database for a specific actor only?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,153
Reaction score
14,652
First Language
English
Primarily Uses
RMMV
Why are you looking for a script call? Andar has already told you how to do it, and I have confirmed that his method is correct.

The Change Party Member command will let you add the actor back to your party, and if you check the Initialize box, they will have all the stats from the database, not from when they were last in your party.

I see no reason at all for you to be looking for a script call for this.


Also - holy cow, that's a lot of common events to add/remove party members. Why do you have so many? What are you trying to achieve with so many common events, and they're all fairly complicated too. I think you are going about things the hard way.
 

Tobiasu

Wizman
Member
Joined
Aug 10, 2014
Messages
13
Reaction score
5
First Language
English
Primarily Uses
silly me!
I didn't take attention on that check box and I didn't know that
it is the function of it!

I'm trying to make Etrian Odyssey remake
which you can create your own guild
they have 16 member slots,
7 classes then 9 later, and 2 male and female portraits.
I duplicate 16 actors for each so there's a total
of 448 actors in all.

well, thanks for your time!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,153
Reaction score
14,652
First Language
English
Primarily Uses
RMMV
If you can have 16 members, then you only need 16 actors. You can use the Change Actor Class, Change Actor Images (Sprites/Graphics?), Change Actor Name to apply any of the 7 + 9 classes and genders on those 16 actors.
 

Tobiasu

Wizman
Member
Joined
Aug 10, 2014
Messages
13
Reaction score
5
First Language
English
Primarily Uses
yeah! I'm thinking that method as well but
I installed a script which show the actors portrait in status
that placed in pictures folder named Actor1,Actor2...and so on
which corresponds their actor ID. It's a Japanese script.
but after a little review on that script yesterday,
I realized that there's a script call that can change
the actors picture in status menu
now, I can do it with 16 actors only.
thanks!
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,153
Reaction score
14,652
First Language
English
Primarily Uses
RMMV
You've got a lot of work to change it all around, but I think as you get further into the game, you'll find it easier than if you kept on with the first method.
 

Latest Threads

Latest Posts

Latest Profile Posts

If there was an award for best game dev procrastination, I'd say 'meh, I'll pick it up tomorrow' >_>
Honestly though, I've been staring at the same half-made map for a while now haha! Ahhh, I'm so tired of mapping!
Time to add the support for import/export default RMXP maps. Maybe there will be customized tileset support later. In theory, I can reimplement the entire RMXP inside this RMXP-made game to make more RMXP games. :kaojoy:RMXPFORMATSUPPORT.jpg
Gonna make a story driven game someday in RPG Maker about this diseased character in my head. Will keep you posted, although I was warned by the authorities that posting too much would be considered 'spamming' so I WON'T SPAM. It'll be before I go in anyways. It's gonna be messed up but it won't be explicitly pornographic so don't worry, I'll give all the content warnings. :barf::barf::barf:
If you're a RM plugin developer, and you're reading this...

Thank you. You're awesome. Even if I haven't used your plugin, your work is appreciated.

Forum statistics

Threads
111,265
Messages
1,059,724
Members
144,556
Latest member
Vanderblood
Top