[VXA] Script Merging Assistance

Hi there! First post so I hope I'm putting this in the right place, sorry if I didn't.

Currently I'm using Vlue's Basic Message SE script, and I would also like to use Tuckie's Wiggle Text script, but the two conflict. I've had a friend take a look at them and he's attempted to combine the two, but to no avail. The Wiggle script takes priority and the sounds don't play during dialogue as they should. I want to say the issue is that the Wiggle script changes how each letter is read in-game and so conflicts with the way the message SE one reads it.

In theory it should be possible to combine these, but my friend isn't fluent enough in ruby to pull it off and I have NO knowledge on how to do this. Is anyone else here able to give it a try?


Spoiler: Vlue's Basic Message SE
#Basic Message SE v1.1
#----------#
#Features: Let's you have a sound effect play every so-so letters while a
# message is being displayed. Fancy!
#
#Usage: Plug and play, script calls to change details in game:
#
# message_freq(value) - changes the frequency of the se
# message_se("string") - name of the se to play
# message_volume(value) - volume of the se to play
# message_pitch([min,max]) - pitch variance between min and max
# message_set(se,volume,pitch) - sets them all at once
# message_set(se,volume,pitch,freq) - same as above but with freq
#
#----------#
#-- Script by: V.M of D.T
#
#- Questions or comments can be:
# given by email: [email hidden]
# provided on facebook: http://www.facebook.com/DaimoniousTailsGames
# All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
#
#- Free to use in any project with credit given, donations always welcome!

class Window_Message < Window_Base

DEFAULT_SE_FREQ = 4
DEFAULT_AUDIO_SOUND = "Cursor1"
DEFAULT_AUDIO_VOLUME = 100
DEFAULT_AUDIO_PITCH = [100,100]

DISABLE_SOUND_SWITCH = 50

attr_accessor :se
attr_accessor :freq
attr_accessor :volume
attr_accessor 😛itch

alias mse_clear_instance_variables clear_instance_variables
def clear_instance_variables
mse_clear_instance_variables
@key_timer = 0
reset_se_variables
end
def reset_se_variables
@se = DEFAULT_AUDIO_SOUND
@volume = DEFAULT_AUDIO_VOLUME
@pitch = DEFAULT_AUDIO_PITCH
@freq = DEFAULT_SE_FREQ
end
def process_normal_character(c, pos)
super
if !$game_options.nil?
return wait_for_one_character unless $game_options.message_se
end
return wait_for_one_character if $game_switches[DISABLE_SOUND_SWITCH]
if @key_timer % @freq == 0
Audio.se_play("Audio/SE/" + @se, @volume, rand(@pitch[1]-@pitch[0]) + @pitch[0])
end
@key_timer += 1
wait_for_one_character
end
end

class Scene_Map
attr_accessor :message_window
end

class Game_Interpreter
def message_set(string, value, array, freq = -1)
message_se(string)
message_volume(value)
message_pitch(array)
message_freq(freq) if freq >= 0
end
def message_freq(value)
SceneManager.scene.message_window.freq = value
end
def message_se(string)
SceneManager.scene.message_window.se = string
end
def message_pitch(array)
SceneManager.scene.message_window.pitch = array
end
def message_volume(value)
SceneManager.scene.message_window.volume = value
end
def message_reset
SceneManager.scene.message_window.reset_se_variables
end
end

Spoiler: Tuckie's Wiggle Script
=begin
______________________
< wiggly text │
│ by tuckie │
│ │
│ 7/7/17 woa lucky │
│ Version: pretty done │
│______________________│

______________
(-o-)< hi there!! │
│_____________│

__________________________________________
< │
│ uhh hi this lets you animate text〰️〰️〰️〰️ │
│ pretty cool │
│ i like credit link to my twitter │
│ @plsvotetuckie in the credit.txt │
│ or website(tell ur fans to give me $100) │
│ tuckie.zone thank you i love yuo ❤️ │
│__________________________________________│

=end

#==============================================================================
# how2use this scripty boy _ ⬜ ❎
#==============================================================================
# Triggering animations is done via tags in the message window.
#
# Simply add a \ani[0-9] to pick the animation you want, and all text after will
# be animated. If a new text box appears the animation will stop. You can
# manually end animation with a \stop or \ani[7].
#
#-R/-\|NB0\^/-------------------------------------------------------------------
# Much like an animation, you can turn on a rainbow effect with \ran . You can
# turn off the rainbow and animation with \off but \bln will turn off only the
# rainbow effect.
#
#==============================================================================

#==============================================================================
# ** SETTINGS | hi im tuckie please tell your players i made this _ ⬜ ❎
#==============================================================================

module WiggleText

# Characters 'drop in' when first drawn.
DROP_IN = false
# Height from where characters drop.
DROP_HEIGHT = 8

# Enable or disable hitting a button to skip drawing characters one-by-one.
# true means players can skip, false means they can't.
SKIP_CHAR = false

# do /nam[number] to make a nametag box with that specific name
NAMES = [
"that guy", #0
"that other guy", #1
"a jerk", #2 etc
]
#the filename of the background for the nametag sprite, place in Graphics/System
NAME_SPRITE = "Nametag"

# creature comfort feature: If you have a bunch of text codes (nametag, color
# sound effect, etc) that you need to have at the start of a message make them
# on line one, and use the text code \lin . this will "reset" the text height
# so line two is higher up. adjust the height to fit your font with this
# variable. Measurement in pixels.
LINE_HEIGHT = 16
end

#==============================================================================
# ** Sprite_TextAnim _ ⬜ ❎
#------------------------------------------------------------------------------
# Sprite subclass for text animations.
#==============================================================================

class Sprite_TextAnim < Sprite

attr_accessor :anim_offset
attr_accessor :anim_type
attr_accessor :rainbow
attr_accessor :rainbow_offset
attr_accessor :drop
@timer = false
attr_accessor :galv_ani

