ok, jooel's submission gets the following:

ERROR : undefined variable [$b]!
Script: C:\kixpad\ship.KIX
Line : 1045