Add to party via Variables

Eilwyn

Veteran
Veteran
Joined
Mar 13, 2012
Messages
185
Reaction score
35
First Language
English
Primarily Uses
RMMV
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
 

Eilwyn

Veteran
Veteran
Joined
Mar 13, 2012
Messages
185
Reaction score
35
First Language
English
Primarily Uses
RMMV
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:

 
Last edited by a moderator:

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
969
Reaction score
807
First Language
English
Primarily Uses
N/A
No, if I read Tsukihime right, it should be 


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


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

Eilwyn

Veteran
Veteran
Joined
Mar 13, 2012
Messages
185
Reaction score
35
First Language
English
Primarily Uses
RMMV
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!
 

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

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top