Metagame and Fixes

version 1/080708 by Jason Catena

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Travel with

    A thing has a room called destination. The destination of a thing is usually nothing.

    [One step at a time.]
    Traveling is an action applying to one thing. Understand "travel with [something]" as traveling. Understand "guide by [something]" as traveling.

    The traveling action has a direction called the guided dir.

    Setting action variables for traveling something (called item) (this is the define traveling variables rule):
    change the guided dir to the best route from the location of the player to the destination of the item.

    Check an actor traveling something (called item) (this is the check actor traveling rule):
    if the destination of the item is nothing begin;
    if the actor is the player begin; say "[The item] doesn't belong anywhere.";
    otherwise; say "[The actor] remains."; end if;
    stop the action;
    end if;
    if the destination of the item is the location of the player begin;
    if the actor is the player begin; say "[The item] seems to belong here.";
    otherwise; say "[The actor] remains."; end if;
    stop the action;
    end if;
    [player can't cheat by giving the item to someone else and following it to a place not yet visited]
    if the destination of the item is not visited begin;
    if the actor is the player begin; say "[The item] doesn't belong anywhere you've been.";
    otherwise; say "[The actor] remains."; end if;
    stop the action;
    end if;
    if the actor is the player, say "[The item] leads you [guided dir]."

    Carry out an actor traveling something (called item) (this is the do actor traveling rule):
    try the actor going the guided dir.