/***************************************************************************** * Copyright (c) 2023 Echo Hollow. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes software developed by Echo Hollow." * 4. Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY COPYRIGHT HOLDER "AS IS" AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO * EVENT SHALL COPYRIGHT HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *****************************************************************************/ :: Choose The <<choose>> macro is useful for presenting a scene, optionally with branching choices, to the player in bite-sized chunks, rather than beating him about the face with a wall-o-text. The macro presents you with a set of choices. When something is picked, the choices are collapsed and the section pertaining to the choice is displayed. Choices can be nested to present several sections in sequence. Or, if that gets too ugly (as it often the case with longer passages), you can use the <<include>> macro to make things a little cleaner.
(There ought not be a space between the colons in the passage headers in the following code block, but TweeGo doesn't like it otherwise.)
{{{ : : Choose Test You have several choices, in figuring out how this thing works. <>\ You'll have to decide, if you want to finish your project. <>\ <> <>\ <> <>\ <>\ <>\ : : Figure it Out You read the documentation, and are enlightened. This allows you to make your game just great! Now that you are finished, you realize that choices can be nested. <>\ That hit the spot! You win! <>\ Eh, I'd rather have a beer, but to each their own! You win! <> : : Give Up You lose! }}}

<> :: Choose Test You have several choices, in figuring out how this thing works. <>\ You'll have to decide, if you want to finish your project. <>\ <> <>\ <> <>\ <> <> :: Figure it Out You read the documentation, and are enlightened. This allows you to make your game just great! Now that you are finished, you realize that choices can be nested. <>\ That hit the spot! You win! <>\ Eh, I'd rather have a beer, but to each their own! You win! <> :: Give Up You lose!