I'd like a simple window to display when a switch is turned ON (without using a plugin, if possible)

Hi everyone,

I'm creating mini-game where the player levels up and gains experience independently of their actual level / experience.
I'd like to create 2 windows that display when certain switches are set to ON.
I'd like each window to display some text and a value.
Like, "Level: <value>"
"Exp: <value"

I tried accomplishing this with various UI plugins, but they were a bit complicated for what I wanted to do.
For example SumRndmDde's plugin HUD Maker plugin is awesome, but I just want the new windows to match the current UI window style - and with that I'd have to create something that LOOKS like the natural UI but isn't (I tried, and it still looks a bit off - and I'm not interested in creating some flashy new window / gauge / font).

Is there no way to accomplish this without a plugin (or with a simpler plugin than SumRndmDde's plugin)?

Thank you for your time.
The only way you are going to do this without a plugin is to use the Show Text command, which will only show one window, not two.
Well, with Show Text I can't choose where the window is displayed, either. I'd like to have it in the upper right hand corner of the screen. I'd also like it to be smaller than the default Show Text window. I'm not averse to plugins, but I wasn't able to re-create the default UI look with the HUD Maker plugin.
Then you will need a plugin. So you should provide more of an explanation to what you want. Where do the values come from that are to be displayed in the windows? Where do you want the windows to be displayed? If they're both in the same place, what happens if you've got both switches turned on at the same time?
Moved to: JS Plugin Requests
Then you will need a plugin. So you should provide more of an explanation to what you want. Where do the values come from that are to be displayed in the windows? Where do you want the windows to be displayed? If they're both in the same place, what happens if you've got both switches turned on at the same time?

So specifically, I’d like one small window on the upper right of the screen, and a small window displayed immediately below that.

The first window would contain
Lv: 2
The number 2 (or whatever number) would come from a variable.

The second window would contain
Exp: 25
The number 25 (or whatever number) would come from another variable.

That’s it. I’d like to do this with a look as close to the default UI as possible.

And to the mod who moved my post, thank you - but to be fair, I didn’t originally set out to request a plugin (though I’m ok with a plugin if that’s the only way to achieve this).

Thanks again.
I reported your post and asked the mods to move it to plugin requests, because once you established that Show Text wouldn't cut it, a plugin was the only way it was going to happen. And possibly the only way a potential plugin-creator was going to see it. Also, that is template text - the mod didn't type that whole thing - just one or two keywords, and the rest happened automatically. It's easier/faster that way.

Will both windows always be visible at the same time? Or will the Lv one be visible on its own sometimes, and the Exp one on its own at other times? Do you think it would be a bit weird for the Exp one to be slightly down from the top right corner, with nothing above it?
windows are created by code.
you can't have a coded window without a plugin, which is what injects the original code with more code.

that's how it is.

that being said, the quickest way to create a window without a full plugin, is to take for instance the message window, duplicate it, alias it, and load it only with a check to the switch in question, which still needs code but much less code than you would need for a full plugin.

.......but you can't create a window without a plugin.
that's a fact.
I reckon the gold window would be a good candidate to copy.

Given the location, would any of these windows ever be visible when the gold window is visible? Because the gold window already occupies the top right corner.
you move the gold window around and put the new one in it's place, or add a check for adding Y + window_height when the other window is up, so it spawns right below it.
it's the same code really. ¯\_ツ_/¯

if what he wants is just a window holding two pieces of text, that's really not that hard to do.

I'll risk saying you can even put it up from the editor itself, using script objects.
I reported your post and asked the mods to move it to plugin requests, because once you established that Show Text wouldn't cut it, a plugin was the only way it was going to happen. And possibly the only way a potential plugin-creator was going to see it. Also, that is template text - the mod didn't type that whole thing - just one or two keywords, and the rest happened automatically. It's easier/faster that way.

Will both windows always be visible at the same time? Or will the Lv one be visible on its own sometimes, and the Exp one on its own at other times? Do you think it would be a bit weird for the Exp one to be slightly down from the top right corner, with nothing above it?

Thank you for the explanation. I didn't mean to come off as snippy toward the mods - I'm happy my post is now in the most appropriate place 😀

The two windows are basically a set, so they would ideally always be visible at the same time, and never separately.
I suppose even 1 window with 2 lines (one for level, one for exp) would also work just fine.

I don't think it would be weird for the Exp one to be slightly down from the top right corner, but it might be nice to be able to fine tune the position of the window(s), even if it's just by changing x and y coordinates in a script or plugin command.

Original thread: https://forums.rpgmakerweb.com/threads/id-like-a-simple-window-to-display-when-a-switch-is-turned-on-without-using-a-plugin-if-possible.92979/