RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
DT's Message Sound Effect

0 Members and 1 Guest are viewing this topic.

****
Rep:
Level 71
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

  • Plug and play

Instructions

Paste above main.
Configure script.

Script


Code: [Select]
#===============================================================================
#
# 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


  • DoctorTodd

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.