Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Malleus
Novice


Joined: 05 Jan 2003
Posts: 45
Location: USA

PostPosted: 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 /
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net