I don't know if there's a simple answer for this, so I'll wait a bit to answer this the complicated way in the hope someone else will step in. However I'll point you to the complicated answer and maybe you can figure it out yourself.
* In the GUI click on the filter to show library elements (lower left hand corner).
* Then do a search for 'inventory' (search box is in upper left hand corner).
* You'll see the inventory command, click on that.
* copy that into your project
* In the script for that you'll see a list created from FormatObjectList, and the template CarryingListHeader.
* Do a search for CarryingListHeader -- you'll want to change that eventually so copy it into your project.
* Do a search for FormatObjectList. This is the complicated part.
* copy it into your project
* click on Code View in the script tool bar (second icon from the left in the toolbar on the same line as 'Script:')
* Above the script you'll see the Parameters box. These are the arguments to the function as called in the inventory command, where you saw
FormatObjectList(Template("CarryingListHeader"), game.pov, Template("And"), ".", true).
So, the parameters are:
preList
is Template("CarryingListHeader")
parent
is game.pov
preFinal
is Template("And")
postList
is "."
useinventoryverbs
is true
These are the elements of the inventory text returned when you do the command 'inventory', and are used in the FormatObjectList you see there in code view.
If you read the FormatObjectList code you'll notice that it calls itself, around line 15 where it says
result = result + FormatObjectList(....). This is a recursive call and it's how it builds the full inventory list.
So, in a nutshell the complicated way is to rewrite this function to display inventory how you want. You'll also need to change the inventory command so that the parameters to FormatOBjectList are what you want. For example, you probably don't want the Template("And") in your inventory text.
Sorry I don't have time right now to take a cut at this but maybe someone else can, you can, or there's a simpler way I don't know. Good luck!