|
Malleus Novice
Joined: 05 Jan 2003 Posts: 45 Location: USA
|
Posted: Wed Mar 26, 2003 9:13 pm
Mapper question(stop making rooms) |
How do i make a trigger to tell my mapper not to map a room if i go 'N'(for example) and it says 'You cannot go north.' -since the mapper makes the room anyway, what should the trigger be?
thanks
/ Malleus / |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Mar 26, 2003 9:37 pm |
quote:
NODIR
Syntax: #NODIR
Removes the last direction from the command queue stored in the mapper. This command is used in triggers to ignore the last direction when a move step was unsuccessful.
NODIR Example
#TRIGGER {^You can't go that direction} {#NODIR}
#TRIGGER {(%w) is closed} {#DOOR %lastdir() %1;#NODIR}
Both of these examples get the mapper back in synch be removing the last direction moved to prevent a room from being created in that direction. The second example is more complex and actually creates a door in the given direction before removing the command from the stack.
#TRIGGER {^You cannot go {north|south|east|west|up|Down}} {#NODIR}
Ton Diening |
|
|
|
|
|