MV Olivia's OTB Lose Current / Next Turn

I'm using Olivia's OTB battle system (https://fallenangelolivia.itch.io/order-turn-battle-system) in conjunction with Yanfly action sequences / state core and trying to action sequence / state notetag the loss of current or next turns.

The documentation covers some notetags for adding turns, but not removing turns
<OTB User Add Current Turn Actions: x>
<OTB User Add Next Turn Actions: x>
Add x actions to the current turn or the next turn for the user. This will only be added once no matter how many times the battler hits the target.

<OTB Target Add Current Turn Actions: x>
<OTB Target Add Next Turn Actions: x>
Add x actions to the current turn or the next turn for the target. If the target is targeted multiple times, the target will gain actions multiple times so please be cautious when using this.

I was wondering if anyone knew some direct code evals that could accomplish this?
Still interested in a solution here if anyone knows of a way.
Does it not work if you just supply a negative value for x?

If no, your options are quite limited. You're referencing a paid plugin, so your possible helpers are limited to coders who have purchased that plugin.

On top of that, Olivia's plugins are obfuscated, which means you can't just open them and read through the code to find the answer to your question.
I believe I tried negative values in the notetags and script calls to no avail but I'll give it another shot one evening this week.

I also was able to glean function names from the plugin as they get passed through for obfuscation and tried to call any obvious function that sounded related to removing or cancelling turns but I suspect this just isn't a nicely supported use case for the plugin.

I thought I'd ask though, in case I was missing anything obvious or to spark some ideas. I may have to give up on the turn order display and just use Restriction Cannot Move States for the circumstances I have in mind.
Can you explain exactly what you want to do... I might be able to help a little, but I'm not sure what you want to do.
@firestalker, the simplest example of what I would like to do is have a state with a Yanfly Custom Apply Effect that would remove the target's Next turn. Something like:

<Custom Apply Effect>
target.removeNextTurn();
target.removeState(stateID);
</Custom Apply Effect>

That way,
  1. I can make certain enemies immune to the effect via State Resists.
  2. The Next turn is removed from the OTB turn order display so that it's clear they're not going to act Next turn.
  3. I don't have to use Restrictions in states that might prevent them from doing other things, like counterattacking in the meantime.
@firestalker, the simplest example of what I would like to do is have a state with a Yanfly Custom Apply Effect that would remove the target's Next turn. Something like:

<Custom Apply Effect>
target.removeNextTurn();
target.removeState(stateID);
</Custom Apply Effect>

That way,
  1. I can make certain enemies immune to the effect via State Resists.
  2. The Next turn is removed from the OTB turn order display so that it's clear they're not going to act Next turn.
  3. I don't have to use Restrictions in states that might prevent them from doing other things, like counterattacking in the meantime.
I don't think it possible to complete REMOVE the turn... At least not that I've been able to find from the plugin help file. I just made a skill that "knocks" the enemy "back". Like if the Turn shows that the enemy going to attack next and I need the player after the enemy to attack in order to stay alive then I use that skill and the enemy's turn is skipped and he sent to the end of the turn line. So instead of being next he is last on the list...

But removing the turn completely is something I wanted to do as well, but have been unable to find out how to do it.
That way,
  1. I can make certain enemies immune to the effect via State Resists.
  2. The Next turn is removed from the OTB turn order display so that it's clear they're not going to act Next turn.
  3. I don't have to use Restrictions in states that might prevent them from doing other things, like counterattacking in the meantime.
It wouldn't solve 2, but you could try using an action start state notetag from yanfly's buffs & states plugin to clear or change the target's current skill as they make it if its not forced or a counter instead of using a restriction.

As far as I can see, to get 2 done you'd have to try to poke around the console and the js file to hack something together. Id imagine you could find some BattleManager or some window references to a turn order within the garbled mess

Edit: I suppose looking into the direction of breaks could be helpful too. I remember the demo when I played with it being fairly faithful to octopath mechs, so you could maybe try triggering some part of the break process to get the the current and next turns negated
Edit: I suppose looking into the direction of breaks could be helpful too. I remember the demo when I played with it being fairly faithful to octopath mechs, so you could maybe try triggering some part of the break process to get the the current and next turns negated
Break Process? Can you explain a little of that please?
Break Process? Can you explain a little of that please?
Ah. Just double checked. My bad on that. In my mind I conflated olivias entire octopath battle system plugin set with the OTB one. Break isnt a part of OTB.
Ah. Just double checked. My bad on that. In my mind I conflated olivias entire octopath battle system plugin set with the OTB one. Break isnt a part of OTB.
Darn.... can it be part? Like if we get that plugin would it work?
You can just do a regular stun state.

1718235807962.png


For however many turns they are stunned ("Cannot Move") the Olivia plugin will automatically remove the target from showing up in the turns where they don't get a turn. IE, this two turn stun will remove the target from both the current turn and the next turn.
Darn.... can it be part? Like if we get that plugin would it work?
i make zero promises and advise against it if its to be added just to hijack break. theoretically you could do it, but it wouldnt change the fact that you'd be poking around an obfuscated plugin trying to make things work and the added plugin will add additional mechanics that will change how the game handles things.

You can just do a regular stun state.
they mentioned that they didnt want to do it that way because the restriction would prevent battlers from executing counters.
It was a good suggestion about the Break effects but looking at https://fallenangelolivia.itch.io/break-shield-system, it does appear to be using standard stun states for turn loss effects. I'll keep digging through the obfuscated functions.

Edit: I think I found a way to do this, need to add more logic to the array element removal, but accomplished this via console:
Spoiler
1718251899563.png


If I reference the following from BattleManager I can determine who's turn it currently is, who's remaining in the Current Turn order, and who's remaining in the Next Turn order:

Code:
BattleManager._subject
Game_Actor {_hp: 82, _mp: 9, _tp: 50, _hidden: false, _paramPlus: Array(8), …}

BattleManager._actionBattlers
(2) [Game_Actor, Game_Actor]

BattleManager._nextTurnActionBattlers
(4) [Game_Enemy, Game_Actor, Game_Actor, Game_Actor]

Now, if I pop elements off those arrays and request updates as follows:
Code:
BattleManager._actionBattlers.pop()
Game_Actor {_hp: 99, _mp: 9, _tp: 5, _hidden: false, _paramPlus: Array(8), …}

BattleManager._nextTurnActionBattlers.pop()
Game_Actor {_hp: 99, _mp: 9, _tp: 5, _hidden: false, _paramPlus: Array(8), …}

BattleManager._requestCurrentTurnUpdate = true
true

BattleManager._requestNextTurnUpdate = true
true

Then I've removed the final members of both Current and Next Turns.
1718252237670.png


So now it should be a matter of using indexOf() and splice() (or other appropriate array trimming options) to remove the correct battler as necessary.

Original thread: https://forums.rpgmakerweb.com/threads/olivias-otb-lose-current-next-turn.165131/