I get most of it, but I am confused by this line:
if ((gear_shifting=1) and (gear_count=10)) then shift
do you have to press the top button of your joystick 10 times to shift?
I'm still learning this code so if this is a stupid question feel free to flame me.