VXAce Script needs tested...

To use the following script call in the overdrive system below, use this in the events... $game_actors[1].gain_overdrive(50)
This next part deactivates overdrive... (Also in events)
$game_actors[1].deactivate_overdrive
Example Formula:
a.atk * (a.overdrive_active? ? 2.0 : 1.0)


The script is here ..
Code:
#==============================================================================
# ■ Dynamic Overdrive System
#    Author: UndeadGamez
#    Engine: RPG Maker VX Ace (RGSS3)
#------------------------------------------------------------------------------
# Adds an Overdrive gauge to actors that fills through combat.
# When full, the actor enters Overdrive Mode with boosted stats.
#==============================================================================

module Overdrive
  MAX_GAUGE = 100
  DAMAGE_GAIN = 0.15 # % of damage taken converted to gauge
  ATTACK_GAIN = 0.10 # % of damage dealt converted to gauge
  TURN_DRAIN = 20 # Gauge lost per turn while overdrive is active

  PARAM_BOOST = {
    :atk => 1.30,
    :def => 1.20,
    :agi => 1.25,
    :mat => 1.30,
    :mdf => 1.20
  }
end

#==============================================================================
# ■ Game_Actor
#==============================================================================

class Game_Actor < Game_Battler
  attr_reader verdrive

  alias od_initialize initialize
  def initialize(actor_id)
    od_initialize(actor_id)
    @overdrive = 0
    @overdrive_active = false
  end

  def gain_overdrive(amount)
    return if @overdrive_active
    @overdrive= [[@overdrive + amount, 0].max, Overdrive::MAX_GAUGE].min
    activate_overdrive if @overdrive >= Overdrive::MAX_GAUGE
  end

  def activate_overdrive
    @overdrive_active = true
  end

  def deactivate_overdrive
    @overdrive_active = false
    @overdrive = 0
  end

  def overdrive_active?
    @overdrive_active
  end

  alias od_on_turn_end on_turn_end
  def on_turn_end
    od_on_turn_end
    if @overdrive_active
      @overdrive -= Overdrive::TURN_DRAIN
      deactivate_overdrive if @overdrive <= 0
    end
  end
end

#==============================================================================
# ■ Game_Battler
#==============================================================================

class Game_Battler < Game_BattlerBase
  alias od_execute_damage execute_damage
  def execute_damage(user)
    damage = @result.hp_damage
    od_execute_damage(user)

    if self.is_a?(Game_Actor) && damage > 0
      gain = (damage * Overdrive:AMAGE_GAIN).to_i
      self.gain_overdrive(gain)
    end

    if user.is_a?(Game_Actor) && damage > 0
      gain = (damage * Overdrive::ATTACK_GAIN).to_i
      user.gain_overdrive(gain)
    end
  end
end

#==============================================================================
# ■ Game_BattlerBase (Stat Boosts)
#==============================================================================

class Game_BattlerBase
  alias od_param param
  def param(param_id)
    value = od_param(param_id)
    return value unless actor? && overdrive_active?

    case param_id
    when 2 then value * Overdrive:ARAM_BOOST[:atk]
    when 3 then value * Overdrive:ARAM_BOOST[:def]
    when 4 then value * Overdrive:ARAM_BOOST[:mat]
    when 5 then value * Overdrive:ARAM_BOOST[:mdf]
    when 6 then value * Overdrive:ARAM_BOOST[:agi]
    else value
    end.to_i
  end
end
Please place the script inside the CODE tag, as automatic emojis break the script.
#==================================================
# OVERDRIVE SYSTEM - COMPLETE
# RPG Maker VX Ace
# RGSS3
#Author: Undeadgamez
#
# -----------------------------
# TUTORIAL / HOW TO USE
# -----------------------------
#
# 1. WHAT THIS SCRIPT DOES
# -----------------------------
# This script adds an Overdrive (Limit Break) system.
#
# - Actors gain Overdrive when:
# - Using skills or items
# - Taking damage
#
# - When the gauge is full, Overdrive can be activated.
# - While active, Overdrive drains over time.
# - When the gauge reaches zero, Overdrive ends.
#
# - Overdrive:
# - Applies a database State
# - Changes the character graphic
# - Allows Overdrive-only skills
# - Displays a gauge in battle
#
#
# 2. DATABASE SETUP
# -----------------------------
#
# STATES:
# Create a State in the database called "Overdrive".
# Note its ID number.
#
# Set that ID below in OVERDRIVE_STATE.
#
# CHARACTER GRAPHICS:
# Create an alternate character sprite for Overdrive.
#
# Example:
# Hero.png (normal)
# Her😳D.png (overdrive)
#
# The script automatically swaps graphics when active.
#
#
# 3. ACTIVATING OVERDRIVE
# -----------------------------
#
# You can activate Overdrive in:
#
# - A skill damage formula:
# a.activate_overdrive
#
# - An event Script Call:
# $game_actors[1].activate_overdrive
#
#
# 4. OVERDRIVE-ONLY SKILLS
# -----------------------------
#
# Example skill damage formula:
#
# a.overdrive_active? ? a.atk * 5 : 0
#
# If Overdrive is not active, the skill does nothing.
#
#
# 5. OPTIONAL SCRIPT CALLS
# -----------------------------
#
# Fill gauge:
# $game_actors[1].gain_overdrive(50)
#
# Force end:
# $game_actors[1].end_overdrive
#
# Check full:
# a.overdrive_full?
#
# Check active:
# a.overdrive_active?
#
#
# 6. SAFE NOTES
# -----------------------------
#
# - No plugins required
# - No Unicode
# - No emojis
# - PC compatible
# - Uses only default RGSS3 classes
#
#==================================================

