Far Away

version 5 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - The Access Flag

    [ This is needed to stop the rules being considered every time the parser considers what's in scope. It should force the rules to only be run once, although it might be the case that if a command *succeeds* and then a visible item call is made, the rules get run again. That might need some more thought! ]

    Access-flag is a number that varies.
    Access-flag is 0.

    A before rule:
    if the action requires a touchable noun, change access-flag to 1;
    if the action requires a touchable second noun, change access-flag
    to 1;

    A turn sequence rule: change access-flag to 0.