Force Action Help

Alrighty, so I've got a pack of wolves (two normal and an alpha) as a troop of enemies. I'm trying to set it up so that when the alpha dies, if the other wolves are still alive they'll run away. However, every time I've battle tested it, the other two wolves continue attacking even after the alpha is killed.


I'm on my phone right now so I can't take screenshots, but my setup in the troop event looks like this:


@>Conditional Branch: [1. Wolf Alpha] is [Death] Inflicted


@>Force Action: [2. Wolf], [Escape], Random


@>Force Action: [3. Wolf], [Escape], Random


@>


: Branch End


@>


With the condition "Don't Run" and the span "Battle."


I tried messing around with different spans but it didn't seem to do anything. I also thought it might have something to do with the scripts I was using, but I'm still running into the same problem when I test it in a vanilla project.


So, am I missing something, or is my setup wrong?
open database

go to troop tab

under the battle event section:

condition: enemy(select alpha male index) hp = 0% or below

span: moment

within the command list:

force action:

 - action subject:

   - (enemy fleeing)

 - action:

   - skill: 006:escape

   - target: index of the enemy fleeing

** make sure you match the index of the enemy using the skill to the index of the target (this applies the effect to the user of the skill).

** make sure the span is set to moment.

** create an identical forced action for each enemy fleeing.
Oh, that worked! That's strange, though, I read the tooltip and it said that simply having the skill's scope set to User would override the Force Action Target... Ah, well, it's working now. Thanks for your help!
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/force-action-help.19000/