[VX Ace] Skill that stops Action Times+ from continuing

Hi all,

I would like to create a skill that, when selected, executes itself but negates other subsequent turns the player could take because of Action Times+. It doesn't matter what order the skill is selected in, but when an actor selects that skill it should end all subsequent turns for that actor (not the party).

I have attempted to achieve the same result with a state that limit the player's turns, however this requires the creation of multiple common events given Action Times+ changes many times in battle and is overall clunky and unreliable.

If anyone could create a script that adds this function, perhaps in the form of a skill notetag for skills that end Action Times+ turns, that would be great.
So the situation would be that the player can choose multiple actions and if one of them is the skill, the subsequent actions don't happen? I'm not 100% sure this would work, but maybe adding a common event to the skill that would force the actor to wait could do it. Will the skill be used by all actors/enemies?
So the situation would be that the player can choose multiple actions and if one of them is the skill, the subsequent actions don't happen? I'm not 100% sure this would work, but maybe adding a common event to the skill that would force the actor to wait could do it. Will the skill be used by all actors/enemies?

This skill would only be used by actors. The idea is that if you select this skill, it executes immediately and does not bring the skill box up again to select subsequent skills.

You should select this skill and it executes as if Action Times+ is not applied. I've tried a state/common event method but it brings the skill box back up again to select a skill that will not be executed rather than just executing outright immediately. It seems like it would only be achievable via a script.
I see, in that case I agree with you that a script will be needed. There are a couple of scripters around on the forum, maybe one of them will take it up, if it's not too complicated. Good luck!
Spoiler: Skill Cuts Remaining Actions
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: Skill Cuts Remaining Actions           ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Stop processing additional actions          ║    05 Aug 2024     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: nil                                                      ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Add note tag on skill that will prevent the actor from taking    ║
# ║   additional actions after the skill is used.                      ║
# ║            <action stop>                                           ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 05 Aug 2024 - 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                        ║
# ╚════════════════════════════════════════════════════════════════════╝

module R2_Cut_Actions
  Cut_Regex = /<action stop>/i
end

class Game_ActionResult
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :battler
end

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Actor [OK]
  #--------------------------------------------------------------------------
  alias r2_actor_ok_cut_action  on_actor_ok
  def on_actor_ok
    check_action_cut
    r2_actor_ok_cut_action
  end
  #--------------------------------------------------------------------------
  # * Enemy [OK]
  #--------------------------------------------------------------------------
  alias r2_enemy_ok_cut_action  on_enemy_ok
  def on_enemy_ok
    check_action_cut
    r2_enemy_ok_cut_action
  end
  #--------------------------------------------------------------------------
  # * Limit Actions
  #--------------------------------------------------------------------------
  def check_action_cut
    skill = @skill_window.item
    return if skill.nil?
    cut = false
    skill.note.split(/[\r\n]+/).each { |line|
      case line
      when R2_Cut_Actions::Cut_Regex
        cut = true
      end
    }
    if cut == true
      i = 0
      cut = false
      BattleManager.actor.actions.each { |ca|
        ca.subject.result.battler.actions.each { |it|
          next if it.item == nil
          cut = true if it.item.id == skill.id
          break if cut == true
          i += 1
        }
      }
      i += 1
      sz = BattleManager.actor.actions.size
      for n in i..sz
        BattleManager.actor.actions[n] = nil
        BattleManager.actor.input.subject.actions[n] = nil
      end
      BattleManager.actor.actions.compact!
      BattleManager.actor.input.subject.actions.compact!
    end
  end
end
Great stuff! Works as intended

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-skill-that-stops-action-times-from-continuing.170680/