Apologies for the confusing title but I wasn't quite sure how to phrase it, lol. This might also require to be in the script support depending on how this problem has to be solved but with this particular situation I'd rather not mess with scripts.
I just added a new area to my project which contains a poisonous flower. The way I've set this up is probably a little odd and impractical to veterans but for me it was easy enough to work with.
Each tile containing one of these flowers has a Player Touch Event attached that does the following:
Control Variable: PoisonPlantChance = Random No (1-10)
Conditional Branch: Variable PoisonPlantChance = 4 or Below
- Control Variable: PoisonTarget = Random No (1-28) [There are 28 playable characters]
- Conditional Branch: PoisonTarget = 1
- Check if Actor 1 is in the party. If so, play Poison Plant animation on the Player and add state 'Toxin' to Actor 1.
- Display a message informing the player of this.
- Conditional Branch: PoisonTarget = 2
- Check if Actor 2 is in the party. If so, play Poison Plant animation on the Player and add state 'Toxin' to Actor 2.
- Display a message informing the player of this.
And so on. There are identical conditional branches for all 28 characters. So if the Target variable is '13' it will check if Actor 13 is in the party and if so, they will be the one afflicted, and so on.
If the event chooses a character who is not in the party, it is SUPPOSED to simply do nothing, however instead it is still applying the state to that character as if they were in the party. I've worked out why this is happening but I'm not sure on the solution.
I'm using Yanfly's Party Select script and there's a specific character you can talk to change your active members. So basically when a character is 'unlocked', I use the 'Add Party Member' function to add them to the 'roster' so to speak, but as a result, my PoisonPlant event considers every unlocked character to be in the active party even when they're not.
I tried using the 'Remove from Party' option on a character to see if they'll be just taken out of the active party but it also removed them from the roster all together 🙁
It's a classic case of RPG Maker not doing what it's told. Since it's insisting on being literal, I need my event to instead check if the chosen character is in the BATTLE party. Is this possible?
I just added a new area to my project which contains a poisonous flower. The way I've set this up is probably a little odd and impractical to veterans but for me it was easy enough to work with.
Each tile containing one of these flowers has a Player Touch Event attached that does the following:
Control Variable: PoisonPlantChance = Random No (1-10)
Conditional Branch: Variable PoisonPlantChance = 4 or Below
- Control Variable: PoisonTarget = Random No (1-28) [There are 28 playable characters]
- Conditional Branch: PoisonTarget = 1
- Check if Actor 1 is in the party. If so, play Poison Plant animation on the Player and add state 'Toxin' to Actor 1.
- Display a message informing the player of this.
- Conditional Branch: PoisonTarget = 2
- Check if Actor 2 is in the party. If so, play Poison Plant animation on the Player and add state 'Toxin' to Actor 2.
- Display a message informing the player of this.
And so on. There are identical conditional branches for all 28 characters. So if the Target variable is '13' it will check if Actor 13 is in the party and if so, they will be the one afflicted, and so on.
If the event chooses a character who is not in the party, it is SUPPOSED to simply do nothing, however instead it is still applying the state to that character as if they were in the party. I've worked out why this is happening but I'm not sure on the solution.
I'm using Yanfly's Party Select script and there's a specific character you can talk to change your active members. So basically when a character is 'unlocked', I use the 'Add Party Member' function to add them to the 'roster' so to speak, but as a result, my PoisonPlant event considers every unlocked character to be in the active party even when they're not.
I tried using the 'Remove from Party' option on a character to see if they'll be just taken out of the active party but it also removed them from the roster all together 🙁
It's a classic case of RPG Maker not doing what it's told. Since it's insisting on being literal, I need my event to instead check if the chosen character is in the BATTLE party. Is this possible?