jsp #1 Looks like your function object_type(bs.x , bs.y) doesn't return a string?Function object_type:String(bs.x , bs.y) Return "barrel"End Function