So I have some events in my project that are only suppose to go off when you have a character in your party. However, it doesn't seem nearly picky enough. You get a lot of characters in this game, and you only get to use 4 at a time. The rest you can swap in at save points.
The problem is that it will trigger the event if the character has been acquired, but not in the immediate 4. Is there a way to make it so the Actor in Party conditional branch will only check the first 4 actors?
Pardon my english but do you want to check wether an actor is on the main party (the first four member)?
You can store party members to variables then check wether any of those variable equal your desired actor's ID/
If you create your own formation system, instead of using the engine's, you can limit party members to the 4 active slots, then you assign a switch to each char(if the char is added to your party, it turns on the switch associated with that char, and if the char leaves, it turns off the switch), to allow for more efficient party member tracking.
All of that can be done without any plugins/scripts too 🙂
In truth, since only 4 member can be in your battle party, there's little reason to allow more then 4 characters in your party at any given time anyway.
Thanks guys!
This really helped me out!!!
Hey! Hopefully it's ok to resurrect old threads but I just tried the code Shaz posted (changing only 'n' to the actor's number) and received this error when interacting with the event that uses the script:
"Script 'Game_Interpreter' line 450: NoMethodError occurred.
undefined method 'actor' for nil:NilClass"