Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
The1nk
Newbie


Joined: 09 Jun 2008
Posts: 5
Location: Blenheim, NJ

PostPosted: Mon Jun 09, 2008 6:58 am   

[2.26] "," in Number - Trigger help please!?!?
 
Hey.
On the mud I game, I want to be able to capture my HP into a variable, and if it's too low at key moments, I want to heal it back up. However, the issue with that is that in this mud, you have an extremely high amount of HP. I'm around level 2300 with about 57,000 health. That's the issue. it's not "57000", it's "57,000". What can I do with this to be rid of this blasted comma? "10,000" is less than "40,000" but "8,000" isn't. The comma throws the entire thing off! I just need some help with where to go on this one.. :-P

Thanks in advance. :)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jun 09, 2008 8:19 am   
 
Use %n to capture numbers with commas in them.

Charneus
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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