ACBS FIX SCRIPT #1: Victory Cries Patch
#1
ACBS FIX SCRIPT #1
Victory Cries Patch
Version: 1.0



Introduction
This fixes a major flaw with the ACBS (Atoa's CBS) by Victor Sant. The bug was caused by an oversight which would crash the system if one wished to have audible cues from actors when they win a battle (or enemies taunting the heroes if they lose).



Script
Code:
#==============================================================================
# ** ACBS FIX SCRIPT #1:  Victory Cries Patch
#------------------------------------------------------------------------------
#     by DerVVulfman (08/07/2019) MM/DD/YYYY
#------------------------------------------------------------------------------
#  The ACBS System has a flaw with audible victory cries.  This fixes a major
#  flaw that can crash the system due to missing array content.
#==============================================================================



#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle
  #--------------------------------------------------------------------------
  # * Set Victory battlecry for enemies
  #--------------------------------------------------------------------------
  def set_enemy_victory_battlecry
    @victory_battlercry_enemy = nil
    battle_cry_set = []
    for battler in $game_troop.enemies
      if check_bc_basic(battler, "VICTORY") and not battler.dead?
        battle_cry_set << battler
      end
    end
    unless battle_cry_set.empty? or $game_temp.no_enemy_victory_bc
      @victory_battlercry_enemy = battle_cry_set [rand(battle_cry_set.size)]
    end
    if @last_active_enemy != nil and not @last_active_enemy.dead? and not
       $game_temp.no_enemy_victory_bc and battle_cry_set.include?(@last_active_enemy)
      @victory_battlercry_enemy = @last_active_enemy
    end
  end
  #--------------------------------------------------------------------------
  # * Set allies victory battlecry
  #--------------------------------------------------------------------------
  def set_victory_battlecry
    @victory_battlercry_battler
    battle_cry_set = []
    for battler in $game_party.actors
      if check_bc_basic(battler, "VICTORY") and not battler.dead?
        battle_cry_set << battler
      end
    end
    unless battle_cry_set.empty? or $game_temp.no_actor_victory_bc
      @victory_battlercry_battler = battle_cry_set [rand(battle_cry_set.size)]
    end
    if @last_active_actor != nil and not @last_active_actor.dead? and not
       $game_temp.no_actor_victory_bc and battle_cry_set.include?(@last_active_enemy)
      @victory_battlercry_battler = @last_active_actor
    end
    battle_cry_basic(@victory_battlercry_battler, "VICTORY") if @victory_battlercry_battler != nil
  end
end



Instructions
Paste this directly below the ACBS | Scene_Battle 4 script so it can take effect and replace the broken methods in question.



FAQ
A surprise, this is the first bug I've seen in the system... ever?



Compatibility
Specifically geared for the ACBS.



Credits and Thanks
To aeliath who supplied me with the error message that pointed out the bug.



Terms and Conditions
Free for use with just due credit required.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply


Messages In This Thread
ACBS FIX SCRIPT #1: Victory Cries Patch - by DerVVulfman - 08-08-2019, 03:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Script Commands Bug Fixes kyonides 2 980 02-27-2025, 07:24 AM
Last Post: kyonides
   The Steal and Peep Script DerVVulfman 12 2,469 02-19-2025, 07:20 AM
Last Post: Ace_V
   ATOA CBS Equipment Set Variables Patch kyonides 0 715 10-14-2024, 12:47 AM
Last Post: kyonides
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 6,055 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 38,455 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 17,234 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 5,480 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 282,336 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Spritesheet Generator Conversion Script DerVVulfman 0 4,954 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 135,643 09-29-2017, 03:48 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)