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


Joined: 29 Jan 2002
Posts: 14
Location: USA

PostPosted: Sat Mar 16, 2002 6:01 am   

#-# triggering
 
I was wondering how i would make a color trigger, so that any number in between 50 and 1000 followed by the letters tnl would turn bright green. Any help i greatly appreciate. :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 16, 2002 7:59 am   
 
Enter this at the command line:
#TR {(%d)tnl} {#IF ((%1 > 50) AND (%1 < 1000)) {#CW 10}

LightBulb
All scripts untested unless otherwise noted
Reply with quote
necropsian
Beginner


Joined: 29 Jan 2002
Posts: 14
Location: USA

PostPosted: Sat Mar 16, 2002 8:08 am   
 
Now whenever my prompt line pops up, zMUD sends '{#IF' to the mud
Reply with quote
necropsian
Beginner


Joined: 29 Jan 2002
Posts: 14
Location: USA

PostPosted: Sat Mar 16, 2002 8:10 am   
 
nevermind, i just deleted the { before #IF and it works fine now, thanks :)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 16, 2002 3:00 pm   
 
Correction:
#TR {(%d)tnl} {#IF ((%1 > 50) AND (%1 < 1000)) {#CW 10}}

LightBulb
All scripts untested unless otherwise noted
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