DT's Message Sound Effect
Version: 1.0.0
Author: DoctorTodd
Date: 6/5/2012
Version History
- Version 1.0.0 2012/6/5 - Original Release
Planned Future Versions
- None planned, you tell me.
Description
Plays a sound effect when a new message window pops up.
Features
Instructions
Paste above main.
Configure script.
Script
#===============================================================================
#
# DT's Message Sound effect
# Author: DoctorTodd
# Date (04/26/2012)
# Version: (1.0.0) (VXA)
# Level: (Simple)
# Email: Todd@beacongames.com
#
#===============================================================================
#
# NOTES: 1)This script will probably only work with ace.
#
#===============================================================================
#
# Description: Plays a sound effect when a new message window pops up.
#
# Credits: Me (DoctorTodd)
#
#===============================================================================
#
# Instructions
# Paste above main.
#
#===============================================================================
#
# Free for any use as long as I'm credited.
#
#===============================================================================
#
# Editing begins 39 and ends on 40.
#
#===============================================================================
module DTSEM
#Name of the sound effect.
SE = "Wind7"
#Switch for disabling the sound effect.
DISABLESWITCH = 22
end
#==============================================================================
# ** Window_Message
#------------------------------------------------------------------------------
# This message window is used to display text.
#==============================================================================
class Window_Message < Window_Base
#--------------------------------------------------------------------------
# * Normal Character Processing
#--------------------------------------------------------------------------
def process_normal_character(c, pos)
Audio.se_play("Audio/SE/" + DTSEM::SE, 100, 100) if $game_switches[DTSEM::DISABLESWITCH] == false
text_width = text_size(c).width
draw_text(pos[:x], pos[:y], text_width * 2, pos[:height], c)
pos[:x] += text_width
end
end
Credit
Support
Post here for quickest support, or send an email to Todd@beacongames.com.
Known Compatibility Issues
None known of. Tested with Yanfly message system.
Author's Notes
Just a simple script I wrote for my game.
Restrictions
Check the header of the script.