I have a problem with this script. It works perfectly fine when i launch it in the battle test, but in the actual game an error comes up reading
"Earthbound-ish Odometer Roll" line 168: NoMethodError occurred
undefined method '>' for nil:NilClass
Can someone please tell me how to fix this?