Shipboard Directions

version 1/110709 by Samuel Byron

  • Home page
  • Beginning
  • Previous



  • Section 2 - Overriding compass directions

    Use shipboard directions translates as (- Constant DIRECTIONS_SHIP; -).

    A direction can be universal, compass, or shipboard. A direction is usually universal.
    North, south, east, west, northeast, northwest, southeast, and southwest are compass.
    Aft, fore, port, starboard, port bow, port quarter, starboard bow, and starboard quarter are shipboard.

    The specification of the direction conditions is "Essentially a kind of direction. Compass directions are not allowed to be used onboard ships or shipboard directions on land, but universal directions (like 'up' and 'out') can be used anywhere."

    The shipboard-only warning is some text that varies. The shipboard-only warning is "The compass directions have no meaning here.[paragraph break]".
    The compass-only warning is some text that varies. The compass-only warning is "The shipboard directions have no meaning here.[paragraph break]".

    To decide if onboard ship:
        if the shipboard directions option is active, decide yes;
        decide no.

    Rule for clarifying the parser's choice of south: do nothing.
    Rule for clarifying the parser's choice of starboard: do nothing.

    Does the player mean going south:
        if onboard ship, it is unlikely;
        otherwise it is very likely.
    Check an actor going (this is the going shipboard directions rule):
        if the noun is a direction:
            if onboard ship:
                if the noun is compass:
                    say "[shipboard-only warning]";
                    stop the action;
            otherwise:
                if the noun is shipboard:
                    say "[compass-only warning]";
                    stop the action.
    The going shipboard directions rule is listed before the can't go that way rule in the check going rulebook.

    Does the player mean examining south:
        if onboard ship, it is unlikely;
        otherwise it is very likely.
    Check examining (this is the examining shipboard directions rule):
        if the noun is a direction:
            if onboard ship:
                if the noun is compass:
                    say "[shipboard-only warning]";
                    stop the action;
            otherwise:
                if the noun is shipboard:
                    say "[compass-only warning]";
                    stop the action.

    Does the player mean pushing something to south:
        if onboard ship, it is unlikely;
        otherwise it is very likely.
    Check an actor pushing something to (this is the pushing shipboard directions rule):
        if the second noun is a direction:
            if onboard ship:
                if the noun is compass:
                    say "[shipboard-only warning]";
                    stop the action;
            otherwise:
                if the noun is shipboard:
                    say "[compass-only warning]";
                    stop the action.

    Does the player mean entering south:
        if onboard ship, it is unlikely;
        otherwise it is very likely.


    Shipboard Directions ends here.