def drop()
if WiggleText:😀ROP_IN
@drop -= @drop * 0.1
if @drop < 0
@drop = 0
end
return @drop
else
return 0
end
end

def ani
@galv_ani += 0.015
end

def update
return unless @anim_offset

if @Rainbow
@rainbow_offset += 0.03
self.color = Color.new(128 + Math.sin(@rainbow_offset) * 127,
128 + Math.sin(@rainbow_offset + 2*Math:😛I/3) * 127,
128 + Math.sin(@rainbow_offset + 4*Math:😛I/3) * 127,
255)
end
case @anim_type
when 1
@anim_offset += 0.115
self.oy = Math.sin(@anim_offset) * 3 + drop()
ani()
when 2
@anim_offset += 0.2
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -3 + drop()
ani()
when 3
@anim_offset += 0.15
self.zoom_x = 1 + Math.sin(@anim_offset) * 0.2
self.zoom_y = 1 + Math.cos(@anim_offset) * 0.2
self.oy = drop()
ani()
when 4
@anim_offset += 1
rand = 0
if @anim_offset % 8 == 0
rand = 4
self.ox = rand(rand) - rand(rand)
self.oy = rand(rand) - rand(rand) + drop()
end
ani()
when 5
@anim_offset += 0.1
sample = Math.sin(@anim_offset) * 5
self.oy = sample.abs + drop()
ani()
when 6
@anim_offset += 0.1
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -2 + drop()
self.angle = Math.sin(@anim_offset * 0.5) * 10
ani()
when 7
#no animation
self.oy = drop()
ani()
when 8
@anim_offset += 0.1
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -2 + drop()
self.angle = Math.sin(@anim_offset) * 10
when 9
@anim_offset += 0.15
self.zoom_x = 2
self.zoom_y = 2
self.oy = Math.sin(@anim_offset / 2) * -4 + drop()
when 10
@anim_offset += 0.085
self.oy = Math.sin(@anim_offset / 2) * 3 + drop() + 2
else
return
end
end

end

#==============================================================================
# ** Window_Message _ ⬜ ❎
#------------------------------------------------------------------------------
# This message window is used to display text.
#==============================================================================

class Window_Message < Window_Base

#--------------------------------------------------------------------------
# * Window_Message Creation | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_initialize initialize
def initialize
tuckie_wiggly_initialize
@animchars = []
@Rainbow = false
@anim_offset = 0
end

#--------------------------------------------------------------------------
# * Normal Character Processing | Overwrite
#--------------------------------------------------------------------------
def process_normal_character(c, pos)
if @anim_type && @anim_type > 0
process_anim_character(c, pos)
else
if WiggleText:😀ROP_IN
@anim_type = 7
process_anim_character(c, pos)
else
super
end
end
wait_for_one_character
end
#--------------------------------------------------------------------------
# * Animated Character Processing | New Method
#--------------------------------------------------------------------------
def process_anim_character(c, pos)
text_width = text_size(c).width
if defined? Graphics.fullscreen #MKXP fix
text_width += text_width * 0.6
text_width = text_width.round
end
letter = Sprite_TextAnim.new(self.viewport)
bitmap = Bitmap.new(text_width, pos[:height])
bitmap.font = self.contents.font
letter.bitmap = bitmap
letter.x = pos[:x] + self.standard_padding + 9
letter.y += WiggleText:😀ROP_HEIGHT if WiggleText:😀ROP_IN
letter.y = self.y + standard_padding + pos[:y]
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = @anim_type
tuckie_extra(letter)
letter.update
bitmap.draw_text(0, 0, text_width+2, pos[:height], c)
@animchars.push(letter)
pos[:x] += text_width
end
#--------------------------------------------------------------------------
# * Name Menu Processing | New Method
#--------------------------------------------------------------------------
def process_name(c, pos)
c = WiggleText::NAMES[c]
text_width = text_size(c).width
if defined? Graphics.fullscreen #MKXP fix
text_width += text_width * 0.6
text_width = text_width.round
end

letter = Sprite_TextAnim.new(self.viewport)
bitmap = Bitmap.new(text_width + 4, 20)
letter.bitmap = bitmap
bitmap.font = self.contents.font
letter.x = 23
letter.y = self.y + 2
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = 10 #@anim_type
tuckie_extra(letter)
letter.update
bitmap.draw_text(0, 0, 10, 16, c)

tag = Sprite_TextAnim.new(self.viewport)
tag.bitmap = Cache.system(WiggleText::NAME_SPRITE)
tag.x = 14
tag.y = self.y - 8
tag.z = self.z + 9
tag.anim_offset = @animchars.size
tag.anim_type = 10
tuckie_extra(tag)
tag.drop = 0
tag.update

