|
NovaWo1f Newbie
Joined: 02 Jun 2002 Posts: 8 Location: USA
|
Posted: 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"?
|
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Thu Jul 25, 2002 4:56 am |
This is what I've used:
#TR {The door is closed.} {open %lastcom; %lastcom2}
Troubadour |
|
|
|
NovaWo1f Newbie
Joined: 02 Jun 2002 Posts: 8 Location: USA
|
Posted: Thu Jul 25, 2002 5:11 am |
lastcom, wouldn't have thought of that. Thanks alot!
|
|
|
|
DarKarvin Beginner
Joined: 26 Jul 2002 Posts: 12 Location: USA
|
Posted: Fri Jul 26, 2002 9:20 pm |
Is there any way to make it so it sends open north instead of just open n?
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
|
|