"triggerXXX = AiLevel" means CPU controlled, with AILevel going 1 to 8, depending on Difficulty settings in the Options.
"triggerXXX = !AiLevel" means human controlled.
No need for any AI activation shit with variables and all, AiLevel alone does the job.
Is it possible that this will work:
[State -1, Activate AI]
type = VarSet
triggerall = var(59) = 0
triggerall = !isHelper
trigger1 = AiLevel = 8
v = 59
value = 1
This is a streamlined AI activation code when you are too lazy to completely redo your entire AI.