08-09-2019, 04:09 AM 
	
	
	ACBS FIX SCRIPT #2
Advanced Cry Correction
Version: 1.0
Advanced Cry Correction
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 where the action ID (skill ID, Item ID, etc) was not correctly synced in a method that played audio effects. If a BASE audio effect was set, only that would play. But if one was not set, the system was set to crash.
Script
Code:
#==============================================================================
# ** ACBS FIX SCRIPT #2:  Advanced Cry Correction
#------------------------------------------------------------------------------
#     by DerVVulfman (08/08/2019) MM/DD/YYYY
#------------------------------------------------------------------------------
#  The ACBS System has a flaw with advanced cry system.  This fixes a major
#  flaw that prevents individual cries by skill or item id from functioning.
#==============================================================================
#==============================================================================
# ** Object
#------------------------------------------------------------------------------
# Superclass of all other classes.
#==============================================================================
class Object
  #--------------------------------------------------------------------------
  # * Advanced Battlecry play
  #     battler : battler that will play the sound effect
  #     type    : type of the sound effect
  #     action  : action that will play the sound effect
  #--------------------------------------------------------------------------
  def battle_cry_advanced(battler, type, action)
    bc = battler.actor? ? Actor_Battle_Cry : Enemy_Battle_Cry
    if bc[battler.id] != nil and bc[battler.id][type] != nil
      if bc[battler.id][type][action] != nil
        base = bc[battler.id][type][action].dup
      else
        base = bc[battler.id][type]['BASE'].dup
      end
      sound = base[rand(base.size)].dup
      Audio.se_play('Audio/SE/' + sound[0], sound[1], sound[2])
      return true
    end
    return false
  end
endInstructions
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 second bug I've seen in the system..!
Compatibility
Specifically geared for the ACBS.
Terms and Conditions
Free for use with just due credit required.

 
 
 ACBS FIX SCRIPT #2:  Advanced Cry Correction
 ACBS FIX SCRIPT #2:  Advanced Cry Correction
 
 
![[Image: QrnbKlx.jpg]](https://i.imgur.com/QrnbKlx.jpg)
![[Image: sGz1ErF.png]](https://i.imgur.com/sGz1ErF.png)
![[Image: liM4ikn.png]](https://i.imgur.com/liM4ikn.png)
![[Image: fdzKgZA.png]](https://i.imgur.com/fdzKgZA.png)
![[Image: sj0H81z.png]](https://i.imgur.com/sj0H81z.png)
![[Image: QL7oRau.png]](https://i.imgur.com/QL7oRau.png)
![[Image: uSqjY09.png]](https://i.imgur.com/uSqjY09.png)
![[Image: GAA3qE9.png]](https://i.imgur.com/GAA3qE9.png)
![[Image: 2Hmnx1G.png]](https://i.imgur.com/2Hmnx1G.png)
![[Image: BwtNdKw.png%5B]](https://i.imgur.com/BwtNdKw.png%5B)


