Script call questions.

Sorry in advance... I dont like nagging.

Also... I'm trying to use this script, but MV is different than XP

$gameVariables[2] = $gameParty$gameParty = Game_Party.newIs there a way to save party to variables and then Clear the party and start anew?

(I'm trying to make it so one character is separated and goes on a split adventure for awhile away from the party)

On top of this (for a separate issue) I'm trying to check if a certain party member is in the lead position to activate a certain switch.

MV's thing has changed from the engine I'm used to using.

What's the proper usage of ...

$game_party.actors[0] == $game_actors[2]Thank you for your time.
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.
Is it Javascript? To me it's similar to RGSS (at least the script portion).

I guess I'm kinda blah when it comes to discerning that. Sorry for the trouble.
Yes, MV moved to javascript for portability. That means the entire syntax of the scripting language changed, but they kept names identical where possible
$gameVariables.setValue(2, $gameParty);


$gameParty = new Game_Party();


$gameParty.leader.actorId() === 2
Wooh! I could just pinch yer cheeks. Gratzi, Shaz.

Edit: 2nd code doesn't work in conditional branch

Annnnd like an idiot I cannot recall the party members with script callls. I'm trying all the variations of $gameVariables I could think of but they're all causing errors.

Edit 2: EHEHEHEHEHE  I DID IT! That was simple! $gameVariables.value(2); 

*dances for joy* WOOO WOOO WOOO! BY MYSELF KINDA!

Okay, only one problem left.

$gameParty.leader.actorId() === 2
This isn't working... was this shortened?
Okay, only one problem left.

$gameParty.leader.actorId() === 2This isn't working... was this shortened?
almost...

$gameParty.leader().actorId() === 2just missing () after leader 😀 .
Thanks guys!

Original thread: https://forums.rpgmakerweb.com/threads/script-call-questions.49857/