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


Joined: 02 Sep 2004
Posts: 42

PostPosted: Wed Oct 06, 2004 7:42 pm   

help with a little math functionality
 
I'd like to know if this is possible.

mud output is as follows

There was a total of 1302832 coins earned. We each made a total of 651416 coins this run.

I'd like the mud output to dislplay comma's in the correct locations listed below.

There was a total of 1,302,832 coins earned. We each made a total of 651,416 coins this run.

Is this possible?
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Wed Oct 06, 2004 7:56 pm   
 
Try:
#TRIGGER {There was a total of (%d) coins earned. We each made a total of (%d) coins this run.} {
#psub %format( "&.0n", %1) %x1
#psub %format( "&.0n", %2) %x2
}
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