How to add text to menu windows.

I'm wondering if anyone knows a way to add text to windows, i've been trying for two days to do it with Luna but i've given up, i had some success with the Gold window, no problem there, but the same process i used doesn't seem to work on other windows.
I think it would be helpful if you gave a bit more detail.

Which window(s)?

What text?

Under what circumstances should the text appear (if that is relevant)?

Are you using any Menu scripts already?  If so, please give a link to the web page which describes it.
Right now i'm just trying to learn how to do things, i'm not actually trying to make anything yet, i learned how to move and manipulate windows and the things in them, size alignment etc, i decided i wanted to learn how to start adding things next. I figured text would be an easy way to start, i managed to figure out how to add text and variables to the gold window via Luna but i can't figure out how to add text to any other windows. It doesn't matter what window it is, i've been trying to add something to the description window of the equipment menu all day, not because i need something there but just as an exercize to learn how to add text to a window. So yeah, any window but the Gold window i already figured that out, and what it says doesn't matter, just "Hello!" will do fine. The only thing i have installed other than the RPG ace is Luna.
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Are you specifically wanting to do something with Luna? If not, your having it is going to complicate things, as SOME scenes are controlled by Luna and some are not. Therefore you will need to state which menu/screen/window you are trying to modify, so we know whether to give you the Luna answer or the non-Luna answer.
The most normal way is to do

spriteobject.bitmapobject.draw_text(params)#orbitmapobject.draw_text(params)How you use it depends on where you'd wanna use it. For menu windows, it will most probably be
Code:
contents.draw_text
Where you use it again depends on where you wanna use it and when...As for (params), it's on the RGSS3 documentation in the help file.
I don't normally like to plug my own stuff, but since you just want to learn things in general you could try my Menu Script Tutorial
I don't know how about Luna but this doesn't work?

 draw_text(x, y, width, height, "text")for example

Code:
draw_text(100, 80, 100, 24, "HELLO!")
Thank you for your replies. It looks like Bon Bon and Riki suggested the same thing so i'm going to look into that first. After i'm going to look into Adiktuzmiko's suggestion. Sorry about posting to the wrong forum Shaz, i'm new to this so haven't quite figured out yet what goes where. This is just a learning exercise for me, i'm going to try out what you guys have suggested with and without Luna to see what works on the rpg scripts and what works on the Luna scripts and where they need to be to get results in different windows. I'll post my results later in the day with screenshots when i'm done. Thanks again for reading and replying. 
So my challenge right now is to see if i can get the message "Hello!" to appear in the "help" window on the top of the Equipment screen when the equipment screen is opened, and have it stay there. I don't have a use for this other than it's proving to be a challenging exercise. I've been working on it for a few hours now with no results. I ran into problems in the Window_Help script adding the text in because there is some script in there than makes it so text only shows in that window when an item is selected and that section of script refreshes so it clears out any text that was put in before it. Any text put in after it, only shows when you select an item. I was then thinking i could add the text to the "Scene_Equp" over the help window and that would give the appearance that it was in the help window without having to deal with the script in Window_Help. I dont know how to add text to Scene's tho or if it can even be done, it appears draw_text just comes back as undefined.
Help window has a special function, so it may be kinda harder.

You can always add your own - empty window, where you could draw that text anywhere you want.

Though it's a little bit more complex process, but not that hard actually. =P
Yes, i was messing around in the help window script and there indeed does appear to be some script in there that only shows text if an item is selected. It was an awesome exercise tho, i learned a lot by trying to find a way to do it. That also brought me back to what i was doing yesterday with Luna, with luna i was able to add text to the Gold window but when i tried to add text to the Description window it wouldn't work. I now know this is why, i thought the process i used to add text to gold for some reason just wouldn't work on other windows, i only ever tried it on the Description window. It appears Description (Help) window was an exception to adding text to windows using Luna. So i already knew how to add text to windows, i've already learned how to do it with Luna, i just didn't know it. But like i said i learned a lot anyways, using the information from Bon Bon and Rik to try and add the text. I'm going to do like you mentioned and learn how to create a new window and overlay it over the help window to show the text and see if i can do it in a way that it looks like the new window isn't there but the text is, to give the impression that the text is written in the Help window. Again i have no actual use for this, it's just a learning exersize.
AJAJAJ, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
O.k. gotcha, i didn't know there was such a thing. 

Original thread: https://forums.rpgmakerweb.com/threads/how-to-add-text-to-menu-windows.44730/