MV Honkai Star Rail turn based system (Close to Ellye's plugin)

Is there any plugin that similar or close to HSR turn based system (CTB style, can do action simultaneously if agility is very high) with fixed status turn count?

It's like this plugin but the countdown for status quite messed up. It should be turn count decrease every action

I already tweak a bit from plugin parameter but it cause turn count decrease every 2-3 action or 2 turn count decreased every 1 action
Most of HSR’s status effects are relative to a unit (e.g. Robin’s skill duration ticks down with her turns, and not the target’s), so your description of a fixed status turn count is a bit off.

I think the YEP library has a turn-based system where higher speed can yield additional turns, but I’m not sure.
Most of HSR’s status effects are relative to a unit (e.g. Robin’s skill duration ticks down with her turns, and not the target’s), so your description of a fixed status turn count is a bit off.

I think the YEP library has a turn-based system where higher speed can yield additional turns, but I’m not sure.
That's what I mean, it should be tick down on every turn once, not tick down twice per turn or tick down per 2-3 turn

YEP CTB turn count turn display has a bit issue. It doesn't tick down, but it expires same as what I input

1742033102183.png


There's a bit problem with YEP CBT, after Fisca apply buff to allies, she will decrease it immediately

here's the settings on status tab

1742033152178.png


Edit:
I've check most of thing and none is work perfectly like HSR unless I made a change in a js file

I'll let this open first until it's fixed

Now, I'm not using any plugin to change into CTB style

Update 1:
I made a bit change in YEP Battle Engine Core
JavaScript:
Game_Action.prototype.itemEffectAddNormalState = function (target, effect) {
    var stateId = effect.dataId;
    var chance = effect.value1;
    if (!this.isCertainHit()) {
        chance *= target.stateRate(stateId);
        chance *= this.lukEffectRate(target);
    }
    if (Math.random() < chance) {
        if (stateId === target.deathStateId()) {
            if (target.isImmortal()) target.removeImmortal();
        }
        this.subject()._applyingBuff = true; // Additional
        target.addState(stateId);
        this.makeSuccess(target);
    }
};

Game_BattlerBase.prototype.updateStateTurnTiming = function (timing) {
    console.log(timing)
    if (this.isBypassUpdateTurns()) return;
    var statesRemoved = [];
    this._freeStateTurn = this._freeStateTurn || [];
    for (var i = 0; i < this._states.length; ++i) {
        var stateId = this._states[i];
        var state = $dataStates[stateId];
        if (!state) continue;
        if (state.autoRemovalTiming !== timing) continue;
        if (!this._stateTurns[stateId]) continue;
        if (this._freeStateTurn.contains(stateId)) {
            var index = this._freeStateTurn.indexOf(stateId);
            this._freeStateTurn.splice(index, 1);
        } else {
            if(!this._applyingBuff) this._stateTurns[stateId] -= 1; // Adjustment
            this._applyingBuff = false; // Additional
        }
        if (this._stateTurns[stateId] <= 0) statesRemoved.push(stateId);
    }
    for (var i = 0; i < statesRemoved.length; ++i) {
        var stateId = statesRemoved[i];
        this.removeState(stateId);
    }
};

This work as intended now in CTB system. I'll try to look over if there's another bug tomorrow morning

Update 2:
There's a bug that other buff will decreased too. So I made another adjustment

JavaScript:
Game_Action.prototype.itemEffectAddNormalState = function (target, effect) {
    var stateId = effect.dataId;
    var chance = effect.value1;
    if (!this.isCertainHit()) {
        chance *= target.stateRate(stateId);
        chance *= this.lukEffectRate(target);
    }
    if (Math.random() < chance) {
        if (stateId === target.deathStateId()) {
            if (target.isImmortal()) target.removeImmortal();
        }
        target.addState(stateId);
        target.states().filter(state => state.id == stateId)[0]._applyingBuff = true;
        this.makeSuccess(target);
    }
};

Game_BattlerBase.prototype.updateStateTurnTiming = function (timing) {
    if (this.isBypassUpdateTurns()) return;
    var statesRemoved = [];
    this._freeStateTurn = this._freeStateTurn || [];
    for (var i = 0; i < this._states.length; ++i) {
        var stateId = this._states[i];
        var state = $dataStates[stateId];
        if (!state) continue;
        if (state.autoRemovalTiming !== timing) continue;
        if (!this._stateTurns[stateId]) continue;
        if (this._freeStateTurn.contains(stateId)) {
            var index = this._freeStateTurn.indexOf(stateId);
            this._freeStateTurn.splice(index, 1);
        } else {
            if (!state._applyingBuff) this._stateTurns[stateId] -= 1;
            state._applyingBuff = false;
        }
        if (this._stateTurns[stateId] <= 0) statesRemoved.push(stateId);
    }
    for (var i = 0; i < statesRemoved.length; ++i) {
        var stateId = statesRemoved[i];
        this.removeState(stateId);
    }
};

Game_Battler.prototype.useItem = function (item) {
    Yanfly.BEC.Game_Battler_useItem.call(this, item);
    if(item.scope >= 7) {
        item._applyingBuff = true;
    }
    this.refresh();
    if (!$gameParty.inBattle()) return;
    this.increaseSelfTurnCount();
    this.updateStateActionStart();
};

Now this Yanfly CBT works well and suits my style. If there's another bug, I'll recreate new thread instead. For now case closed

Thanks @Kenen for the insight!
This thread is closed due to being reported as solved. If you need it reopened, report it let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/honkai-star-rail-turn-based-system-close-to-ellyes-plugin.176250/