Scrumplet

Villager
Member
Joined
Feb 24, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
N/A
So, I'm having a ton of trouble trying to create a Swapping system for my game. For example. One section has an npc (event) that states, "you have too many people in your party, would will you remove?" At this point, each choice has a defined variable saying that variable is equal to the actor ID of whoever is in that party Member slot. This is the point where I'm totally stumped. I don't know much at all about scripting, but I simply want the event/actor to replace whoever is in that chosen party Member space, regardless of what actor it might be.


I can add pictures of my process upon request.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,637
Reaction score
15,278
First Language
English
Primarily Uses
RMMV
If you're using variable 2 and it has the actor id of the person you wish to remove, do this in a script call:

Code:
$gameParty.removeActor($gameVariables.value(2))
 

Scrumplet

Villager
Member
Joined
Feb 24, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
N/A
If you're using variable 2 and it has the actor id of the person you wish to remove, do this in a script call:

Code:
$gameParty.removeActor($gameVariables.value(2))

I'll give it a shot now, thank you for the rapid response! For me, it'll be variable 1, which is set to the game data, "Actor ID of the party member #2"


By script call, you mean using the Script option during an event, yes?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,637
Reaction score
15,278
First Language
English
Primarily Uses
RMMV
yes.


If you're using variable 1, just put 1 instead of 2 in the script call.
 
Last edited by a moderator:

Scrumplet

Villager
Member
Joined
Feb 24, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
N/A
yes.


If you're using variable 1, just put 1 instead of 2 in the script call.

IT WORKED TO PERFECTION! I have no idea who you are, but I could kiss you.
 

TNID

Villager
Member
Joined
Jun 2, 2016
Messages
28
Reaction score
0
First Language
English
Primarily Uses
is this going to be a player swap during battle script?
 
Last edited by a moderator:

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,637
Reaction score
15,278
First Language
English
Primarily Uses
RMMV
Battle scripts change things around.  Please don't hijack someone else's topic with your own questions.
 

Latest Threads

Latest Posts

Latest Profile Posts

Can we make it so whenever a banned user tries to use their account whilst banned, the forum should redirect to this
Anyone doing anything for NaNoWriMo this year?
Listening to, "Draum" by Eldrim. If you haven't heard it before, do so. Absolutely lovely, and utterly haunting.
Using Live2D is actually pretty fun once you get familiar with where everything is. :rhappy: And no, I'm not learning because of the Vtuber thing going around, but yes looking at those helps a lot to know what can be done :LZSlol:

Forum statistics

Threads
115,830
Messages
1,093,291
Members
151,021
Latest member
estudiosdefrikis
Top