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,921
Reaction score
8,255
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,522
Reaction score
14,846
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,522
Reaction score
14,846
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,522
Reaction score
14,846
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,522
Reaction score
14,846
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

For a long time I always consider XP soundtracks as the best one.
Just listened to some of MZ tracks from the free version.
It's... Quite mindblowing. xD
Only listened to the battles, towns, and fields.
But I'm sure the rest are equally good. :D
What do you guys want to see for the new Jump into Javascript? A continuation of the rpg_objects, or would you prefer a "lesson 0" where I go back to the absolute basics of Javascript and cover the fundamentals of the language and its construction?
Hey RPG members!!

How do you finish projects? Some new game developers start off strong but end up losing momentum. What keeps you motivated while working on new projects?
Feeling wee sleepy.. ZzzZ
So many threads to move to the right place. My post count is awesome, but 95% of it is due to moving things.

Forum statistics

Threads
112,454
Messages
1,068,394
Members
146,110
Latest member
xxsampahxx
Top