Graphic Links

version 2 by Jeff Sheets

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 3 - Clicking Graphlink Rules

    The clicking graphlink rules are a rulebook.

    Current graphlink x is a number that varies.
    Current graphlink y is a number that varies.

    A clicking graphlink rule (this is the default command replacement by graphlinks rule):
        repeat through the Table of Graphlink Glulx Replacement Commands in reverse order:
            if the current graphlink x >= p-left entry and the current graphlink x <= p-right entry and the current graphlink y >= p-top entry and the current graphlink y <= p-bottom entry:
                cancel input in main window;
                change the glulx replacement command to replacement entry;
                rule succeeds;
        now glulx replacement command is "".