This Script Works But I Want To Turn It Off With A Switch

I'm sorry, I'm not sure if I should post this in script requests, because I'm not asking for a brand new script, I just want to modify existing one for my needs and I can't quite do it due to my extremely poor knowledge, but I imagine for someone else it wouldn't take much effort.
But it's also not broken, so is that script support?... eh

So I have this script here, that replaces TP with a new bar that determines targeting. Works perfectly fine atm.
https://forums.rpgmakerweb.com/index.php?threads/euphoria-threat-system.31138/

Which is great, but I also want to -- at some point in the game -- play as just one actor, so targeting gauge becomes obsolete. And that actor would love to then use TP, since that replacement bar is no longer in use.

So I want to be able to turn a switch on and prevent entire script from running (or the part where it takes over TP)
Not in the middle of a battle, ofcourse.
So, one fight - 2+ actors, each having a Threat bar. Other - 1 actor, has no Threat and uses TP as normal.

I tried putting $game_switches[number] = true or something like that, and it gave me a method error, from which I assume you can't just load a switch from anywhere, or something like that
Script is quite complex so I can't just dart around and find exact point where switch can determine... things

Someone help?
----
if that's important I'm also using Yanfly Battle Engine which it is compatible with
You can not turn off scripts, you can only turn off functions that are inside the scripts.
And if the original scripter hasn't prepared such a switch, then changing that and implementing such a switch requires reprogramming that entire part of the script, it usually isn't as simple as adding a conditional branch with a switch to check.

Basically you would have to find where the bar is programmed inside the script, then turn off the display of the bar and redirect its functions back to the original TP process.
Well that sucks.
Alright then, trial and error time...

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/this-script-works-but-i-want-to-turn-it-off-with-a-switch.93707/