I have a region in my game that flips all the east-west directions when you move through two rooms. It’s a reference to Trinity and it has a large in-game puzzle connected to it. Now, how would I make all easts become wests, and all wests become easts (and then, from that, I could do northwest-northeast and southwest-southeast). I can do all text description changes, but the actual direction changes? Is there an easy way that I can do this? (And even better, to a specific region but not the whole game?)
This is just some quick code. It can definitely be refined. But…
Include Exit Lister by Eric Eve.
The yard is a region. The Garden is a room in the yard. The Hedge Maze is west of the garden.
The chair is a pushable between rooms thing in the garden.
Before doing something when the location is in the yard:
if the current action is not pushing something to: [Exception to prevent double-reversal for the second action this always generates.]
if the noun is west:
now the noun is east;
else if the noun is east:
now the noun is west;
if the second noun is west:
now the second noun is east;
else if the second noun is east:
now the second noun is west;
1 Like
