Calculating time till next level.. Need Help

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Sat Sep 18, 2004 1:39 am

Why not borrow what works until you know what you are doing?

Code: Select all

/varset TotalExp ${Math.Calc[${Me.PctExp}-${StartExp}]}
is functionally equivalent to

Code: Select all

/varcalc TotalExp ${Me.PctExp}-${StartExp}

Neolesh
a hill giant
a hill giant
Posts: 231
Joined: Mon Aug 23, 2004 11:15 am

Post by Neolesh » Sat Sep 18, 2004 1:41 am

Ahh I see, for some reason I thought that "float" had to be in there so it would add and subtract with decimal places. I will try this out.