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


Joined: 15 May 2003
Posts: 16
Location: Estonia

PostPosted: Mon May 17, 2004 6:30 pm   

problem with #temp triggers
 
#TEMP {(%w)%s~: Before the Gates} {#EXECUTE %1}

if i enter this line to command line it works fine, but if i use it in an alias no trigger is created, where is the catch?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 18, 2004 2:51 am   
 
It works exactly as expected.
#AL test {#TEMP {(%w)%s~: Before the Gates} {#EXECUTE %1}}
test
creates a #TEMP trigger with pattern
(%w)%s~: Before the Gates
and value
#EXECUTE

test run
creates a #TEMP trigger with pattern
(%w)%s~: Before the Gates
and value
#EXECUTE run

test #BEEP
creates a #TEMP trigger with pattern
(%w)%s~: Before the Gates
and value
#EXECUTE #BEEP

I don't see a problem. What did you expect it to do?
Reply with quote
mega_
Beginner


Joined: 15 May 2003
Posts: 16
Location: Estonia

PostPosted: Thu May 20, 2004 9:12 am   
 
Ah, thanks, i think i see my stupidity.

So if i'd want to execute the parameter matched by (%w) i need to do it like this right?:

#AL test {#TEMP {(%w)%s~: Before the Gates} {#EXECUTE %%1}}

thanks ;)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 20, 2004 7:18 pm   
 
Yes. And now I see what you expected it to do.
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