Is there a way to change the directional commands? I don’t mean substituting them with other words, but rather to make everything backwards? Here is an example of what I want to do after the player takes a particular object, although I know this text doesn’t actually work (the [the object] is not actually part of the text). I didn’t finish all the directions, but I’m sure you get the idea:
Carry out taking [the object]:
now north is south;
now northeast is southwest;
now east is west;
now southeast is northwest.
I checked the manual under 3.2, but I couldn’t seem to find anything regarding what I want to accomplish.
You’ll have to approach it from what the practical effect would be. If you want the player’s commands to do the opposite of what they typed, then:
Before going when the Particular Object is handled:
if the noun is:
-- north:
now the noun is south;
-- south:
now the noun is north;
-- east:
now the noun is west;
-- west:
now the noun is east;
[and so on]
Unfortunately it does not. You’d have to write individual rules for each of those. But given the constraints in the standard rules (you can’t take something you already have, for instance) it might be cleaner to change the parsing.
Understand "drop [things]" as taking when [conditions]. Understand "take [things]" as dropping when [conditions].
No. The phrase “the opposite of” is defined specifically for directions. You’ll have to do it action by action (being careful to avoid infinite loops).
Reversed is a truth state that varies.
After reading a command: now reversed is false.
Instead of taking when reversed is false:
now reversed is true;
try dropping the noun.
Instead of dropping when reversed is false:
now reversed is true;
try taking the noun.