Stegan

Villager
Member
Joined
Nov 21, 2020
Messages
20
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,105
Reaction score
8,923
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
20
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

I couldn't help myself, so I edited the tiles a bit and made a birdhouse :LZSsmile: I hope I will finish the town today!Screenshot 2021-09-17 134349.png
How do I find the threads I have watched? It's been so long I've forgotten :kaoswt:
So far, this is how the wall tileset its looking in-editor. :kaoswt2:
1631863283853.png
Still thinking on details to add.
Added a plugin to RMMV Plugin Releases with all relevant info but it looks like the topic wasn't approved for whatever reason. Cool.
Working in the IT industry:
- "How long does it take?".
- "It takes 1 month".
- "What if we add more people to the project?".
- "It would take 2 months".

Forum statistics

Threads
115,130
Messages
1,087,459
Members
149,636
Latest member
Mikhail95
Top