Glulx Input Loops

version 1/101121 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Example: * No Typing Allowed - This simple example illustrates how to alter the main input loop to accept hyperlink input in lieu of line input. The hyperlink input requests and command replacement are handled automatically by the Inline Hyperlinks extension, so there is no need to use the input loop setup rules (see above).

        "No Typing Allowed"

        Include Glulx Input Loops by Erik Temple.
        Include Inline Hyperlinks by Erik Temple.

        The Green Room is a room. "You can [link]go south[end link]."
        
        The Stage is south of the Green Room. "You can [link]go north[end link]."
        
        The focal event type of main input is hyperlink-event.