MV Sound Effect when your turn start in battle

I wanted to add a sound when one of the characters' turn begins (like Final Fantasy VII, for example). I've been looking for a plugin and I didn't find anything, and I don't know if it's possible otherwise.

Is there any way of doing this? Thanks!
I haven't tested this, but try it out. Copy the code below into a text editor, save as a .js file in your plugins folder, and load it in your plugin manager.
Code:
Sprite_Actor.prototype.updateTargetPosition = function() {
    if (this._actor.isInputting())
    {
        this.stepForward();
        AudioManager.playSe({name: 'filename', pan: 0, pitch: 100, volume: 100});
    }
    else if (this._actor.isActing()) {
        this.stepForward();
    } else if (this._actor.canMove() && BattleManager.isEscaped()) {
        this.retreat();
    } else if (!this.inHomePosition()) {
        this.stepBack();
    }
};
and fill in the information after AudioManager.
It works! But when it's my turn, it loops so dry it's a headache. My idea is that it rings once at the start of the turn.
I'm not sure I'd consider that to work, then 😛

I'm not sure why that would get called repeatedly when clearly they're not taking multiple steps forward...hopefully someone who's more familiar with the battle manager will pop their head into the thread.

Okay, @Ganelan since we're throwing spaghetti at the wall, try this instead of the other one:
Code:
Scene_Battle.prototype.changeInputWindow = function() {
    if (BattleManager.isInputting()) {
        if (BattleManager.actor()) {
            this.startActorCommandSelection();
            AudioManager.playSe({name: 'filename', pan: 0, pitch: 100, volume: 100});
        } else {
            this.startPartyCommandSelection();
        }
    } else {
        this.endCommandSelection();
    }
};
filling out the AudioManager the same way.
Now work good! Thanks!
Moved to: Plugin Requests
I haven't tested, but this might be better in terms of compatibility with other plugins:
JavaScript:
(function(alias) {
  Scene_Battle.prototype.startActorCommandSelection = function() {
    alias.apply(this, arguments);   // invoke original method
    AudioManager.playSe({ name: 'filename', pan: 0, pitch: 100, volume: 100 });
  };
})(Scene_Battle.prototype.startActorCommandSelection);

I'm not sure why that would get called repeatedly when clearly they're not taking multiple steps forward...hopefully someone who's more familiar with the battle manager will pop their head into the thread.
startMove updates the sprite's target coordinates to the given values; these values are relative to the sprite's home position, not their current position. The updateTargetPosition method gets called every frame that the sprite is visible and not moving:
JavaScript:
Sprite_Actor.prototype.updateMain = function() {
    Sprite_Battler.prototype.updateMain.call(this);
    if (this._actor.isSpriteVisible() && !this.isMoving()) {
        this.updateTargetPosition();
    }
};
these values are relative to the sprite's home position, not their current position.
That makes perfect sense, then 🙂

Original thread: https://forums.rpgmakerweb.com/threads/sound-effect-when-your-turn-start-in-battle.140009/