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.
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 😉