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

A video update on the progress I've been making on the cutscenes. :kaosalute:

I wonder if color LUTs is possible for RPG Maker. It would be game changer and can replace the not so good looking tint screen
new mechanic in battle where you can mentally erase enemies when you deplete all their MP instead HP. this gives you a special item of their "memory". it's pretty to do in battle so far.
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

Forum statistics

Threads
115,863
Messages
1,093,555
Members
151,084
Latest member
Tyriemedia
Top