Any help appreciated here - I've got the hang of whitespace collapsing with { }, but am a bit stumped here.
In this example, let's say we have a passage where you are presented with a chimp, and can choose to give it either a banana, your watch or a coin.
Each choice leads to a passage (bananagive, watchgive, coingive), where you may choose to either send the chimp away (moving on to a new decision tree), or give the chimp something else from the original list - sending you to that parallel passage.
To ensure a player can only visit each passage once, they contain a macro which sets a 'flag' variable (eg $beenbananagive) to 'true'. Each passage will only show a link to unvisited parallel passages, whose flag variables are still set to 'false':
You give the chimp a coin
(if:$beenbananagive is false)[[[give him a banana|bananagive]]]
(if:$beenwatchgive is false)[[[give him your watch|watchgive]]]
[[send him away|chimpsend]]
However, on testing, I've found the passages contain lines of whitespace where options have been hidden due to values being true. Can anyone help me remove these, so the available options appear below the "you give the chimp a coin" text without additional spaces?
Thank you!
Comments
Use the nametag:
Try that. I hope it'll work.
This does kinda screw up the formatting-- and I think there's a way to collapse individual lines with backslashes \, which leaves it more readable-- but I personally find this way easier to remember.
Hope that helps!
Yeah, I think that this forum's been updated or something, because now I find it impossible to accept answers. It's weird innit.