Galv's Step Effects MZ

Step Effects
RPG Maker MZ Plugin
Galv
​

Introduction
I wrote a script for VX Ace that I recall using a lot and thought it would be handy in MZ projects. Do stuff when characters step places... and things.







Features
This plugin allows you to setup step effects for the player and step effects for events.
‘Step effects’ are settings that are assigned to a terrain tag or to a region id. These settings are run each time a character steps on a tile with terrain tag or region id that has a step effect assigned for it. Each step effect can do one or more of the following:
– Spawn an event at the character’s location (Galv’s Event Spawner plugin required)
– Run a specified common event
– Play a sound effect
– Run script code

This could be used on maps that might require widespread functionality that would normally require lots of events or parallel process (such as large maps that you would like player transfers on all edges). I’m sure there are other creative uses you will find for this functionality.


How to Use
- Copy the "GALV_StepEffectsMZ.js" file into your project's /js/plugins/ folder.
- Activate plugin using the 'Plugin Manager'
- Read the 'HELP' documentation (also found in plugin manager) for more details and try the demo if you don't understand.


Plugin
Get it here


Credit and Thanks
- Galv


Terms
Free to use in any RPG Maker MZ project including commercial. Please credit "Galv".
:)
Updated to version 1.1 - added functionality to prevent each step effect from playing if the player is in certain vehicles or walking. So you can prevent that airship from adding footprints and whatnot.
Can you give an example how to use it?
I recommend reading the plugin description and checking out the demo. The demo has examples.
where is the demo
Go to https://galvs-scripts.com/rpgmaker/rmmz-plugins/ and look near the top of the page to download the master demo.
Go to https://galvs-scripts.com/rpgmaker/rmmz-plugins/ and look near the top of the page to download the master demo.
Hi, Galv. your plugin is great! But I find that when I use VisuMz Event Move plugin your spawn plugin and footprints plugin dont work! It will spawn some object! But only has a picture, events are gone! I dont know It's bug of your plugin or VisuMz's. Visu's is Obfuscated code。I read your code, but do not to know how to make it work with VisuMz's plugin!
Sorry, I cannot assist making this compatible.
I think this is a really great plugin, gives that extra bit of atmosphere. Perfect for walking through deep snow.
Thank you! :LZSsmile:

If I could get it to work properly. I'm studying your demo, but I can't for the life of me figure out how and where you added the footsteps sound for terrain 2 (the path). It doesn't seem to be under PlayerTerrainSteps and I can't find an event where you added it.

I also used the event spawner plugin to add footprints, but been not successful there either. I just copied the custom moveroute you had for the footprints (and the appropriate graphics), but it didn't work.
If you have the time, could you maybe explain the custom moveroute for the footprints? Maybe I shouldn't just copy/paste this.
For terrain 2 footsteps, it seems I set it up using the Galv_CFStepSEMZ plugin... it took me a while to work out I did that, too - that was my fault, sorry! (You don't need that plugin to do the SE, though).

The custom moveroute for footprints is using a script to change the direction of the footprint event when it spawns before showing the graphic, so it is facing the same way as the player.

JavaScript:
this._direction = this.stepChar()._direction; this._diagDir = this.stepChar()._diagDir;

I believe this is using code from my diagonal movement plugin to get the facing, so you may need to use different code depending on your implementation. Eg. If you don't have followers, you might be able to use:

JavaScript:
this._direction = $gamePlayer._direction;
Note: I have not tested this, going from memory!
Thanks for answering that fast!
I now noticed the CF SE plugin, but as you said got it working without it. Thanks!

But still no footprints. I have your diagonal movement plugin, too and I tried it with only your
event spawner,
diagonal movement,
step effects and
extramoveroutes plugin,
but it didn't work.
I'm sure I did a mistake somewhere. Will have to fiddle around with it some more.
Make sure you're spawning the correct event id from the correct map id?
Not quite sure of what else might be wrong without being able to look at the setup.
1701752273884.png

I Have no idea what im doing wrong? Am I missing something?
1701752323425.png
1701752296652.png
Hi Galv!

I'm having similar issues to Candacis with the footsteps not showing up in the same way it does in your Demo Project. My map ID and event ID from the map are correct. I'm not too familiar with Java script, so I didn't completely understand your explanation to Candacis. But does that mean the entire footstep showing and fading away was done in-code rather than hooked up through RPGmaker?
Does anyone know how to use the plugin? I'm not very familiar with it, but I'm trying. I'm using regions and I want it to play an SE sound for each step the player takes. If anyone can help me, I'd really appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/galvs-step-effects-mz.129620/