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


Joined: 12 Oct 2000
Posts: 30
Location: Australia

PostPosted: Mon Jun 14, 2004 3:26 am   

triggering on a pattern or variable
 
Is there a way to make zmud expand a pattern or a variable when
making a trigger

i.e if i have an alias "add word name"

and I wish to make a trigger like #TR {word} {...} and want the word
to be all uppercase no matter how i type it when using the alias how can I do it?

I have tried #TR {%upper(%1)} and

#Var Temp %upper(%1) and #TR {@Temp} but both dont expand and just use them verbatim is there a way to make zmud do this?

cheers Rob
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jun 14, 2004 3:41 am   
 
#AL maketrigger {#EXEC {#TR {%upper(%1)} {-%2}}}
Reply with quote
rob
Novice


Joined: 12 Oct 2000
Posts: 30
Location: Australia

PostPosted: Mon Jun 14, 2004 3:51 am   
 
cheers works perfect now
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