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
Jezuit
Beginner


Joined: 02 Nov 2002
Posts: 27
Location: USA

PostPosted: 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.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Dec 06, 2003 12:57 pm   
 
Add a second % to those that you do not want expanded right away.
Reply with quote
Jezuit
Beginner


Joined: 02 Nov 2002
Posts: 27
Location: USA

PostPosted: Sat Dec 06, 2003 7:20 pm   
 
Makes sense, thanks.
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