Hello everyone, I use RPG Maker MV and I would like some help if possible, so thanks in advance to anyone who can help.
First, I know almost nothing about javascript, so my question may seem silly or stupid.
I'm making an event so that when a character "X" is in the group, while he is walking he makes a certain sound, for example, one of my characters is of the "Treant" race, and while he walks he makes a branch noise.
Therefore, I check if the character "X" is in position 1, 2 or 3 of the group (my group has a maximum limit of 3 characters) and if he is in any of these positions, either as a leader or not, the solution I found was temporarily set the conditional branch with a script command: $gamePlayer.isMoving()
At first I got what I wanted, but I noticed that in reality this command is only for the group leader.
So if the character "X" is in the second or third position, when I put the leader to move in an event where the character "X" doesn't move (for example, with the plugin "
SimpleFollowerControl", or in any other situation ), the branch noise keeps playing even though the character "X" is not walking.
Finally, my question is: Is there any script command where I can put a conditional branch so that the branch noise only occurs when the
player ID "X" is moving, or something like that?
Obs.: I already use a plugin to make noise when walking through Regions ID, so what I'm trying to do is put movement noise depending on the characteristics of each character, and the plugins I checked do not offer this functionality.
So again, thanks in advance for any light on this matter.