Hybrid Choices

version 7 by AW Freyr

  • Home page
  • Beginning
  • Previous
  • Next



  • Part - Parser
    The reading a command activity has a truth state called the command accepted.
    The CYOA error message is a text variable. The CYOA error message is "That command isn't available in choice mode."
            
    After reading a command when in cyoa mode (this is the accept numbers rule):
        if the player's command matches "[a number]", now the command accepted is true.
            
    Last after reading a command when in cyoa mode (this is the print cyoa error message rule):
        if the command accepted is false:
            say "[CYOA error message][paragraph break]" (A);
            reject the player's command;
        else:
            now the command accepted is true.