Some noob questions about inventory (more in the comments)

Currently coding my inventory and it’s working (mostly).
The problem is that I want every item in its own line and not separated by commas (kinda like a checklist?). I’ve been using *line_break to do it, but now I’ve realised that if an item is set to false, it won’t appear on the list but there will be a blank space where that item should go. Like this:

[b]Inventory[/b]
*line_break
*temp inventory ""
*if backpack
    Backpack
*line_break
*if flashlight
    Flashlight
*line_break
*if rusty_dagger
    Rusty Dagger
*line_break
${rations} Rations
*line_break
${water} Bottles of water
*line_break
*if empty_bottles >=1
    ${empty_bottles} Empty Bottles
*line_break
${matches} Matches

inv

Is there any way I can make those blank spaces disappear without having to write my inventory all in one line with commas?

Have you tried indenting it, so it follows the *if command?

1 Like

Indenting the line break? I have not!

But it works!
I can’t believe it was this simple, omg…
Thank you so much!

1 Like

Have you tried just adding [n/] to the end of each option?

What does that do? Haven’t seen that tag anywhere…

[n/] is the equivalent of *line_break, but you can put it [n/] inside [n/] the [n/] text.

They’ll look like

it
inside
the
text.
1 Like

So if the text is not currently being used, it won’t do anything? I’ll look into that! Thank you!

Not really…

The [n/] tag functions literally the same as *line_break, except it’s now a tag, not a command.
The tag doesn’t have to be on its own line.

1 Like