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,147
Reaction score
8,936
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 Posts

Latest Profile Posts

Apparently MZ lets you preview move routes in the move route editor without having to start up test game. That could save a lot of time during development compared to MV, especially for a long game that uses a lot of event movement for cutscenes.
A repost of an old meme I had made, now with music

I have a really hard time keeping all these goodies secret til December... but I swear, it is worth the wait!
Working on a Premium version of my minimap plugin that will have advanced functionalities such as drawing a Terrain map based completely on the users tilesets, whatever they may be, and drawing minimap radar icons automatically based on texture of the event the note is applied to.

Forum statistics

Threads
115,859
Messages
1,093,529
Members
151,081
Latest member
MOLLARTA
Top