Critical Flash + SE V1.1
By V.M.
Introduction
Small script to add a flash effect and/or play a se whenever a critical occurs. How fancy!
How to Use
Install, customize if necessary, use.
Script
By V.M.
Introduction
Small script to add a flash effect and/or play a se whenever a critical occurs. How fancy!
How to Use
Install, customize if necessary, use.
Script
- Code:
#Critical Flash + Sound Effect
#----------#
#Features: Provides the ability to have the screen flash and a se to play
# upon any critical strike
#
#Usage: None! Plug and play.
#
#Customization follows in the script, can edit filename, volume and pitch of se
# and color and duration of flash
#----------#
#-- Script by: V.M of D.T
#--- Free to use in any project with credit given
#class Scene_Battle < Scene_Base
class Game_Battler < Game_BattlerBase
#---------#
#PLAYSE to true to play SE. Filename (in quotes), Volume (0-100), Pitch, (0-150)
#---------#
PLAYSE = true
CSE_FILENAME = "Skill3"
CSE_VOLUME = 100
CSE_PITCH = 100
#---------#
#FLASH to true to execute flash
#Color in (Red,Green,Blue,Alpha) format (0-255), Duration in frames
#---------#
FLASH = true
FLASHCOLOR = Color.new(255,255,255,255)
FLASHDURAT = 30
#---------#END
alias crit_item_apply item_apply
def item_apply(user, item)
crit_item_apply(user, item)
if @result.critical then
if FLASH then $game_troop.screen.start_flash(FLASHCOLOR, FLASHDURAT) end
if PLAYSE then Audio.se_play('Audio/SE/' + CSE_FILENAME,CSE_VOLUME,CSE_PITCH) end
end
end
end
FAQ
Nadda, atm.
Credit and Thanks
- By V.M. of D.T.
- Free to use in any project with credit given