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
Arthy
Newbie


Joined: 12 May 2003
Posts: 8
Location: Switzerland

PostPosted: Mon May 12, 2003 9:33 pm   

Problem with Integers
 
I'm a bit experienced but..
I've managed to make a nearly successfull XP
counter for MUME but.. I don't get how to
handle such integers with zmud: '313,333'
That's the mud xp display. Zmud doesn't take
it as an integer number but as a text (seems
because of the crappy ','... *sigh*
My solution is to trigger var that way:
#TRIG ... {&integer_one,&integer_two} (313 and 333)
then to concat them to finally obtain '313333' wich zmud is capable to handle with #math (the rest of the xpcounter is allright)

Any way to directly handle these integer? It bugs when my trigger fires the small amount of xp like 345 xp (wich pattern doesn't fit..)

-One Ring to rule them All-
Reply with quote
Bremen
Novice


Joined: 26 Dec 2002
Posts: 33
Location: USA

PostPosted: Mon May 12, 2003 10:02 pm   
 
Use %n to match formatted (+/- or commas in it) numbers.
Thus:
#TRIG ... {(%n)] {#VAR integer %1}

--Bremen, zMUD 6.16 on WinME.
Reply with quote
Arthy
Newbie


Joined: 12 May 2003
Posts: 8
Location: Switzerland

PostPosted: Mon May 12, 2003 10:12 pm   
 
Uuh, I was searching that for days.
Wonder tough how I coulda miss it!

Thanks a lot, u rock!



-One Ring to rule them All-
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