じ☆ve冰风 发表于 2026-7-8 12:26:02

ACBS FIX SCRIPT #2: Advanced Cry Correction

ACBS FIX SCRIPT #2
Advanced Cry Correction
Version: 1.0​



Introduction
This fixes a major flaw with the ACBS (Atoa's CBS) v 3.2 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 != nil and bc != nil       if bc != nil         base = bc.dup       else         base = bc['BASE'].dup       end       sound = base.dup       Audio.se_play('Audio/SE/' + sound, sound, sound)       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 v 3.2. IF you don't have a copy....
ACBS - Atoa Custom Battle System v 3.2 by Atoa (Victor Sant) Posted July 2009



Terms and Conditions
Free for use with just due credit required.


本贴来自国际rpgmaker官方论坛作者:DerVVulfman处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/acbs-fix-script-2-advanced-cry-correction.111948/
页: [1]
查看完整版本: ACBS FIX SCRIPT #2: Advanced Cry Correction