Press Turn Battle System Help Patch

Hello, i am using the PTBS script here: https://divisionheaven.me/material-list/rgss3/press-turn-battle-system/

The Press Turn Battle System (PT😎 employs the Turn Icon appear in the upper right in either red (corresponding to your enemies) or blue/green (corresponding to you and your allies). For the most part, there will be the same amount of Turn Icons as there are units on each side. Generally, every action consumes one Turn Icon. When all Turn Icons are used up, the phase switches to the other side and continues until the battle has ended. The Turn Icon issued at the beginning of each phase is always a “whole” icon, but depending on the result of the action, the whole icon may turn into a “half” (blinking) icon, effectively increasing the number of actions one side can take within that phase. However, a failed result will always consume more Turn Icons.

And the problem is that i need some skills that don't waste turns.

So i need a patch to the script that would add first a note tag that makes it so a skill doesn't waste a turn for the team. For example: If the first actor uses a skill with that notetag, then it doesn't waste turn, the team wouldn't lose a turn and the Actor 2 will act next.

And (Optionally) another note tag for a skill again to don't waste a turn but this time, for the player. For example: If the first actor uses a Skill A then it doesn't waste a turn, and the actor will act again without losing a turn for the party.

Anyways, thank you for the attention!
For the first request, the script already has a notetag for that:
Code:
<ptb instant>

And for the second request, you just need to install Yanfly's Instant cast:
https://github.com/Archeia/YEARepo/blob/master/Instant_Cast.rb

Then use the notetags:
Code:
<instant>
<ptb instant>
And for the second request, you just need to install Yanfly's Instant cast:
https://github.com/Archeia/YEARepo/blob/master/Instant_Cast.rb

Then use the notetags:
Code:
<instant>
<ptb instant>
Yeah, the <ptb instant> works perfectly, but the instant tag og Yanfly's Instant Cast is pretty glitched.

Basically, when you use a skill with the <instant> tag, the team lose a turn but gives the turn to the same actor, but that's just a visual bug because if you use an action with that actor then it won't do anything and will pass the turn to the next ally

So, it doesn't do anything xD

And i need that the actor act again but without losing a turn for the team.
Strange...the Press Turn script directly mentions Yanfly's script, so I would assume it would work.
Try changing the order of the scripts, and if that doesn't work, maybe try removing the <ptb instant> tag?
Strange...the Press Turn script directly mentions Yanfly's script, so I would assume it would work.
Try changing the order of the scripts, and if that doesn't work, maybe try removing the <ptb instant> tag?
I use these scripts
1739402400161.png

If you put the Instant Cast script above the PTBN script, it doesn't works, so it must be down.

I think that maybe is a consecuence of the patches that the autor did for the bugs, or maybe an update of Yanflys Instant Cast, but well, it doesn't work at all.
bump
bump
bump
Place Yanfly instant cast above PTBN
1740235255718.png

Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: PTB instant action fix                 ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Fix bug with YES Battle Mechanism           ║    22 Feb 2025     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: All PTBN scripts                                         ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║       Fix lost turn on instant use                                 ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Place Yanfly Instant Cast above PTBN                             ║
# ║   Put this patch below all PTBN scripts                            ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 22 Feb 2025 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

class Scene_Battle < Scene_Base
  def use_item
    ptbn_use_item
    if @subject && @subject.actor? && @subject.ptbn_state == 9
      @backup_subject = @subject
    end
    BattleControl.ptbn_evaluate_action(@subject.ptbn_state) if BattleControl.battle_type == :ptbn
    @ptbn_turn_gauge.refresh if $imported["YES-PTBNGauge"] && @subject.ptbn_state >= 10
    @subject.ptbn_state = 0
    if @backup_subject
      @subject = @backup_subject
      @actor_command_window.setup(@subject)
      BattleManager.set_actor(@subject)
      @status_window.select(BattleManager.actor.index)
      @backup_subject = nil
    end
  end
end
Place Yanfly instant cast above PTBN
It works perfect! Thank you a lot Roninator2

Original thread: https://forums.rpgmakerweb.com/threads/press-turn-battle-system-help-patch.175383/