Dialog Listbox Help

Inkko

Valued Member!
I have a dialog I created. Rscpicture as the background for it, list box on the left side and a RscStructuredText on the right. When opening the dialog it loads text into the list box and a message into the structured text.

What I am trying to figure out is how to load specific text into the structured text based on what is selected in the listbox. The basis for this whole thing is moving forward and advancing on my quest system I made a while back and this would be like a quest log to keep track of quests you've started and see what you need to do for them.

So pretty much if the text in the listbox is equal to X then put Y text in structured text area.
 
Nevermind I finally figured it out.

Doing the below I could then make an if statement to see if _data == "text"
Code:
_data = lbText [55556,lbCurSel 55556];
_data = format["%1",_data];
 
Back
Top