- Joined
- Nov 28, 2021
- Messages
- 147
- Reaction score
- 47
- First Language
- English
- Primarily Uses
- RMMV
Hello, I followed a video on how to add summons to the game using common events which works great, but my 1 issue I'm having is switching the actor back to a empty slot once the counter expires, I'm going to explain everything with pictures of my state etc.
This is a lot of info and I apologize I just want to be thorough as possible with my question!!!
The plugin I am using to make this possible so far is YEP PartySystem
ACTOR 10

This is my actor 10! I set his class to the appropriate class with move set and the moves work fine in battle!
Here's where it starts to get tricky:
I figured out that adding and removing the actors will screw up in battle meaning if you have more then 4 actors and summon a 5th, into battle, it will just add the 5th actor in your party to the fight in most cases. So my solution is to add 3 empty actors in the beginning of the game, lock actor 5 and remove actor 3 and 4!

Here is the starting event in my game

(Actor 2 is not important nor is the hard mode in this scenario)
So now we have Beginning sequence 1 and 2 that are invisible, that instantly leave after the event plays, and Actor 30, Summon Slot is now added to the party, like so:

Now I add in 3 other party members, since summoning won't be available before then, note how the 5th slot is empty which is what I want so far!
This is where it gets more confusing but it is my lack of knowledge on how the syntax of the code goes I suppose:
This is the Summon State with the counter of how long the summon exists:

The full code in the note tag is this:
The note tag WITHOUT the If then statements WORKS but my game works as there will up to 9 potential swapping party members, so I need the event to check if there is 7 8 9 or 10 party members once the summon is included.
This parallel works for removing the actor if the summoned actor didn't expire or die, just be sure to switch on a switch at the beginning of the game:

So my main question is How do I write the state notetag "if then" syntax correctly?
x
This is a lot of info and I apologize I just want to be thorough as possible with my question!!!
The plugin I am using to make this possible so far is YEP PartySystem
ACTOR 10

This is my actor 10! I set his class to the appropriate class with move set and the moves work fine in battle!
Here's where it starts to get tricky:
I figured out that adding and removing the actors will screw up in battle meaning if you have more then 4 actors and summon a 5th, into battle, it will just add the 5th actor in your party to the fight in most cases. So my solution is to add 3 empty actors in the beginning of the game, lock actor 5 and remove actor 3 and 4!

Here is the starting event in my game

(Actor 2 is not important nor is the hard mode in this scenario)
So now we have Beginning sequence 1 and 2 that are invisible, that instantly leave after the event plays, and Actor 30, Summon Slot is now added to the party, like so:

Now I add in 3 other party members, since summoning won't be available before then, note how the 5th slot is empty which is what I want so far!
This is where it gets more confusing but it is my lack of knowledge on how the syntax of the code goes I suppose:
This is the Summon State with the counter of how long the summon exists:

The full code in the note tag is this:
Code:
<Custom Remove Effect>
$gameVariables.setValue(348, $gameParty.allMembers());
If 348 = 7
$gameParty.swapOrder(4, 6)
$gameParty.removeActor(10);
$gameParty.removeActor(11);
else
If 348 = 8
$gameParty.swapOrder(4, 7)
$gameParty.removeActor(10);
$gameParty.removeActor(11);
</Custom Remove Effect>
The note tag WITHOUT the If then statements WORKS but my game works as there will up to 9 potential swapping party members, so I need the event to check if there is 7 8 9 or 10 party members once the summon is included.
This parallel works for removing the actor if the summoned actor didn't expire or die, just be sure to switch on a switch at the beginning of the game:

So my main question is How do I write the state notetag "if then" syntax correctly?
x