Hybrid Choices

version 7 by AW Freyr

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Understanding Choices
    Choosing is an action applying to a number.
    Understand "[a number]" as choosing when in CYOA mode.
    Check choosing (this is the can't choose when not in CYOA mode rule):
        if not in CYOA mode:
            say "You don't have a choice to make... you are playing in interactive mode." (A) instead.
    [Check choosing (this is the can't choose whilst no choices are offered rule):
        if the current page turns to no pages:
            say "This page doesn't offer any choices." (A) instead.]
    Check choosing (this is the can't choose a number for a non-existent choice rule):
        if the number understood is not an index listed in the table of currently available choices:
            say "There is no choice corresponding to that number." (A) instead.
    A page has an object called a cyoa teleport. The cyoa teleport is usually nowhere. A page can be no-look.
    Carry out choosing (this is the standard carry out choosing rule):
        let K be the decision corresponding to an index of number understood in the table of currently available choices;
        carry out the selecting activity with K;
        try looking;
        if the current page is an end-page or the current page is no-page:
            switch from cyoa.
    [ if the cyoa teleport of the current page is a room and the current page is no-look:
            move the player to the cyoa teleport of the current page, without printing a room description;
        else if the cyoa teleport of the current page is a room:
            move the player to the cyoa teleport of the current page.]