Force an Actor to fight!

So say we have a party of more then 4 people is there any way you can force a fight to only start if a certain actor is in the active battle party?


I tried a few things with condions and there not working 🙁
Can you give us examples of what you tried?


Conditional branches for it seems like the right way to go though. How is the fight triggered, by an event, common event or autorun?


I would set it up with a conditional branch just like you said, and add the condition to be x actor is in the party and set a handling when the conditions do not apply,


Then add a Battle processing inside the conditional branch if the actor is in the party, and then have something else happen if the actor is not. (or have nothing happening, if thats what you are planning to go for).
When I tried that exact thing it still went on with him being one of the two outside the battle party.


it was


Condtional Branch: [ACTOR] in Party:


> Battle Processing: ENCOUNTER.


>


Else:


> Please arrange your party so it containts [Actor]


> Open Menu


>Loop


That is what I had
Ye, forgot that actors that is not in the active battle party still counts as being "in the party".


Somehow I took for granted that he was not in the party at all...


Should be possible to check a script call snippet or something, but since I'm not too familiar with MV I'm not sure if it's the same as in VX or Ace :/


$game_party.battle_members.include?($game_actors[x]) - X being the ID of the actor.


is the call I use for Ace, you could try that and see if it works. You set it up excactly like with an ordinary conditional branch, but instead you chose as script call and type it inside script in the conditional branch options.


Edit: Found a similar thread to yours where Shaz kindly gave an answer to this, that focused on the MV engine.


The script snippet is:


$gameActors.actor(n).isBattleMember()


Where in this case (n) is the ID of the actor instead.

Original thread: https://forums.rpgmakerweb.com/threads/force-an-actor-to-fight.61335/