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


Joined: 25 Aug 2002
Posts: 3
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Weader
Newbie


Joined: 25 Aug 2002
Posts: 3
Location: USA

PostPosted: Tue Aug 27, 2002 3:17 pm   
 
Thanks a Ton!
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