[MV] Plugin to Show Switch value in a "Show Text" box

I'm looking for a plugin that will allow me to show the value of a switch in a Show Text box as either "On/Off", "Yes/No" or "True/False" depending on the state or plugin setting.

Has anybody seen or written anything like this for MV?
Moved to: Plugin Requests

but you don't need a plugin for this. Allocate a variable (just one - it can be reused each time) and do a Control Variables just before the Show Text command:

Control Variables: [0053]: SwitchAsText = Script: $gameSwitches[18] ? "Yes" : "No"

Show Text: \v[53]

The text will show "Yes" if switch 53 is on, and "No" if it's off. You can change the Yes/No to whatever you want for that particular switch & text box.
@Shaz
Not sure if the syntax has changed since you made that post but to get it to work I had to change $gameSwitches[#] ? "Yes" : "No" to $gameSwitches.value(#) ? "Yes" : "No". Just thought I'd throw that out there incase anyone else was stumped about it not working.

Sidenote: I'm using RPG Maker MV 1.6.3
because the syntax given didn't work for MV/MZ anyway, the change you
made is the only one working or $gameSwitches._data[x] ? "yes" : "no"

value one is the same, another way if you want to see if its true

$gameSwitches.value(n) === true ? "true" : "false"

its depends what you need it for exactly.

the === true is a main check if the normal bool (mostly true if ON) doesn't work
as expected 😉
the === true is a main check if the normal bool (mostly true if ON) doesn't work
as expected 😉
The boolean value will always return true if the switch is on - I don't know what "mostly true" means 😛

Syntactically, there's no difference betwen typing
Code:
$gameSwitches.value(X)
$gameSwitches.value(X) == true
$gameSwitches.value(X) === true
you're just choosing to type more things.

The only way it could possibly not work as expected is if the user has manually edited the variable via the _data array; or edited the Game_Switches.value() method - in both cases your change also wouldn't work 😉

Original thread: https://forums.rpgmakerweb.com/threads/mv-plugin-to-show-switch-value-in-a-show-text-box.144911/