@animchars.push(tag)
@animchars.push(letter)
end
#--------------------------------------------------------------------------
# * Animated Emoji Processing | New Method
#--------------------------------------------------------------------------
def process_anim_emoji(c, pos)
text_width = 24
letter = Sprite_TextAnim.new(self.viewport)
icon_bitmap = Cache.system("Emoji")
bitmap = Bitmap.new(24, pos[:height])
rect = Rect.new(c % 16 * 24, c / 16 * 24, 24, 24)
bitmap.blt(0, 0, icon_bitmap, rect)
letter.bitmap = bitmap
letter.x = pos[:x] + self.standard_padding + 9
letter.y += WiggleText:😀ROP_HEIGHT if WiggleText:😀ROP_IN
letter.y = self.y + standard_padding + pos[:y]
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = @anim_type
tuckie_extra(letter)
letter.update
#bitmap.draw_text(0, 0, text_width * 2, pos[:height], c)
@animchars.push(letter)
pos[:x] += text_width
end
#--------------------------------------------------------------------------
# * Animated Character Extra Conditions | New Method
#--------------------------------------------------------------------------
def tuckie_extra(letter)
if WiggleText:😀ROP_IN
letter.drop = WiggleText:😀ROP_HEIGHT
else
letter.drop = 0
end
if @anim_type == 5
letter.anim_offset = 0
end
letter.galv_ani = get_galvani
if @Rainbow
letter.rainbow = true
letter.rainbow_offset = @animchars.size * 0.5
end
end
#--------------------------------------------------------------------------
# * Control Character Processing | Alias
# code : the core of the control character
# e.g. "C" in the case of the control character \C[1].
#--------------------------------------------------------------------------
alias tuckie_wiggly_process_escape_character process_escape_character
def process_escape_character(code, text, pos)
case code.upcase
when 'ANI' # Text Animation (by number)
@anim_type = obtain_escape_param(text)
when 'OFF' # No Text Animation
@anim_type = 7 if WiggleText:😀ROP_IN
@Rainbow = false
when 'WAV' # Wave animation
@anim_type = 1
when 'SHK' # Shake Screen
$game_map.screen.start_shake(obtain_escape_param(text), 15, 10)
when 'RAN'
@Rainbow = true
when 'BLN'
@Rainbow = false
when 'MOJ'
process_anim_emoji(obtain_escape_param(text), pos)
when 'NAM'
process_name(obtain_escape_param(text), pos)
when 'LIN'
pos[:y] -= WiggleText::LINE_HEIGHT
end
tuckie_wiggly_process_escape_character(code, text, pos)
end
#--------------------------------------------------------------------------
# * Close Window and Wait for It to Fully Close | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_close_wait close_and_wait
def close_and_wait
dispose_text_animation()
tuckie_wiggly_close_wait()
end
#--------------------------------------------------------------------------
# * Close Window and Wait for It to Fully Close | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_dispose dispose
def dispose
dispose_text_animation()
tuckie_wiggly_dispose()
end
#--------------------------------------------------------------------------
# * New Page | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_new_page new_page
def new_page(*args)
dispose_text_animation()
tuckie_wiggly_new_page(*args)
end
#--------------------------------------------------------------------------
# * Free animated text | New Method
#--------------------------------------------------------------------------
def dispose_text_animation
@animchars.each do |letter|
letter.dispose
end
@animchars = []
@anim_type = 7
end
#--------------------------------------------------------------------------
# * Update Fast Forward Flag | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggle_update_show_fast update_show_fast
def update_show_fast
tuckie_wiggle_update_show_fast()
@show_fast = false if !WiggleText::SKIP_CHAR
end
#--------------------------------------------------------------------------
# * Galv Animated Textbox | Alias
#--------------------------------------------------------------------------
def get_galvani # new method
return @anim_offset
end

def tuckie_update # new method
@anim_offset += 0.015
end

#--------------------------------------------------------------------------
# * Window Update | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_update_base update
def update
tuckie_update
update_text_animation()
tuckie_wiggly_update_base()
end
#--------------------------------------------------------------------------
# * Text Animation Processing | New Method
#--------------------------------------------------------------------------
def update_text_animation()
unless @animchars.empty?
@animchars.each do |letter|
letter.update
end
end
end

end
# end of script 🙂 have a nice one thankz for looking

If this is successful I will edit comments myself to include the proper credits for both of the authors of these scripts (along with whoever manages to do this), so don't worry about messing with those, I just need these two to work together somehow if it's possible.
For kiggles here is a version that my friend used to attempt to combine them. This does not play the audio, but it doesn't immediately crash the game or crash the game when you speak to a character:
Spoiler: Failed Combination Script
=begin
______________________
< wiggly text │
│ by tuckie │
│ │
│ 7/7/17 woa lucky │
│ Version: pretty done │
│______________________│

______________
(-o-)< hi there!! │
│_____________│

__________________________________________
< │
│ uhh hi this lets you animate text〰️〰️〰️〰️ │
│ pretty cool │
│ i like credit link to my twitter │
│ @plsvotetuckie in the credit.txt │
│ or website(tell ur fans to give me $100) │
│ tuckie.zone thank you i love yuo ❤️ │
│__________________________________________│

=end

#Basic Message SE v1.1
#----------#
#Features: Let's you have a sound effect play every so-so letters while a
# message is being displayed. Fancy!
#
#Usage: Plug and play, script calls to change details in game:
#
# message_freq(value) - changes the frequency of the se
# message_se("string") - name of the se to play
# message_volume(value) - volume of the se to play
# message_pitch([min,max]) - pitch variance between min and max
# message_set(se,volume,pitch) - sets them all at once
# message_set(se,volume,pitch,freq) - same as above but with freq
#
#----------#
#-- Script by: V.M of D.T
#
#- Questions or comments can be:
# given by email: [email hidden]
# provided on facebook: http://www.facebook.com/DaimoniousTailsGames
# All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
#
#- Free to use in any project with credit given, donations always welcome!


#==============================================================================
# how2use this scripty boy _ ⬜ ❎
#==============================================================================
# Triggering animations is done via tags in the message window.
#
# Simply add a \ani[0-9] to pick the animation you want, and all text after will
# be animated. If a new text box appears the animation will stop. You can
# manually end animation with a \stop or \ani[7].
#
#-R/-\|NB0\^/-------------------------------------------------------------------
# Much like an animation, you can turn on a rainbow effect with \ran . You can
# turn off the rainbow and animation with \off but \bln will turn off only the
# rainbow effect.
#
#==============================================================================

#==============================================================================
# ** SETTINGS | hi im tuckie please tell your players i made this _ ⬜ ❎
#==============================================================================

module WiggleText

# Characters 'drop in' when first drawn.
DROP_IN = false
# Height from where characters drop.
DROP_HEIGHT = 8

# Enable or disable hitting a button to skip drawing characters one-by-one.
# true means players can skip, false means they can't.
SKIP_CHAR = false

