Hi! I’m looking for a bracketed version of “Wait for any key” or a non bracketed but controllable version of “one of” “or” “inrandom order”…
okay so what I wanna do is insert complex quotes, so it’ll always have the right dedication.
There’s a workaround that’s a bit heavy on the code but i was hoping for a bit of intelligent coding to help me out.
so it should give me a quote, but sometimes in pieces with “wait for any key;” in there. sometimes, but not always.
and at the end, it would have to also cite the correct source.
So what i would need is a way to use “one of” “or” “in random order” in regular code, to say blah:
wait for any key;
say "fart noise";
in random order;
say "- source";
wait for any key.
or in printed text,
say "something[line break][wait for any key]something else[line break]";
You can recreate the “in random order” behavior with a table of rules:
do a randomly ordered table rule.
This is the alpha rule:
This is the beta rule:
This is the gamma rule:
This is the delta rule:
This is the epsilon rule:
To do a randomly ordered table rule:
if random-rule-table-marker < 0 or random-rule-table-marker >= number of rows in Table of Random Rules:
sort the Table of Random Rules in random order;
now random-rule-table-marker is 0;
choose row random-rule-table-marker in the Table of Random Rules;
follow the rule entry.
The random-rule-table-marker is initially -1.
Table of Random Rules