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
wulv
Newbie


Joined: 01 Oct 2004
Posts: 9

PostPosted: Thu Oct 07, 2004 6:31 pm   

Door Opener
 
Right now I have a script that opens the door if I try to go through it...Example

#TRIGGER {(%w) is closed.} {open %1}

This works great and makes my life grand...but I sometimes enter an area with two doors...to the south and the east (as an example) I want to move south so I type "s" and the script does "open door" BUT the door it just opened was the door to the east...so I have to type "open door s"

Is there a way to make a script that will know what direction I just tried to go and tag it on the end of any "open door" scripts...

I.E. If I type "s" and there is a door south the script will "open door s"

Thanks...
Reply with quote
Targa
Newbie


Joined: 07 Oct 2004
Posts: 9

PostPosted: Thu Oct 07, 2004 7:59 pm   
 
This was just covered here: http://forums.zuggsoft.com/phpbb/viewtopic.php?t=17684

#TR {(%w) is closed} {open %1 %lastcom}

It could be %lastcom2 or %lastcom3, to be sure just type #var by itself immediately after trying to trigger a door opening.
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