I'm trying to make it so when you beat one of the enemies the battle aborts, but the battle just awkwardly keeps going. I've tried using just straight script calls but I think Visutella is suppressing it somehow. I've tried making the enemies escape, I used the script call for abort battle in a common event, and I've added the abort script call inside the battle's event page. Nothing is working. I've already used these:
BattleManager.endBattle();
BattleManager.abort();
// Make enemy #2 (index 1) escape
$gameTroop.members()[1].escape();
why aren't you using the event command?
The event command abort battle should always work
And how are you calling these things? Where is the event? How is it being run?
I don't see what your bottom screenshot has to do with it - forced actions has nothing to do with ending the battle.
I wonder if it's not working correctly because it's outsourced to the Common Event.
Does it make any difference if you put the Abort Battle command in the original Troop Event, on the line after call the common?
Ok so I don't know what I did. But I somehow got it working consistently. So thanks!
An update in case it helps others:
I've found that I can have the "Abort Battle" command work successfully if I have an event run after it with the caveat that I've currently only tested this with a message a display. If you're encountering a similar issue, I'm hoping running a short "wait" command or something else will also help the event to fire (though I'm still not clear why this is happening). Worst case, I'll just put some "success!" kind of message in lieu of that.