[SOLVED] How to Draw a Variable on Screen?

20220610_143151.png


I was wondering if it was possible to draw a variable like this on the screen.

I ask because I plan to have a system where each dungeon you visit has their own set of keys, so the variable gets replaced by that dungeon's specific key count each time you visit those dungeons.

I'm just asking if the "drawing it on the screen" part is possible.
Yes. There are scripts for it or you can do it with events.
The evented way is tedious but pretty easy. Just make numbers 0-9 in separate image files, then split the variable into digits using math.
Changing my post as some people think I'm enforcing rules....
Your not really supposed to make duplicate threads

It's not a duplicate thread because I'm asking a different question for one. Second, the other was asking for support on Falcao's script, while with this one is asking for support on something independent from it.
But the end goal is the same. And yes you are right. It could be done in a few different ways.
Your not really supposed to make duplicate threads
7. Do NOT attempt to take moderation into your own hands.


View attachment 228854

I was wondering if it was possible to draw a variable like this on the screen.

I ask because I plan to have a system where each dungeon you visit has their own set of keys, so the variable gets replaced by that dungeon's specific key count each time you visit those dungeons.

I'm just asking if the "drawing it on the screen" part is possible.
Hy, i made once a event that uses hte different numbers from the variable and show them via pic...
Here is the thread: https://forums.rpgmakerweb.com/index.php?threads/split-3-or-4-digit-number.143522/
Basically what it does, it splits the variable in its digits, so you can combine that with number pics to create what you need... its a little bit tedious to set it up but it works ok, the other method would be via scritps.
short answer? yes.

TLDR answer: you gonna have to write an object for handling that on the screen, and tie that to the screen's refresh routine.
it's not advisable to do it with pictures.... there's a screen object dedicated to that for a reason.
Right. Thanks to the tricks I pulled in the past hour or two, I think I've cracked this one without needing to strain my brain too much.

Thanks all of you for helping, I really appreciate it. 😍

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/solved-how-to-draw-a-variable-on-screen.148406/