(global short thirtynine 0)
(script continuous increment
(if
(<= (ai_status [AI ENCOUNTER]) 2)
(begin
(set thirtynine (+ thirtynine 1))
(sleep 30)
)
(begin
(set thirtynine 0)
)
)
)
(script startup migration
(sleep_until (= thirtynine 120) 15)
(ai_migrate [AI ENCOUNTER] [MIGRATE TO ENCOUNTER])
)
Personally, I like how the AP Computer Science test has such interesting ways to solve simple problems. I think it's influencing me. This script waits for two minutes of inactivity, before migrating the encounter to another one.