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
benny1564
Novice


Joined: 22 Jun 2004
Posts: 48

PostPosted: Sat Nov 12, 2005 8:34 am   

Trouble with wildcards in triggers created with an alias
 
Hi, I need an alias that creates a trigger that does something with the first wildcard in the trigger, %1.
But if I enter
#alias (temporary) {#temp {monster (%d)} {#echo %1 monsters}}
the %1 in the #echo will be treated as the next word after the alias. How do I make it work?
_________________
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Nov 12, 2005 1:11 pm   
 
%%1
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
benny1564
Novice


Joined: 22 Jun 2004
Posts: 48

PostPosted: Sat Nov 12, 2005 4:44 pm   
 
Oke, but if I want a trigger, that creates a trigger, that creates a trigger with a wildcard... How would I do that?
_________________
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sat Nov 12, 2005 5:12 pm   
 
%%%1 %%%%1 %%%%%1

But usually when you start using more and more %%%%%%%%%1's its time to think of a better way to do the script :p
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
benny1564
Novice


Joined: 22 Jun 2004
Posts: 48

PostPosted: Sat Nov 12, 2005 5:14 pm   
 
Thank you!
_________________
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