Critical Sound for Blizz-ABS
Authors: Blizzard
Version: 1.0
Type: Blizz-ABS Plugin
Key Term: Blizz-ABS Plugin
IntroductionThis script will play a sound effect each time a critical hit is dealt.
This script is to be distributed under the same terms and conditions like the script it was created for: Blizz-ABS.
Features
- special sound effect during critical damage
- easy to configure
ScreenshotsN/A
DemoN/A
ScriptJust make a new script above main and paste this code into it.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Critical for Blizz-ABS by Blizzard
# Version: 1.0
# Type: Blizz-ABS Add-on
# Date: 25.12.2008
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# This script is to be distributed under the same terms and conditions like
# the script it was created for: Blizz-ABS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
# This script must be placed below Blizz-ABS and require Blizz-ABS v2.2 or
# higher to work properly. It will play a sound effect each time a critical
# hit is dealt.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
if !$BlizzABS || BlizzABS::VERSION < 2.2
raise 'ERROR: The "Critical Sound" plugin requires Blizz-ABS 2.2 or higher.'
end
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# ('FILENAME', VOLUME, PITCH)
CRITICAL_SOUND_FILE = RPG::AudioFile.new('060-Cheer01', 80, 100)
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# BlizzABS::DamageRequest
#------------------------------------------------------------------------------
# This class was modified to play a sound effect when creating a damage
# request.
#==============================================================================
class BlizzABS::DamageRequest
#----------------------------------------------------------------------------
# override Initialization
#----------------------------------------------------------------------------
alias init_criticalsound_blizzabs_later initialize
def initialize(char, damage, color, critical = false)
init_criticalsound_blizzabs_later(char, damage, color, critical)
$game_system.se_play(CRITICAL_SOUND_FILE) if critical
end
end
InstructionsNone required.
CompatibilityRequires Blizz-ABS to work.
Credits and Thanks
- Boris "Blizzard" Mikić
- Thanks to MeVII for requesting this.
Author's NotesKeep in mind that this plugin comes UNDER Blizz-ABS. This script was done on request and is not fully supported by me as my other scripts are.
If you find any bugs, please report them here:
http://forum.chaos-project.comThat's it! N-Joy! =D