import GameLogic as G Controller = G.getCurrent() OwnerObject = Controller.getOwner() MyProperty = OwnerObject.Number if MyProperty <= 25: print MyProperty MyProperty += 1 else: print "Finished"