|
Arthy Newbie
Joined: 12 May 2003 Posts: 8 Location: Switzerland
|
Posted: 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- |
|
|
|
Bremen Novice
Joined: 26 Dec 2002 Posts: 33 Location: USA
|
Posted: 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. |
|
|
|
Arthy Newbie
Joined: 12 May 2003 Posts: 8 Location: Switzerland
|
Posted: 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- |
|
|
|
|
|