Audio Cue on Full TP Gauge?

I'm using the TP Gauge in my game as a mechanic similar to Final Fantasy VII's limit break system: when it's full the party member can use an extremely powerful attack.

I've already got that system in place, I'm just wondering how to make it so that there's a special audio "ping!" or something of that nature once the gauge reaches 100 so the player knows its able to be used, because in testing the game it's been hard to keep track of when it's become available.
I can't seem to find any plugins or tutorials on how to achieve that so I've deferred to the forums: anyone here got any idea how to pull that off?
Do you have scripting knowledge?

If you do, the first thing that pops in my mind is monkey patching the function which sets the characters TP and insert the check for max TP there.
This way you may hook any action you want when TP reaches its maximum value.


edit:
Something like this:
Spoiler: CCPet_TpHook.js
JavaScript:
/*:
@target MV
@plugindesc Common event hook for when Tp reaches its max value
@author Alexandre "CaRaCrAzY" Petrassi Cardoso
@help Select a common event from the parameter list. It will be called whenever
an actor's TP reaches its maximum value.
Version 1.0

Terms of Use:
- Free for commercial and non-commercial games.

 @param commonEvent
 @text Common Event
 @type common_event

 */

// Script Registration
var CCPet = CCPet || {}

CCPet.TpHook = function() {

    // Capturing current context
    var script = this

    // Retrieving parameters
    script.commonEventId = PluginManager.parameters("CCPet_TpHook").commonEvent

    // Monkey patching 'around' function
    script.battler_setTp = Game_BattlerBase.prototype.setTp
    Game_BattlerBase.prototype.setTp = function(tp) {
        // Before setTp
        var wasTpNotMaxed = this._tp != this.maxTp()

        // Original function
        var originalReturn = script.battler_setTp.call(this, tp)

        // After setTp
        var isTpMaxed = this._tp == this.maxTp()
        if (wasTpNotMaxed && isTpMaxed && script.commonEventId > 0) {
            $gameTemp.reserveCommonEvent(script.commonEventId)
        }

        // Returning original value
        return originalReturn
    }
}()
This worked perfectly for what I wanted to achieve, thank you so much!

What's next on the agenda is a plugin command/script to change the colour of a gauge for the added visual clarity. That most likely already exists though, so I'll look around unless anyone knows a command like that?

Original thread: https://forums.rpgmakerweb.com/threads/audio-cue-on-full-tp-gauge.126009/