Add to party via Variables

Hi All,

How do I add Actors to the party based on the ACTOR ID's stored in Variables 7, 8 & 9?

I have:
 


$gameParty.addActor($gameVariables[7]);


$gameParty.addActor($gameVariables[8]);


$gameParty.addActor($gameVariables[9]);


but it won't work... granted, barely know anything about the scripting.  

If someone could tell me how to fix it, that would be greatly appreciated!

~Eilwyn
It's


$gameVariables.value(7)
EDIT:  Now I don't get an error but, no one is in my party, but I still am on my map


So, like:

$gameParty.addActor($gameVariables.value[7]); ?

Cause I still get an error.  Type Error: "Cannot Read Property 'isAppeared' of null

Here's a screencap of the event itself:

Event_zps8km43k8q.png
No, if I read Tsukihime right, it should be 


$gameParty.addActor($gameVariables.value(7));


not  $gameParty.addActor($gameVariables.value[7]). ( ), not [ ].
Thanks Mjshi!

So, what happened is that I thought I had copied Tsukihime's answer correctly, but I didn't and when it seemed not to work, I tried changing the brackets, wondering if it was a typo or something (cause it happens to the best of us)


Turns out I wasn't being as attentive as I thought.

Problem solved!

Original thread: https://forums.rpgmakerweb.com/threads/add-to-party-via-variables.63376/