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


Joined: 02 Jun 2002
Posts: 8
Location: USA

PostPosted: Thu Jul 25, 2002 4:26 am   

Auto-opening closed doors?
 
Just curious, would it be possible to store what direction you're going on a var, then if you encounter a closed door, open it? So, say i go north. But its door is closed, i get a message saying "The door is closed." could i somehow get it to "open n"?
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Thu Jul 25, 2002 4:56 am   
 
This is what I've used:

#TR {The door is closed.} {open %lastcom; %lastcom2}

Troubadour
Reply with quote
NovaWo1f
Newbie


Joined: 02 Jun 2002
Posts: 8
Location: USA

PostPosted: Thu Jul 25, 2002 5:11 am   
 
lastcom, wouldn't have thought of that. Thanks alot!
Reply with quote
DarKarvin
Beginner


Joined: 26 Jul 2002
Posts: 12
Location: USA

PostPosted: Fri Jul 26, 2002 9:20 pm   
 
Is there any way to make it so it sends open north instead of just open n?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Tue Jul 30, 2002 2:39 pm   
 
#TR {The door is closed.} {open %item("north|south|east|west|up|down",%ismember(%copy(%lastcom,1,1),"n|s|e|w|u|d")); %lastcom2}

Something like that

Ton Diening
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jul 31, 2002 3:28 pm   
 
If you are using the number pad to move around, you could replace all the numpad macros with the long version of their commands.
Start by making the System|Keypad and System|KeypadDiag classes "Disable class when connecting to a MUD". Now copy these two classes to the None class, and make the copies "Enable class when connecting to a MUD". Then edit each macro in the new classes, replacing "n" with "north", "sw" with "southwest", etc.

LightBulb
Senior Member
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