# do /nam[number] to make a nametag box with that specific name
NAMES = [
"that guy", #0
"that other guy", #1
"a jerk", #2 etc
]
#the filename of the background for the nametag sprite, place in Graphics/System
NAME_SPRITE = "Nametag"

# creature comfort feature: If you have a bunch of text codes (nametag, color
# sound effect, etc) that you need to have at the start of a message make them
# on line one, and use the text code \lin . this will "reset" the text height
# so line two is higher up. adjust the height to fit your font with this
# variable. Measurement in pixels.
LINE_HEIGHT = 16
end

#==============================================================================
# ** Sprite_TextAnim _ ⬜ ❎
#------------------------------------------------------------------------------
# Sprite subclass for text animations.
#==============================================================================

class Sprite_TextAnim < Sprite

attr_accessor :anim_offset
attr_accessor :anim_type
attr_accessor :rainbow
attr_accessor :rainbow_offset
attr_accessor :drop
@timer = false
attr_accessor :galv_ani

def drop()
if WiggleText:😀ROP_IN
@drop -= @drop * 0.1
if @drop < 0
@drop = 0
end
return @drop
else
return 0
end
end

def ani
@galv_ani += 0.015
end

def update
return unless @anim_offset

if @Rainbow
@rainbow_offset += 0.03
self.color = Color.new(128 + Math.sin(@rainbow_offset) * 127,
128 + Math.sin(@rainbow_offset + 2*Math:😛I/3) * 127,
128 + Math.sin(@rainbow_offset + 4*Math:😛I/3) * 127,
255)
end
case @anim_type
when 1
@anim_offset += 0.115
self.oy = Math.sin(@anim_offset) * 3 + drop()
ani()
when 2
@anim_offset += 0.2
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -3 + drop()
ani()
when 3
@anim_offset += 0.15
self.zoom_x = 1 + Math.sin(@anim_offset) * 0.2
self.zoom_y = 1 + Math.cos(@anim_offset) * 0.2
self.oy = drop()
ani()
when 4
@anim_offset += 1
rand = 0
if @anim_offset % 8 == 0
rand = 4
self.ox = rand(rand) - rand(rand)
self.oy = rand(rand) - rand(rand) + drop()
end
ani()
when 5
@anim_offset += 0.1
sample = Math.sin(@anim_offset) * 5
self.oy = sample.abs + drop()
ani()
when 6
@anim_offset += 0.1
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -2 + drop()
self.angle = Math.sin(@anim_offset * 0.5) * 10
ani()
when 7
#no animation
self.oy = drop()
ani()
when 8
@anim_offset += 0.1
self.ox = Math.sin(@anim_offset) * 3
self.oy = Math.cos(@anim_offset) * -2 + drop()
self.angle = Math.sin(@anim_offset) * 10
when 9
@anim_offset += 0.15
self.zoom_x = 2
self.zoom_y = 2
self.oy = Math.sin(@anim_offset / 2) * -4 + drop()
when 10
@anim_offset += 0.085
self.oy = Math.sin(@anim_offset / 2) * 3 + drop() + 2
else
return
end
end

end

class Scene_Map
attr_accessor :message_window
end

class Game_Interpreter

def message_set(string, value, array, freq = -1)
message_se(string)
message_volume(value)
message_pitch(array)
message_freq(freq) if freq >= 0
end
def message_freq(value)
SceneManager.scene.message_window.freq = value
end
def message_se(string)
SceneManager.scene.message_window.se = string
end
def message_pitch(array)
SceneManager.scene.message_window.pitch = array
end
def message_volume(value)
SceneManager.scene.message_window.volume = value
end
def message_reset
SceneManager.scene.message_window.reset_se_variables
end

end

#==============================================================================
# ** Window_Message _ ⬜ ❎
#------------------------------------------------------------------------------
# This message window is used to display text.
#==============================================================================

class Window_Message < Window_Base

DEFAULT_SE_FREQ = 4
DEFAULT_AUDIO_SOUND = "Cursor1"
DEFAULT_AUDIO_VOLUME = 100
DEFAULT_AUDIO_PITCH = [100,100]

DISABLE_SOUND_SWITCH = 50

attr_accessor :se
attr_accessor :freq
attr_accessor :volume
attr_accessor 😛itch

alias mse_clear_instance_variables clear_instance_variables
def clear_instance_variables
mse_clear_instance_variables
@key_timer = 0
reset_se_variables
end
def reset_se_variables
@se = DEFAULT_AUDIO_SOUND
@volume = DEFAULT_AUDIO_VOLUME
@pitch = DEFAULT_AUDIO_PITCH
@freq = DEFAULT_SE_FREQ
end
def process_normal_character(c, pos)
super
if !$game_options.nil?
return wait_for_one_character unless $game_options.message_se
end
return wait_for_one_character if $game_switches[DISABLE_SOUND_SWITCH]
if @key_timer % @freq == 0
Audio.se_play("Audio/SE/" + @se, @volume, rand(@pitch[1]-@pitch[0]) + @pitch[0])
end
@key_timer += 1
wait_for_one_character
end

#--------------------------------------------------------------------------
# * Window_Message Creation | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_initialize initialize
def initialize
tuckie_wiggly_initialize
@animchars = []
@Rainbow = false
@anim_offset = 0
end

#--------------------------------------------------------------------------
# * Normal Character Processing | Overwrite
#--------------------------------------------------------------------------
def process_normal_character(c, pos)
if @anim_type && @anim_type > 0
process_anim_character(c, pos)
else
if WiggleText:😀ROP_IN
@anim_type = 7
process_anim_character(c, pos)
else
super
end
end
wait_for_one_character
end

