SUDS icon indicating copy to clipboard operation
SUDS copied to clipboard

Text with random alternatives

Open Olaxan opened this issue 2 years ago • 3 comments

I've written a few pieces of interactive fiction in the wonderful Inform7 language (www.inform7.com). While that language is absolutely massive in scope and scale, there are a few "smaller" features that would be nice to see in SUDS, regarding randomness in the output.

Inform7 has an assortment of markup constructions for handling random/repeating text. They are listed in full here: https://ganelson.github.io/inform-website/book/WI_5_7.html

The gist of it is that you construct sentences [one of] like this [or] in this manner [or] along these lines [at random], and the output will be chosen before printing, depending on the specifier in the last bracket pair.

Other convenient options to "at random" is "cycling", which goes through the set of options and repeats, and "stopping", which sticks to the last option after cycling once.


I think an easy in-text way of adding a bit of randomness to the text without having to go through variables and expressions could really help add flair to the dialogue, without disrupting the writing flow. This could be especially apt seeing how SUDS seems to be heavily text-focused (no voice-over data).

It's probably not a trivial thing, but I thought I'd launch the idea, since I've really enjoyed it in Inform.

Olaxan avatar Dec 18 '22 12:12 Olaxan