|
kizmet Newbie
Joined: 20 Jan 2004 Posts: 3 Location: USA
|
Posted: Wed Jan 21, 2004 1:17 am
stupid trigger question |
I want to set triggers to open doors for me so I dont have to take the time ...
The mud i play shows a closed door with brackets:
[Exits: north [east] south west [up] down]
In that situation east and up are closed.
When I try to do it I get a recursive trigger cause the system doesn't recognize the [] and when it tries to open east it starts the trigger all over again ...
anyway to get the program to recognize charaters like ~ and [] ? |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Jan 21, 2004 1:30 am |
#TR {[(%w)]} {unlock %1;open %1}
|
|
|
|
kizmet Newbie
Joined: 20 Jan 2004 Posts: 3 Location: USA
|
Posted: Wed Jan 21, 2004 1:42 am |
That still give me a trigger loop
is it ecause I am using 6.66 and it is a beta version? |
|
|
|
Danlo Magician
Joined: 28 Nov 2003 Posts: 313 Location: Australia
|
Posted: Wed Jan 21, 2004 1:57 am |
The ~ symbol is used to indicate that the following should not be parsed as a special character:
#trigger {~[({east|north|west|south|up|down})~]} {unlock %1;open %1}
This trigger will only run once every time you receive the exits line, so if you have 2 or more doors in a single exit line, you'll need to receive the exits line again for it to open the second door etc. |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Jan 21, 2004 2:07 am |
Do exits show in your prompt or something?
|
|
|
|
|
|