#--------------------------------------------------------------------------
# * Animated Character Processing | New Method
#--------------------------------------------------------------------------
def process_anim_character(c, pos)
text_width = text_size(c).width
if defined? Graphics.fullscreen #MKXP fix
text_width += text_width * 0.6
text_width = text_width.round
end
letter = Sprite_TextAnim.new(self.viewport)
bitmap = Bitmap.new(text_width, pos[:height])
bitmap.font = self.contents.font
letter.bitmap = bitmap
letter.x = pos[:x] + self.standard_padding + 9
letter.y += WiggleText:😀ROP_HEIGHT if WiggleText:😀ROP_IN
letter.y = self.y + standard_padding + pos[:y]
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = @anim_type
tuckie_extra(letter)
letter.update
bitmap.draw_text(0, 0, text_width+2, pos[:height], c)
@animchars.push(letter)
pos[:x] += text_width
end
#--------------------------------------------------------------------------
# * Name Menu Processing | New Method
#--------------------------------------------------------------------------
def process_name(c, pos)
c = WiggleText::NAMES[c]
text_width = text_size(c).width
if defined? Graphics.fullscreen #MKXP fix
text_width += text_width * 0.6
text_width = text_width.round
end

letter = Sprite_TextAnim.new(self.viewport)
bitmap = Bitmap.new(text_width + 4, 20)
letter.bitmap = bitmap
bitmap.font = self.contents.font
letter.x = 23
letter.y = self.y + 2
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = 10 #@anim_type
tuckie_extra(letter)
letter.update
bitmap.draw_text(0, 0, 10, 16, c)

tag = Sprite_TextAnim.new(self.viewport)
tag.bitmap = Cache.system(WiggleText::NAME_SPRITE)
tag.x = 14
tag.y = self.y - 8
tag.z = self.z + 9
tag.anim_offset = @animchars.size
tag.anim_type = 10
tuckie_extra(tag)
tag.drop = 0
tag.update

@animchars.push(tag)
@animchars.push(letter)
end
#--------------------------------------------------------------------------
# * Animated Emoji Processing | New Method
#--------------------------------------------------------------------------
def process_anim_emoji(c, pos)
text_width = 24
letter = Sprite_TextAnim.new(self.viewport)
icon_bitmap = Cache.system("Emoji")
bitmap = Bitmap.new(24, pos[:height])
rect = Rect.new(c % 16 * 24, c / 16 * 24, 24, 24)
bitmap.blt(0, 0, icon_bitmap, rect)
letter.bitmap = bitmap
letter.x = pos[:x] + self.standard_padding + 9
letter.y += WiggleText:😀ROP_HEIGHT if WiggleText:😀ROP_IN
letter.y = self.y + standard_padding + pos[:y]
letter.z = self.z + 10
letter.anim_offset = @animchars.size
letter.anim_type = @anim_type
tuckie_extra(letter)
letter.update
#bitmap.draw_text(0, 0, text_width * 2, pos[:height], c)
@animchars.push(letter)
pos[:x] += text_width
end
#--------------------------------------------------------------------------
# * Animated Character Extra Conditions | New Method
#--------------------------------------------------------------------------
def tuckie_extra(letter)
if WiggleText:😀ROP_IN
letter.drop = WiggleText:😀ROP_HEIGHT
else
letter.drop = 0
end
if @anim_type == 5
letter.anim_offset = 0
end
letter.galv_ani = get_galvani
if @Rainbow
letter.rainbow = true
letter.rainbow_offset = @animchars.size * 0.5
end
end
#--------------------------------------------------------------------------
# * Control Character Processing | Alias
# code : the core of the control character
# e.g. "C" in the case of the control character \C[1].
#--------------------------------------------------------------------------
alias tuckie_wiggly_process_escape_character process_escape_character
def process_escape_character(code, text, pos)
case code.upcase
when 'ANI' # Text Animation (by number)
@anim_type = obtain_escape_param(text)
when 'OFF' # No Text Animation
@anim_type = 7 if WiggleText:😀ROP_IN
@Rainbow = false
when 'WAV' # Wave animation
@anim_type = 1
when 'SHK' # Shake Screen
$game_map.screen.start_shake(obtain_escape_param(text), 15, 10)
when 'RAN'
@Rainbow = true
when 'BLN'
@Rainbow = false
when 'MOJ'
process_anim_emoji(obtain_escape_param(text), pos)
when 'NAM'
process_name(obtain_escape_param(text), pos)
when 'LIN'
pos[:y] -= WiggleText::LINE_HEIGHT
end
tuckie_wiggly_process_escape_character(code, text, pos)
end
#--------------------------------------------------------------------------
# * Close Window and Wait for It to Fully Close | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_close_wait close_and_wait
def close_and_wait
dispose_text_animation()
tuckie_wiggly_close_wait()
end
#--------------------------------------------------------------------------
# * Close Window and Wait for It to Fully Close | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_dispose dispose
def dispose
dispose_text_animation()
tuckie_wiggly_dispose()
end
#--------------------------------------------------------------------------
# * New Page | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_new_page new_page
def new_page(*args)
dispose_text_animation()
tuckie_wiggly_new_page(*args)
end
#--------------------------------------------------------------------------
# * Free animated text | New Method
#--------------------------------------------------------------------------
def dispose_text_animation
@animchars.each do |letter|
letter.dispose
end
@animchars = []
@anim_type = 7
end
#--------------------------------------------------------------------------
# * Update Fast Forward Flag | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggle_update_show_fast update_show_fast
def update_show_fast
tuckie_wiggle_update_show_fast()
@show_fast = false if !WiggleText::SKIP_CHAR
end
#--------------------------------------------------------------------------
# * Galv Animated Textbox | Alias
#--------------------------------------------------------------------------
def get_galvani # new method
return @anim_offset
end

def tuckie_update # new method
@anim_offset += 0.015
end

#--------------------------------------------------------------------------
# * Window Update | Alias
#--------------------------------------------------------------------------
alias tuckie_wiggly_update_base update
def update
tuckie_update
update_text_animation()
tuckie_wiggly_update_base()
end
#--------------------------------------------------------------------------
# * Text Animation Processing | New Method
#--------------------------------------------------------------------------
def update_text_animation()
unless @animchars.empty?
@animchars.each do |letter|
letter.update
end
end
end

