Slight calc problem.
Posted: Sat Jul 24, 2004 2:26 pm
I've seen the spell cast count mod some people have done to their UI and applied it to my own. Works fine. I've recently wanted to add 1 decimal place to the result so I can tell if I'm close to being able to cast it, so I get a 0.9 instead of a 0
Anyway the problem I have is I get a "divide by zero in calculation" error whenever a spellgem is empty.
Code goes as
Also tried placing the float inside the if statement. Can anyone see the problem that I am missing?
Anyway the problem I have is I get a "divide by zero in calculation" error whenever a spellgem is empty.
Code goes as
Code: Select all
${Float[${If[${Me.Gem[2].Mana}==0,0.0,${Math.Calc[${Me.CurrentMana}/${Me.Gem[2].Mana}]}]}].Deci}