Incompatible plugins or bad script?

I have two different plugins. One of them let me add copy of actors to the game. Im using this plugin command:

CopyActor x y
Set y to the ID of the Variable you wish to store the Copy Actor ID's in.


Im storing the the Copy Actor ID in variable 7. Until here everything correct.
The problem is im using other plugin named Hime Party Switching scene and trying to do what is described here:

This plugin provides a default "reserve" party for you. The purpose of this reserve party is to hold all of the actors that are currently not in your party, but can be recruited into the party through the scene.
The reserve party can be accessed using a script call

var party = $gameSystem.reserveParty()


Which will return a Game_Party object. You can then interact with this party like any other party:

var party = $gameSystem.reserveParty()
party.addActor(2) // add actor 2 to reserve party
party.removeActor(3) // remove actor 3 from reserve party


So basically what im trying to do is: If my party has less than 6 members, simply use the plugin command to copy the actor and automatically is added to the party. But if my party has more than 6, send it to the reserve party. For that im using this. Someone please tell me if its alright or why im failing. The actor is added to my party but it doesnt appear in the reserve party, so the second part of the conditional branch never works :
upload_2019-5-17_16-48-3.png


First i define the variable party size

upload_2019-5-17_16-43-32.png


Then i apply this conditional branch


PS: Thanks to everyone who helped me in previous threads. Everything helped me a lot
If you want help with a plugin(s), at the very least you should provide the name and link to those plugins.

One issue is that variables you create inside of script commands are local to that script command. So in the second script command which says:
Code:
party.addActor(7)
The variable "party" hasn't been defined.

I would expect that to cause an error that you can see in the Console (press F8 during playtest to open it)
If you want help with a plugin(s), at the very least you should provide the name and link to those plugins.

One issue is that variables you create inside of script commands are local to that script command. So in the second script command which says:
Code:
party.addActor(7)
The variable "party" hasn't been defined.

I would expect that to cause an error that you can see in the Console (press F8 during playtest to open it)
Yes sorry I forgot. The first plugin is SRD_copyactors
http://sumrndm.site/copy-actors/
The second is Hime_PartySwitching
http://himeworks.com/2016/03/party-switching-scene/
You used two script commands, that is the main problem. The variables defined in one script command won't carry over to the next one.
Btw other thing i noticed with the code. When the plugin instruction put this example:
party.addActor(2) // add actor 2 to reserve party

The number two refers to the actor number two in your party or the actor ID? If its the last one i need to put the value for variable 7, which contains the ID i need. Its possible to put something like: party.addActor(\v[7]) or it would only accept numbers?
Not \v[7]. $gameVariables.value(7)

Original thread: https://forums.rpgmakerweb.com/threads/incompatible-plugins-or-bad-script.109097/