end

# end of script 🙂 have a nice one thankz for looking
If any extra commands need to be added please also check with me on that, currently either of these scripts work well with the mass of other scripts I have and extra commands may already exist.


Hope that was the right information and someone is able to do this!
If you provide the link to both scripts, not copy-paste it here (because the formatting is broken), I could take a look.
If you provide the link to both scripts, not copy-paste it here (because the formatting is broken), I could take a look.

Oh shoot, didn't realize it would break. Discovered the code button, hopefully this one works this time... 🤣


I can't remember where Vlue's came from so hopefully it works here:

Code:
#Basic Message SE v1.1
#----------#
#Features: Let's you have a sound effect play every so-so letters while a
#           message is being displayed. Fancy!
#
#Usage:    Plug and play, script calls to change details in game:
#
#           message_freq(value)      - changes the frequency of the se
#           message_se("string")     - name of the se to play
#           message_volume(value)    - volume of the se to play
#           message_pitch([min,max]) - pitch variance between min and max
#           message_set(se,volume,pitch) - sets them all at once
#           message_set(se,volume,pitch,freq) - same as above but with freq
#
#----------#
#-- Script by: V.M of D.T
#
#- Questions or comments can be:
#    given by email: [email hidden]
#    provided on facebook: http://www.facebook.com/DaimoniousTailsGames
#   All my other scripts and projects can be found here: http://daimonioustails.weebly.com/
#
#- Free to use in any project with credit given, donations always welcome!

class Window_Message < Window_Base

  DEFAULT_SE_FREQ = 4
  DEFAULT_AUDIO_SOUND = "Cursor1"
  DEFAULT_AUDIO_VOLUME = 100
  DEFAULT_AUDIO_PITCH = [100,100]

  DISABLE_SOUND_SWITCH = 50

  attr_accessor  :se
  attr_accessor  :freq
  attr_accessor  :volume
  attr_accessor  :pitch

  alias mse_clear_instance_variables clear_instance_variables
  def clear_instance_variables
    mse_clear_instance_variables
    @key_timer = 0
    reset_se_variables
  end
  def reset_se_variables
    @se = DEFAULT_AUDIO_SOUND
    @volume = DEFAULT_AUDIO_VOLUME
    @pitch = DEFAULT_AUDIO_PITCH
    @freq = DEFAULT_SE_FREQ
  end
  def process_normal_character(c, pos)
    super
    if !$game_options.nil?
      return wait_for_one_character unless $game_options.message_se
    end
    return wait_for_one_character if $game_switches[DISABLE_SOUND_SWITCH]
    if @key_timer % @freq == 0
      Audio.se_play("Audio/SE/" + @se, @volume, rand(@pitch[1]-@pitch[0]) + @pitch[0])
    end
    @key_timer += 1
    wait_for_one_character
  end
end

class Scene_Map
  attr_accessor  :message_window
end

class Game_Interpreter
  def message_set(string, value, array, freq = -1)
    message_se(string)
    message_volume(value)
    message_pitch(array)
    message_freq(freq) if freq >= 0
  end
  def message_freq(value)
    SceneManager.scene.message_window.freq = value
  end
  def message_se(string)
    SceneManager.scene.message_window.se = string
  end
  def message_pitch(array)
    SceneManager.scene.message_window.pitch = array
  end
  def message_volume(value)
    SceneManager.scene.message_window.volume = value
  end
  def message_reset
    SceneManager.scene.message_window.reset_se_variables
  end
end

The wiggle text is from and has an edit made from this thread:

Code:
=begin
______________________
<  wiggly text          │
│ by tuckie            │
│                      │
│ 7/7/17 woa lucky     │
│ Version: pretty done │
│______________________│

       ______________
(-o-)< hi there!! │
      │_____________│

__________________________________________
<                                           │
│ uhh hi this lets you animate text〰️〰️〰️〰️ │
│                  pretty cool             │
│ i like credit link to my twitter         │
│ @plsvotetuckie  in the credit.txt        │
│ or website(tell ur fans to give me $100) │
│ tuckie.zone thank you i love yuo ❤️      │
│__________________________________________│

=end

#==============================================================================
# how2use this scripty boy                                              _ ⬜ ❎
#==============================================================================
# Triggering animations is done via tags in the message window.
#
# Simply add a \ani[0-9] to pick the animation you want, and all text after will
# be animated. If a new text box appears the animation will stop. You can
# manually end animation with a \stop or \ani[7].
#
#-R/-\|NB0\^/-------------------------------------------------------------------
# Much like an animation, you can turn on a rainbow effect with \ran . You can
# turn off the rainbow and animation with \off but \bln will turn off only the
# rainbow effect.
#
#==============================================================================

#==============================================================================
# ** SETTINGS | hi im tuckie please tell your players i made this       _ ⬜ ❎
#==============================================================================

module WiggleText

  # Characters 'drop in' when first drawn.
  DROP_IN     = false
  # Height from where characters drop.
  DROP_HEIGHT = 8

  # Enable or disable hitting a button to skip drawing characters one-by-one.
  # true means players can skip, false means they can't.
  SKIP_CHAR   = false

  # do /nam[number] to make a nametag box with that specific name
  NAMES = [
      "that guy", #0
      "that other guy",   #1
      "a jerk", #2 etc
  ]
  #the filename of the background for the nametag sprite, place in Graphics/System
  NAME_SPRITE = "Nametag"

  # creature comfort feature: If you have a bunch of text codes (nametag, color
  # sound effect, etc) that you need to have at the start of a message make them
  # on line one, and use the text code \lin . this will "reset" the text height
  # so line two is higher up. adjust the height to fit your font with this
  # variable. Measurement in pixels.
  LINE_HEIGHT = 16
end

