Thels, /var should use = when being set and there's no reason to use $calc to increment a variable. Use /inc %chancount, or if you really want to use +1, then just put /var %chancount = %chancount + 1. It doesn't need $calc.