-- Global Variables allOk = true standing = false guidePositionReached = false prisonerReachedLock = false hangarReached = false function alert(timestep) allOk = false return true end function prisonerInLock(timestep) return true end function standUp(timestep) return false end function goToGuidePosition(timestep) return false end function goToHangar(timestep) return false end function tick(timestep) if not allOk then standing = standUp(timestep) end if standing and not guidePositionReached then guidePositionReached = goToGuidePosition(timestep) end if guidePositionReached and prisonerReachedLock then hangarReached = goToHangar(timestep) end if hangarReached then return true end return false end