#==============================================================================
# ** Sprite_TextAnim                                                    _ ⬜ ❎
#------------------------------------------------------------------------------
#  Sprite subclass for text animations.
#==============================================================================

class Sprite_TextAnim < Sprite

  attr_accessor :anim_offset
  attr_accessor :anim_type
  attr_accessor :rainbow
  attr_accessor :rainbow_offset
  attr_accessor :drop
  @timer      = false
  attr_accessor :galv_ani

  def drop()
    if WiggleText::DROP_IN
      @drop -= @drop * 0.1
      if @drop < 0
        @drop = 0
      end
      return @drop
    else
      return 0
    end
  end

  def ani
      @galv_ani += 0.015
  end

  def update
    return unless @anim_offset

    if @rainbow
      @rainbow_offset += 0.03
      self.color = Color.new(128 + Math.sin(@rainbow_offset) * 127,
        128 + Math.sin(@rainbow_offset + 2*Math::PI/3) * 127,
        128 + Math.sin(@rainbow_offset + 4*Math::PI/3) * 127,
        255)
    end
    case @anim_type
      when 1
        @anim_offset += 0.115
        self.oy = Math.sin(@anim_offset) * 3 + drop()
        ani()
      when 2
        @anim_offset += 0.2
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -3 + drop()
        ani()
      when 3
        @anim_offset += 0.15
        self.zoom_x = 1 + Math.sin(@anim_offset) * 0.2
        self.zoom_y = 1 + Math.cos(@anim_offset) * 0.2
        self.oy = drop()
        ani()
      when 4
        @anim_offset += 1
        rand = 0
        if @anim_offset % 8 == 0
          rand = 4
          self.ox = rand(rand) - rand(rand)
          self.oy = rand(rand) - rand(rand) + drop()
        end
        ani()
      when 5
        @anim_offset += 0.1
        sample  = Math.sin(@anim_offset) * 5
        self.oy = sample.abs + drop()
        ani()
      when 6
        @anim_offset += 0.1
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -2 + drop()
        self.angle = Math.sin(@anim_offset * 0.5) * 10
        ani()
      when 7
        #no animation
        self.oy = drop()
        ani()
      when 8
        @anim_offset += 0.1
        self.ox = Math.sin(@anim_offset) * 3
        self.oy = Math.cos(@anim_offset) * -2 + drop()
        self.angle = Math.sin(@anim_offset) * 10
      when 9
        @anim_offset += 0.15
        self.zoom_x = 2
        self.zoom_y = 2
        self.oy = Math.sin(@anim_offset / 2) * -4 + drop()
      when 10
        @anim_offset += 0.085
        self.oy = Math.sin(@anim_offset / 2) * 3 + drop() + 2
      else
        return
    end
  end

end

#==============================================================================
# ** Window_Message                                                     _ ⬜ ❎
#------------------------------------------------------------------------------
#  This message window is used to display text.
#==============================================================================

