New to Luna. Adding a Line of Text.

How to add text to windows in Luna.
Oh i finally got it! And it only took about 8 hours of messing around to get "Hello" to appear. So rewarding when it finally did tho! I'm going to leave this open for the next couple of hours while i mess around with adding text to windows some more. If i don't have any more questions about it by the end of the day i'll mark it resolved. 

Marked it as Solved. If i come up with any other questions i'll reopen it.
You should also post your code snippet to help others see what needs to be done to achieve this 🙂
Haha yes, i thought of that immediately but i was so excited to finally get over that hump. It opened up a lot of new stuff for me to do. I'm going to upload screen shots after i celebrate my sucess with some well earned Ramen.
    IMAGE 1

 Used the Coin window for this exercise to learn how to add/manipulate text in windows. Added what looks like three more currencies to the window using text PP, CP, SP, and changed the name of G to GP "Gold Pieces". I then used something i ran across on a forum yesterday to include variables 1, 2, and 3 on each of the three vapor currencies giving the appearance of a real in game currency. I then fiddled with the settings like box size and text alignment, x, y etc. until it looked o.k. I know you can change the actual in game currency, this was just an exercise to learn about adding text to windows, something i couldn't figure out all day yesterday. I then had an npc event change the gold and the three variables from 0 to numbers to give the appearance of my character having different types of coins on him.

  IMAGE 2

This was where i added the three lines to the Gold Window under Lunatic Config Main Menu

the "result = []" and the line of text for the Gold was already there, i just added the script for the other three lines to it. It worked perfectly.

  IMAGE 3

This is where i'm stuck now, duplicating what i did with the Gold Window section isn't giving me the same results in another window. Here i put what seems to be the same thing that's in Gold Window of Lunatic Main Menu, into the Description Window of Lunatic Equip Menu. I'm only trying to put one of the four lines of text to simplify it just to see if i can get it to work in other windows other than Gold. I'm not getting any results, i'm not getting game errors but i'm also not getting the "SP:0" that i thought i would get in the Description Window of Equip Menu. When i did the Gold Window the "result - []" was already there and i just plugged into it. It didn't exist here so i created one but that isn't working.

Currency.png

GoldWindow.png

Equipment.png
Do you have a picture of your equip menu? . Anyways have you also checked to see if the description setting in your equip configuration. It's at the bottom of the configuration script. The defualt enable setting is set to false. I believe this part of the lunatic configuration you are trying to edit relates directly to this section, I am not 100% sure and I dont have a snippet of your code I can copy to test myself.

This is the code your looking to enable. Next time do a codebox like I did, put the script you want to get help for, this way it's easier for us to try it out as well.
 

Code:
WINDOW_DESCRIPTION = {      :enable =>  false,     # Enable Window Description? True/False
def self.user_description_text(item, contents) result = [ ["CP:#{$game_variables[1]}", [0, 57], [136, 3], [255, 255, 255], ["VL Gothic", 24, false, false]], end Equip.png

Wow i never knew it was disabled by default! WTF!? I've been trying to get stuff to appear there for the last five hours. Anyways, it's enabled now, i'm still not getting the "PP:0" i thought i'd get by having that text there. I'll upload the window pic, and i never knew there was such a thing as a code box, that's awesome.
So it seems that the process i used to add text to the Gold window does indeed work on other windows, the thing that was holding me back was apparently Description window is an exception, there appears to be some script in there that makes it so text only shows when an item is selected. I tried to see if i could find a work around for this but i couldn't find one.

Original thread: https://forums.rpgmakerweb.com/threads/new-to-luna-adding-a-line-of-text.44711/