good evening all! question regarding the use of dd.chat. I've got a table (inventoryGrid) with the columns "inventory" and "itemInfo" (formatted as strings), and have written a few button scripts that add items when clicked. I made a separate button that will display a list of whatever items are in the table, and display the description when selected. so far, my code looks like this:
on click do dd.open[deck o] dd.say["Hallo, traveller."] if itemHave.value dd.close[] dd.open[deck r] dd.chat["These are the items you're carrying." (raze inventoryGrid.value)] dd.close[] else dd.say["Huh? My friend, you're not carrying anything. Pick something up and come back if you want me to tell you about it."] dd.close[] end end
and I'm sure it could be simplified, but it works as intended! as for my question: I'd like to be able to have a final option at the bottom of the list that says something like "I'm leaving, now." that can be selected and trigger a final line of dialogue followed by dd.close so that you don't have to read through all of the options in order to exit the menu. I'm kinda lost trying to figure out how to script this due to using (raze.inventoryGrid.value). I'm not sure how to edit it in a way that will function. what's the best way to go about this?