Variable Window From Menu?

Liblib71

Should Be Better At This
Member
Joined
Sep 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMVXA
I have been programming in VX Ace for five years and I still can't figure out how to draw a window that displays a custom amount of variables. I just need it to look something like the parameters screen in Yanflys Status Menu Core: http://www.yanfly.moe/wiki/Status_Menu_Core_(YEP)
It doesn't need to be interactable in any way, I just wanna replace the status window with a "stats" window displaying about six or seven of my own variables in a list. Despite how easy this should be for myself, a self-taught ruby programmer, this has me stumped. Any help is greatly appreciated.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,217
Reaction score
4,346
First Language
English
Primarily Uses
RMMV

I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.


Since you said you're programming in VXA it might be a good idea to give us a starting point, either what you have already coded or your level of coding. Do you know how to create a window and display it in a scene? Do you know how to draw text and images in the window?
 

Liblib71

Should Be Better At This
Member
Joined
Sep 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMVXA
Since you said you're programming in VXA it might be a good idea to give us a starting point, either what you have already coded or your level of coding. Do you know how to create a window and display it in a scene? Do you know how to draw text and images in the window?
Thank you! I've never posted to the forums so I wasn't sure where to post it lol. And I've mostly just altered the scripts that come with Ace, adding and removing things from menus and such. Because of this, I've never really drawn my own window before, but I do know how to draw text and some images. Thanks so much for getting back to me, I can't really move forward with my project without it.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,267
Reaction score
6,011
First Language
Indonesian
Primarily Uses
RMVXA
It's as easy as just use
Code:
draw_text(x,y,width,height,$game_variables[id])
Adjust (x,y,width,height) as you see fit.
I assume you know where to put this line of code?
 

Liblib71

Should Be Better At This
Member
Joined
Sep 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMVXA
It's as easy as just use
Code:
draw_text(x,y,width,height,$game_variables[id])
Adjust (x,y,width,height) as you see fit.
I assume you know where to put this line of code?
Oh dude thank you so much, I can definitely figure it out from here. If not I'll post again, and I'll post the script I make for others who wanna do the same thing. Props to you. :thumbsup-left:

EDIT: So the text drawing is working no issue, but now I'd like those colored bars underneath the text, and text saying what each variable represents. Does anyone know how to do this?

EDIT 2: I figured out the text displaying what each variable represents, now I just need help with those pesky colored bars. Any help is greatly appreciated!
 
Last edited:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

have another character sheet! ill probably add some more details before i make my thread for this project
Every time the official RMWeb account makes a post, I think it's @Eliaquim writing it!

It's driving me crazy, but it's also wonderfully hilarious.
// Looks at Elfkisser, realizes he'd have to either install Windows 10 or compile it for Linux
// Didn't install Elfkisser.
Too much effort for a curiosity. :popcorn:
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.

Forum statistics

Threads
99,224
Messages
963,230
Members
130,813
Latest member
Gremter
Top