ACBS FIX SCRIPT #2: Advanced Cry Correction
#1
ACBS FIX SCRIPT #2
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
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 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.
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
Another great fix, amazing work right there! THANK YOU SO MUCH for this, I hope this helps other people if they wish to use this amazing system.
"Once an assassin, always an assassin."
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Text Scroll Script - Enhanced DerVVulfman 23 34,186 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Cursor Script Selwyn 7 15,289 09-28-2019, 02:13 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 4,698 08-08-2019, 02:53 PM
Last Post: aeliath
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 254,926 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   Spritesheet Generator Conversion Script DerVVulfman 0 4,231 11-21-2018, 04:48 AM
Last Post: DerVVulfman
   Neo Mode 7 Script by MGCaladtogel MGC 59 125,026 09-29-2017, 03:48 AM
Last Post: DerVVulfman
   Longer Script Calls LiTTleDRAgo 0 4,945 05-17-2017, 12:36 AM
Last Post: LiTTleDRAgo
   SLOLS: Snake Look-alike on Load Script Zeriab 3 11,242 05-14-2017, 06:25 PM
Last Post: LiTTleDRAgo
   Character Select Script Selwyn 3 10,705 03-07-2017, 04:14 AM
Last Post: JayRay
   ELSA (Event Layering Script Advance) JayRay 0 5,985 02-25-2015, 04:15 AM
Last Post: JayRay



Users browsing this thread: 2 Guest(s)