First off, I haven't tried this but if if you say it works, then it's brilliant. You have somewhat gotten around the lack of useable variables by using
incstate. Very nicely done.
I normally use a light to assign the AI Main script to because it can't be used or destroyed, and can be placed outside, above or below the accessible area of the map.
Thanks for sharing this.
Best.
(NOTE: this should be made into a graphical tut and posted in the proper tut sticky)
I'm sorry, my answers are limited. You must ask the right question.