So I want to have the jackpot increase by 1/10th the amount a player loses every time they lose.
For some reason the variable is always == 0.
I assume the reason is me..this is the line I'm using to increase the variable
if (%total < 0) { set %jackpot. $+ $chan $floor($calc($calc($($+(%,jackpot.,$chan),2) + $calc(0 - %total)) / 10)) }
While I'm sure there are multiple reason why this is poor coding and I'm happy to hear those reasons, what is the right construction for this?