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
liujc
Beginner


Joined: 02 Mar 2007
Posts: 23
Location: China, BeiJing

PostPosted: Fri Mar 09, 2007 1:46 am   

Is this possible?
 
My mud has some rooms which can go to more than 1 rooms with the same command. For example:
Using "down" command, randomly two rooms can be arrived. The name and description are the same, but the exits are different.
Can I judge the exits to distinguish which room I have enter? And when I double knicks the room, I can enter this room.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Mar 09, 2007 3:19 am   
 
As long as the two rooms themselves don't change as well (if you can get back to the weird room without hassle or if the down command is one-way only, it's a plus), you can do this quite easily with a three-state trigger:

#trigger {whatever matches your room name} {}
#trigger {whatever matches your description} {}
#trigger {exit line text label ({whatever matches Room1 exits|whatever matches Room2 exits})} {#case %ismember(%1,"whatever matches Room1 exits|whatever matches Room2 exits") {#teleport Room1Vnum} {#Teleport Room2Vnum}}
_________________
EDIT: I didn't like my old signature
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