class Window_Message < Window_Base

  #--------------------------------------------------------------------------
  # * Window_Message Creation | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_initialize initialize
  def initialize
    tuckie_wiggly_initialize
    @animchars = []
    @rainbow = false
    @anim_offset = 0
  end

  #--------------------------------------------------------------------------
  # * Normal Character Processing | Overwrite
  #--------------------------------------------------------------------------
  def process_normal_character(c, pos)
    if @anim_type && @anim_type > 0
      process_anim_character(c, pos)
    else
      if WiggleText::DROP_IN
        @anim_type = 7
        process_anim_character(c, pos)
      else
        super
      end
    end
    wait_for_one_character
  end
  #--------------------------------------------------------------------------
  # * Animated Character Processing | New Method
  #--------------------------------------------------------------------------
  def process_anim_character(c, pos)
    text_width = text_size(c).width
    if defined? Graphics.fullscreen #MKXP fix
      text_width += text_width * 0.6
      text_width = text_width.round
    end
    letter = Sprite_TextAnim.new(self.viewport)
    bitmap = Bitmap.new(text_width, pos[:height])
    bitmap.font = self.contents.font
    letter.bitmap = bitmap
    letter.x = pos[:x] + self.standard_padding + 9
    letter.y += WiggleText::DROP_HEIGHT if WiggleText::DROP_IN
    letter.y = self.y + standard_padding + pos[:y]
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = @anim_type
    tuckie_extra(letter)
    letter.update
    bitmap.draw_text(0, 0, text_width+2, pos[:height], c)
    @animchars.push(letter)
    pos[:x] += text_width
  end
  #--------------------------------------------------------------------------
  # * Name Menu Processing | New Method
  #--------------------------------------------------------------------------
  def process_name(c, pos)
    c = WiggleText::NAMES[c]
    text_width = text_size(c).width
    if defined? Graphics.fullscreen #MKXP fix
      text_width += text_width * 0.6
      text_width = text_width.round
    end

    letter = Sprite_TextAnim.new(self.viewport)
    bitmap = Bitmap.new(text_width + 4, 20)
    letter.bitmap = bitmap
    bitmap.font = self.contents.font
    letter.x = 23
    letter.y = self.y  + 2
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = 10 #@anim_type
    tuckie_extra(letter)
    letter.update
    bitmap.draw_text(0, 0, 10, 16, c)

    tag = Sprite_TextAnim.new(self.viewport)
    tag.bitmap = Cache.system(WiggleText::NAME_SPRITE)
    tag.x = 14
    tag.y = self.y - 8
    tag.z = self.z + 9
    tag.anim_offset = @animchars.size
    tag.anim_type = 10
    tuckie_extra(tag)
    tag.drop = 0
    tag.update

    @animchars.push(tag)
    @animchars.push(letter)
  end
  #--------------------------------------------------------------------------
  # * Animated Emoji Processing | New Method
  #--------------------------------------------------------------------------
  def process_anim_emoji(c, pos)
    text_width = 24
    letter = Sprite_TextAnim.new(self.viewport)
    icon_bitmap = Cache.system("Emoji")
    bitmap = Bitmap.new(24, pos[:height])
    rect = Rect.new(c % 16 * 24, c / 16 * 24, 24, 24)
    bitmap.blt(0, 0, icon_bitmap, rect)
    letter.bitmap = bitmap
    letter.x = pos[:x] + self.standard_padding + 9
    letter.y += WiggleText::DROP_HEIGHT if WiggleText::DROP_IN
    letter.y = self.y + standard_padding + pos[:y]
    letter.z = self.z + 10
    letter.anim_offset = @animchars.size
    letter.anim_type = @anim_type
    tuckie_extra(letter)
    letter.update
    #bitmap.draw_text(0, 0, text_width * 2, pos[:height], c)
    @animchars.push(letter)
    pos[:x] += text_width
  end
  #--------------------------------------------------------------------------
  # * Animated Character Extra Conditions | New Method
  #--------------------------------------------------------------------------
  def tuckie_extra(letter)
    if WiggleText::DROP_IN
      letter.drop = WiggleText::DROP_HEIGHT
    else
      letter.drop = 0
    end
    if @anim_type == 5
      letter.anim_offset = 0
    end
    letter.galv_ani = get_galvani
    if @rainbow
      letter.rainbow = true
      letter.rainbow_offset = @animchars.size * 0.5
    end
  end
  #--------------------------------------------------------------------------
  # * Control Character Processing | Alias
  #     code : the core of the control character
  #            e.g. "C" in the case of the control character \C[1].
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_process_escape_character process_escape_character
  def process_escape_character(code, text, pos)
    case code.upcase
    when 'ANI' # Text Animation (by number)
      @anim_type = obtain_escape_param(text)
    when 'OFF' # No Text Animation
      @anim_type = 7 if WiggleText::DROP_IN
      @rainbow = false
    when 'WAV' # Wave animation
      @anim_type = 1
    when 'SHK' # Shake Screen
      $game_map.screen.start_shake(obtain_escape_param(text), 15, 10)
    when 'RAN'
      @rainbow = true
    when 'BLN'
      @rainbow = false
    when 'MOJ'
      process_anim_emoji(obtain_escape_param(text), pos)
    when 'NAM'
      process_name(obtain_escape_param(text), pos)
    when 'LIN'
      pos[:y] -= WiggleText::LINE_HEIGHT
    end
    tuckie_wiggly_process_escape_character(code, text, pos)
  end
  #--------------------------------------------------------------------------
  # * Close Window and Wait for It to Fully Close | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_close_wait close_and_wait
  def close_and_wait
    dispose_text_animation()
    tuckie_wiggly_close_wait()
  end
  #--------------------------------------------------------------------------
  # * Close Window and Wait for It to Fully Close | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_dispose dispose
  def dispose
    dispose_text_animation()
    tuckie_wiggly_dispose()
  end
  #--------------------------------------------------------------------------
  # * New Page | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_new_page new_page
  def new_page(*args)
    dispose_text_animation()
    tuckie_wiggly_new_page(*args)
  end
  #--------------------------------------------------------------------------
  # * Free animated text | New Method
  #--------------------------------------------------------------------------
  def dispose_text_animation
    @animchars.each do |letter|
      letter.dispose
    end
    @animchars = []
    @anim_type = 7
  end
  #--------------------------------------------------------------------------
  # * Update Fast Forward Flag | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggle_update_show_fast update_show_fast
  def update_show_fast
    tuckie_wiggle_update_show_fast()
    @show_fast = false if !WiggleText::SKIP_CHAR
  end
  #--------------------------------------------------------------------------
  # * Galv Animated Textbox | Alias
  #--------------------------------------------------------------------------
  def get_galvani # new method
    return @anim_offset
  end

  def tuckie_update # new method
    @anim_offset += 0.015
  end

  #--------------------------------------------------------------------------
  # * Window Update | Alias
  #--------------------------------------------------------------------------
  alias tuckie_wiggly_update_base update
  def update
    tuckie_update
    update_text_animation()
    tuckie_wiggly_update_base()
  end
  #--------------------------------------------------------------------------
  # * Text Animation Processing | New Method
  #--------------------------------------------------------------------------
  def update_text_animation()
    unless @animchars.empty?
      @animchars.each do |letter|
        letter.update
      end
    end
  end

end
# end of script :) have a nice one thankz for looking

Also Theo, I'm using your "Notifs" script as well so you'll be getting your free copy when this is done (I'm planning on doing that for all authors of scripts I've used because it only makes sense), where would I send that to?
Code:
class Window_Message
  def play_msgse
    return if $game_switches[DISABLE_SOUND_SWITCH]
    if @key_timer % @freq == 0
      Audio.se_play("Audio/SE/" + @se, @volume, rand(@pitch[1]-@pitch[0]) + 
        @pitch[0])
    end
    @key_timer += 1
  end
  
  def process_normal_character(c, pos)
    if @anim_type && @anim_type > 0
      process_anim_character(c, pos)
    else
      if WiggleText::DROP_IN
        @anim_type = 7
        process_anim_character(c, pos)
      else
        super
        if !$game_options.nil?
          return wait_for_one_character unless $game_options.message_se
        end
        play_msgse
      end
    end
    wait_for_one_character
  end
  
  alias vluepatch_msgse process_anim_character
  def process_anim_character(c, pos)
    vluepatch_msgse(c, pos)
    if !$game_options.nil?
      return unless $game_options.message_se
    end
    play_msgse
  end
  
end
Put this below both scripts. No need to merge or edit either of them. Leave it as is.
Of course, I haven't tested this.

where would I send that to?
DM or Discord would be alright.
It WOOOORKS thank you so much you are a Godsend!
I'll make sure to get it to you when it's done and tested, thanks again!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/vxa-script-merging-assistance.134858/