|
Jezuit Beginner
Joined: 02 Nov 2002 Posts: 27 Location: USA
|
Posted: Sat Dec 06, 2003 8:11 am
Wildcard variables within Temporary Triggers |
Basically, on a Rom 2.4b mud, I made an auto-unlocker/auto-opener/auto-mover for myself because I was ... well, basically lazy. At any rate, I've created this trigger, but the %1's
Pattern:
The * is closed.
Value:
Code: |
open @lastdir
#TEMP {({Ok|It's locked}).} {#IF (%lower( %1) = "ok") {@lastdir} {#IF (%lower( %1) = "it's locked") {
unlock @lastdir
#TEMP {({You lack the key.|~*Click~*})} {#IF (%lower( %1) = "you lack the key.") {#ECHO {%1}} {#IF (%1 = "~*Click~*") {
open @lastdir
@lastdir
} {}}} "AutoOpenLock"
} {}
}} "AutoOpenLock" |
Basically, the "%1" value here, is trying to match "%1" from the original trigger... I want it to match %1 from the Temporary trigger... Hope this is enough information to see what's goin on. |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sat Dec 06, 2003 12:57 pm |
Add a second % to those that you do not want expanded right away.
|
|
|
|
Jezuit Beginner
Joined: 02 Nov 2002 Posts: 27 Location: USA
|
Posted: Sat Dec 06, 2003 7:20 pm |
Makes sense, thanks.
|
|
|
|
|
|
|
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
|
|