 |
Weader Newbie
Joined: 25 Aug 2002 Posts: 3 Location: USA
|
Posted: Sun Aug 25, 2002 10:04 pm
Need help with #MATH |
In the mud I play it tells me how much exp I need to get to get to the next lvl. But only when I type Status or click the button I made. What I want is that EXP to be added to a button or status bar without having to type status every time I kill a mob. I got 2 triggers to capture the EXP pattern from a kill and the EXP I need to lvl when I lvl up.
What I need help with is #math I want it to automatically subtract the exp I get from a kill from the exp I have left to lvl, then make a new exp variable to display it in easy terms
#MATH V1-V2=V3
#VAR newexp %1
V3= New exp
V2= Exp to lvl
V1= Exp got from kill
Then I have a Var @newexp waiting for when I get a # in it to display it on my status bar. Is there any way anyone can help me |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Aug 25, 2002 11:50 pm |
YThe syntax of the #MATH command is clearly stated at the top of its helpfile, which includes several examples.
Syntax: #MAT variable expression
You have to use this syntax or zMUD won't know what to do.
Anyway, if you want to keep track of experience to level you need to update V2, not create a third variable.
V1 = exp from kill
V2 = exp remaining to level
#MATH V2 {@V2 - @V1}
LightBulb
Senior Member |
|
|
 |
Weader Newbie
Joined: 25 Aug 2002 Posts: 3 Location: USA
|
Posted: Tue Aug 27, 2002 3:17 pm |
Thanks a Ton! 
|
|
|
 |
|
|