Text variables and how to draw their text

Hey guys!

I have a very simple day/evening/night system based on switches. There's one parallel event that tints the screen depending on which switch is active. Works great.

I would like it to also have a variable there, like "time of day" that would become "day" "night" or "evening" depending on the switch active.

And lastly, I need to show the "time of day" value on screen using a method similar to
this.contents.drawText($gameParty._gold + "G", x, y * 5, 90,32,"right") that works for me right now.

How do I go about it? I know nothing about JS 🙂
Suggest trying out SRD's Hud Maker plugin, which would let you do this pretty easily 🙂
I'll definitely check it out, as it is a HUD maker and I haven't played around with it yet, but still, I think that might be a bit of an overkill - whole plugin to just add one word in a hud-like thingy that I already have 🙂
Oh, and this plugin won't help me with string values for variables either. But in itself, it looks pretty nice. Just... for other things 🙂
Variables only work with digits, not strings, unfortunately. You'll need to solve it another way - the reason I suggested HUD maker was you could put in the text for "Day", "Evening", and "Night", and just have them displayed if the appropriate switch is on. Once you get the hang of HUD maker, it's all of 30 seconds to build something like that 🙂 SRD's tool plugins are amazing in general and I absolutely recommend them
I started playing around with the plugin. How do I phrase the condition Switch X is on?
$gameSwitches.value(x) === true

where "x" is the ID of the switch.
Hi guys,

I looked all over the forum and don't seem to find a way to display variables on the screen, not event with HUD MAKER. Do you guys no if there is a way to display the variables numeric values on the screen? ?

Thanks, RPG MAKER RULES!!!
If you're using SRD's HUD Maker, you can absolutely do that. It's worth watching his tutorial videos on YouTube - he shows exactly how to do everything and explains it too

Original thread: https://forums.rpgmakerweb.com/threads/text-variables-and-how-to-draw-their-text.88007/