For stylistic reasons, I would like to play with the inventory command a little bit. In my story, the player wears several clothes. In order to make printing the inventory neater, I’d like to break it up into two sections: a “you are carrying:” and a “you are wearing:” section.
I know that I can do this:
Instead of taking inventory:
say “[if the player carries something][We]['re] carrying [a list of things carried by the player][else][We]['re] empty-handed[end if][if the player wears something]. [We] [are] wearing [a list of things worn by the player][end if].”
Unfortunately, that nukes the formatting that prints each item on its own line, which I prefer. Taking inventory with the above code gives this result:
You’re carrying item1, item2, item3, etc. You are wearing clothing1, clothing2, clothing3, etc.
But what I want is this:
But I don’t even know what to look for in the documentation. I tried searching for “own line” but that didn’t help. Is what I want to do even possible?