tworld
tworld copied to clipboard
A choice-based shared online text environment sandbox
``` gentext.conjunct(ls, word='and') ``` Convenience function: given a bunch of strings (or texts), glue them together with commas and "and". Or "or". This will have to stream (like print()) rather...
Not all that easy to automate, unfortunately. Maybe in the build interface?
And maybe map(), filter(), zip()...? The hazards of supporting iterators in the Twython environment will need much meditation. But they gotta be safer than the "naive" implementation of range() as...
``` event3(str1, player1, str2, player2, str3=None) ``` Show one message to you, a second message to another player, and a third message to everyone else local. Suitable for "You whack...
Right now it's easier to invite players via an external URL than in the game world. Can we extend this to lobby-looking-for-group situations? You might want to invite a handful...
If an onenter hook invokes panic(), the player might get seriously stuck. (If they are foolish enough to set home to a trap room.) It's valid for a room to...
Possible uses for custom interworld links (that don't present themselves as, e.g., linking books). - A long walk from one Cavern neighborhood to another - Magic teleporters unrelated to the...
If an "on_say" property exists in a location, it is executed on any speech in the location. The speaker and the text are passed as arguments. This permits sound to...