Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,020 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 29,893 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 13,190 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #2: Advanced Cry Correction DerVVulfman 1 3,979 08-09-2019, 03:42 PM
Last Post: aeliath
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 224,093 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Archived Script Listings DerVVulfman 9 33,877 01-08-2019, 04:27 AM
Last Post: DerVVulfman
   Spritesheet Generator Conversion Script DerVVulfman 0 3,635 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 111,766 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,401 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 10,221 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo



Users browsing this thread: