Make a simple hud without any script

First, Sorry if i post this article in wrong forum (again)


-I want to make the gold (amount gold of player appear in the corner of screen (without script) ever i hear that we could use the variable to displayed it...please help  🙁
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
Tutorials is for presenting tutorials you wrote, that is why it is always moderated, no matter how many posts you have
You can make the amount of Gold appear on screen by typing \$ in a text box.

However it won't be persistent like a HUD it will only appear as long as the text box remains. You can put it as a parallel process so it will loop but the player cannot walk with a text box on screen.

Scripting or a plugin is really your only option
Changing the display always requires a script or plugin. There's no other way to do it.
You can always pretend thoug, with variables, some math and pictures for the numbers from 0 to 9...
I've moved this thread to MV Support. Please be sure to post your threads in the correct forum next time. Thank you.
Tutorials is for presenting tutorials you wrote, that is why it is always moderated, no matter how many posts you have

Oh.ok Thanks 
It's possible, but you would have to circumvent it by using pictures instead. Considering it's about gold, the amount of gold can be quite high (like 6 digits?), so you would need at least 6 variables, and 10 images of numbers 0 through 9. Then you'd have to use the modular operand of the variable to determine  the numbers in the gold amount.


For example, say you have 68,943 gold. You'd need to display 5 images, with the numbers 6, 8, 9, 4 and 3. But you have to dissect every number in that gold amount, to be able to create a conditional branch for the numbers 0 through 9 (you're not going to make a conditional branch for over 68k numbers), using the mod operand of the control variables command.


Basically this tutorial is what you want to achieve.


I do not recommend eventing this, go with a plugin.
Yes you can!


You must obtain ten pictures, representing the ten digits 0,1,2,3,4,5,6,7,8,9.


Then you should use an event command to show a picture.


If you use parallax mapping, EVERYTHING I tell you should be above any picture you show. I assume you use at most 4 for that!


So let's see, we can show picture [5] as a HUD (a graphical menu skeleton).


Then you can show picture 6,7,8, and 9 that will represent gold, according to how much gold you got.


This needs some math.


You can do stuff by controlling variables.


Actually let's say you got Gold set to a variable named.... gold! 😛


So...


Thousands = Gold mod 1000


WithoutThousands = Gold - Thousands *1000


Hundreds = WithoutThousands mod 100


WithoutHundreds = Hundreds - Hundreds*100


Decs = WithoutHundreds mod 10


WithoutDecs - Decs - Decs *10


Thus Gold 1234


will result in


Thousands  = 1


Hundreds  = 2


Decs  = 3


WithoutDecs = 4


Now you can use these variables with conditional branches, to show four pictures, from 0 to 9 according to their value. 🙂


Speaking of necroposting: Sorry.
Yep, necroposting.  But on the other hand, it looks possible that the query is still open as the OP hasn't come back to say whether the picture or the plugin route worked.


Either way,


Closing.

Original thread: https://forums.rpgmakerweb.com/threads/make-a-simple-hud-without-any-script.69764/