Remove Whole Party Regardless Of Member

TheChatotMaestro

doesn't know what she's doing
Veteran
Joined
Oct 27, 2017
Messages
43
Reaction score
1
First Language
English
Primarily Uses
RMMV
Taking them away with the 'change party member' command is incredibly inefficient, because I want to remove all of them regardless of which members you have, and there are dozens of characters you can have in your party at any given time. Is there any way to just totally wipe your party before replacing the members with new ones? (I've already got their IDs saved into variables to add them back in later.)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I'd just create a common event that does a Change Party Member on every actor - you don't need to check if they're in the party - if they're not, they won't be removed. Then call the common event any time you want to clear out the party.

Or a script call:
Code:
$game_party.members.each {|actor| $game_party.remove_actor(actor.id)}
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,254
Reaction score
1,254
First Language
Spanish
Primarily Uses
RMVXA
Code:
$game_party.all_members.each{|actor| $game_party.remove_actor(actor.id)}
all_members implies @actors, implies attr_reader :actors
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
lol - I fixed that just as you were posting. Too early in the morning :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top