Stegan

Villager
Member
Joined
Nov 21, 2020
Messages
22
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Hello, I'm trying out the Victor Engine - Step Sound script for my game. It works perfectly but I feel that the sounds from my enemies are too loud. If my player walks around on a map and an enemy is 10 or 15 blocks away from him it sounds like he's walking right beside him. Is there any way to decrease the range in which the player starts hearing the enemy events?

Thank you.

- Steve

 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
16,154
Reaction score
8,938
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Thank you.

 

Chiispiitas

[Insert Title]
Veteran
Joined
Apr 20, 2020
Messages
32
Reaction score
14
First Language
Spanish
Primarily Uses
RMVXA
Paste this add-on as a separate script below Victor's Step Sound script:

Ruby:
#===============================================================================
# Victor Engine - Step Sound | Hearing Distance Add-on
#-------------------------------------------------------------------------------
# Made by: Chiispiitas
#===============================================================================
#===============================================================================
# Instructions:
#-------------------------------------------------------------------------------
# Lets you change the distance from which you can hear event/followers steps.
# The default value is 20. You may not use negative values for obvious reasons.
#===============================================================================
class Game_CharacterBase
#===============================================================================
# Configuration:
#-------------------------------------------------------------------------------
  HEARING_DISTANCE = 20
#-------------------------------------------------------------------------------
#===============================================================================
 
  def step_volume
    sx = distance_x_from($game_player.x).abs
    sy = distance_y_from($game_player.y).abs
    [[(100 - (sx + sy) * (100 / HEARING_DISTANCE)), 0].max, 100].min / 100.0
  end
 
end

Change the HEARING_DISTANCE variable to your liking. I hope it helps you!
 

Stegan

Villager
Member
Joined
Nov 21, 2020
Messages
22
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Paste this add-on as a separate script below Victor's Step Sound script:

Ruby:
#===============================================================================
# Victor Engine - Step Sound | Hearing Distance Add-on
#-------------------------------------------------------------------------------
# Made by: Chiispiitas
#===============================================================================
#===============================================================================
# Instructions:
#-------------------------------------------------------------------------------
# Lets you change the distance from which you can hear event/followers steps.
# The default value is 20. You may not use negative values for obvious reasons.
#===============================================================================
class Game_CharacterBase
#===============================================================================
# Configuration:
#-------------------------------------------------------------------------------
  HEARING_DISTANCE = 20
#-------------------------------------------------------------------------------
#===============================================================================
 
  def step_volume
    sx = distance_x_from($game_player.x).abs
    sy = distance_y_from($game_player.y).abs
    [[(100 - (sx + sy) * (100 / HEARING_DISTANCE)), 0].max, 100].min / 100.0
  end
 
end

Change the HEARING_DISTANCE variable to your liking. I hope it helps you!
Thank you so much. I will try it out now :)
 

Latest Threads

Latest Profile Posts

Woot got a promotion and a pay rise ᕙ( • ‿ • )ᕗ now I'm set.
does anyone feel like explaining to me the difference between simulation and emulation? you have my full permission to be as pedantic as you want.
About the Deer, I had to cut some piece of video due the *swearing* Youtube copyrights issues...
A caveman pokes his head in...
I was listening to songs by Chuck E Cheese's voice actor (Jaret Reddick from Bowling for Soup) when the meds I was taking for my stomach virus apparently stopped working. I can't take my next dose until morning, but it's no use anyway. I'm officially sick again. Of course, I'll definitely take the next dose either way, but it's useless now.

Forum statistics

Threads
116,006
Messages
1,094,858
Members
151,311
Latest member
OpenWings
Top