module OverdriveSystem
MAX_GAUGE = 100
SKILL_GAIN = 10
DAMAGE_GAIN = 5
DRAIN_RATE = 1
OVERDRIVE_STATE = 21 # CHANGE THIS TO YOUR STATE ID
end

#--------------------------------------------------
# Base accessors
#--------------------------------------------------
class Game_BattlerBase
attr_accessor 😮verdrive
attr_accessor 😮verdrive_active
end

#--------------------------------------------------
# Game_Actor
#--------------------------------------------------
class Game_Actor < Game_Battler
alias od_initialize initialize
def initialize(actor_id)
od_initialize(actor_id)
@overdrive = 0
@overdrive_active = false
end

def gain_overdrive(value)
return if @overdrive_active
@overdrive += value
clamp_overdrive
end

def clamp_overdrive
@overdrive = 0 if @overdrive < 0
@overdrive = OverdriveSystem::MAX_GAUGE if @overdrive > OverdriveSystem::MAX_GAUGE
end

def overdrive_full?
@overdrive >= OverdriveSystem::MAX_GAUGE
end

def activate_overdrive
return unless overdrive_full?
@overdrive_active = true
add_state(OverdriveSystem:😮VERDRIVE_STATE)
end

def end_overdrive
@overdrive = 0
@overdrive_active = false
remove_state(OverdriveSystem:😮VERDRIVE_STATE)
refresh
end

def drain_overdrive
return unless @overdrive_active
@overdrive -= OverdriveSystem:😀RAIN_RATE
end_overdrive if @overdrive <= 0
end
end

#--------------------------------------------------
# Enemy support (optional)
#--------------------------------------------------
class Game_Enemy < Game_Battler
alias od_enemy_initialize initialize
def initialize(index, enemy_id)
od_enemy_initialize(index, enemy_id)
@overdrive = 0
@overdrive_active = false
end
end

#--------------------------------------------------
# Scene_Battle
#--------------------------------------------------
class Scene_Battle < Scene_Base
alias od_use_item use_item
def use_item
subject = @subject
if subject.is_a?(Game_Actor)
subject.gain_overdrive(OverdriveSystem::SKILL_GAIN)
end
od_use_item
end

alias od_update update
def update
od_update
$game_party.battle_members.each do |actor|
actor.drain_overdrive
end
end
end

#--------------------------------------------------
# Damage gain
#--------------------------------------------------
class Game_Action
alias od_apply apply
def apply(target)
od_apply(target)
if target.is_a?(Game_Actor) && target.hp_damage > 0
target.gain_overdrive(OverdriveSystem:😀AMAGE_GAIN)
end
end
end

#--------------------------------------------------
# Graphic transformation
#--------------------------------------------------
class Game_Actor
alias od_character_name character_name
def character_name
return od_character_name unless @overdrive_active
od_character_name + "_OD"
end
end

#--------------------------------------------------
# Gauge drawing
#--------------------------------------------------
class Window_Base < Window
def draw_overdrive_gauge(actor, x, y, width = 96)
rate = actor.overdrive.to_f / OverdriveSystem::MAX_GAUGE
draw_gauge(x, y, width, rate, text_color(18), text_color(20))
draw_text(x, y, width, line_height, "OD", 1)
end
end

#--------------------------------------------------
# Battle status window
#--------------------------------------------------
class Window_BattleStatus < Window_Selectable
alias od_draw_item draw_item
def draw_item(index)
od_draw_item(index)
actor = $game_party.battle_members[index]
rect = item_rect(index)
draw_overdrive_gauge(actor, rect.x, rect.y + line_height * 2)
end
end

#--------------------------------------------------
# Helper method
#--------------------------------------------------
class Game_Battler
def overdrive_active?
@overdrive_active
end
end


My apologies for the first one. Here's the fully updated script
Doing this on my phone and it keeps showing emojis. How can I change that?
I'll just send the script text file
The script is attached to this text. Test it. The full tutorial is inside the script. Paste it above MAIN

Original thread: https://forums.rpgmakerweb.com/threads/script-needs-tested.181694/