|
liujc Beginner
Joined: 02 Mar 2007 Posts: 23 Location: China, BeiJing
|
Posted: 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. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|