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 }
#2
Again, lemme thank you for all your effort man. I get this is an old system and maybe people don't actually use it, but it's really amazing and important to me.
I hope no one goes through this issue anymore xD
Thank you bro
"Once an assassin, always an assassin."
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   ATOA CBS Equipment Set Variables Patch kyonides 0 200 10-14-2024, 12:47 AM
Last Post: kyonides
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,895 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 34,290 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 15,347 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 4,769 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 255,699 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Spritesheet Generator Conversion Script DerVVulfman 0 4,251 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 125,394 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,963 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 11,260 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo



Users browsing this thread: 1 Guest(s)