Troop event on selected enemy

I want to have my troop event say if an enemy takes an item from the player in battle. I have a skill that says give item, then gives status "Given Item". If successful, a conditional branch in troop event checks if that enemy has that status and continues the branch.

My problem is I want to have 3 enemy's max in battle, but a conditional branch does not make it easy if I just have it check enemy 1, 2, ect. I want it only to display the conditional on the enemy in that current turn or enemy that was selected.

-Uses skill in battle, turns on switch to enable troop event so it does not run every turn. Gives that enemy status "given item"
-With switch turned on, troop event runs
-Checks the conditional branch, if enemy 1 has status, continue. But if trying to give that status fails, go to else branch.
-Need to only check the current enemy in that turn.
My problem is I want to have 3 enemy's max in battle, but a conditional branch does not make it easy if I just have it check enemy 1, 2, ect.
I don't understand why it isn't easy. It seems to me you would simply do the event commands for what you want to happen, then copy and paste them inside three conditionals (or two and an else), then quickly modify any event commands that reference that specific enemy.

As always, it would be easier to help if you provided screenshots of the event you already have and explain where you're having the problems.
I don't understand why it isn't easy. It seems to me you would simply do the event commands for what you want to happen, then copy and paste them inside three conditionals (or two and an else), then quickly modify any event commands that reference that specific enemy.

As always, it would be easier to help if you provided screenshots of the event you already have and explain where you're having the problems.
I'll show what I have done here.

1720660533446.png



I have it like so, but every time this event runs and both enemies have the status the conditions will run twice even if I copy and paste. I'm not sure how to exclude it to one enemy at a time.
I'm not sure how to exclude it to one enemy at a time.
1720662414095.png


Anything in the Else branch will only happen if the first conditional was false.

Aside from that, it seems like you have a logical problem - if you don't want both enemies to have the state and react to it at the same time, then you shouldn't allow them to both have the state.

Why don't you remove the state after it shows the gobble meat message?
View attachment 310957

Anything in the Else branch will only happen if the first conditional was false.

Aside from that, it seems like you have a logical problem - if you don't want both enemies to have the state and react to it at the same time, then you shouldn't allow them to both have the state.

Why don't you remove the state after it shows the gobble meat message?
I wanted to use the status to make the bat more prone to attacking less and being docile.

But I suddenly just figured a solution in my head, I'll remove the status effect and give it another one in the same branch to make it more docile. So the meat given status will just give the right message.

Thank you for your help, it helps if a second person points things out to get a solution.

Original thread: https://forums.rpgmakerweb.com/threads/troop-event-on-selected-enemy.170191/