See lines 12 and 13. If neither of these events are true (which is down to random chance), then tickx('speed') is 0, so 'normspeed' stays the same. Where are you going with this anyway? Is it some crazy game? :S
By the way... you can add attachments to any posts... you dont have to put them all in the upload forum!