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


Joined: 25 Jun 2002
Posts: 11

PostPosted: Wed Oct 22, 2003 2:16 am   

Comma Insertion
 
I would like to make a trigger that will insert commas correctly into any number sent from the mud over 3 digits in length. However, all of my attempts have resulted in infinite loops, since my mud prompt routinely has at least one 4 digit number. I am not very good at this trigger writing thing so I may be missing something rather simple.

THis is what I tried which doesn't work

Pattern: (%d)
Value: %format("&.0n",%1)

But I end up in a nasty loop.
Reply with quote
BoringCabbage
Newbie


Joined: 01 Sep 2003
Posts: 6

PostPosted: Wed Oct 22, 2003 11:26 am   
 
This seems to work.

Pattern: (%d)
Value: #substitute {%format( "&.0n", %1)}
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