Organize multiple variables in a chart so you can keep track of settings easier.
IE Here is a simple AI Attack pattern that changes according to the area the player is in.
if ssnarea 10000,1 then
set v50,1
endif
if ssnarea 10000,2 then
set v50,2
endif
if ssnarea 10000,3 then
set v50,3
endif
To turn it off use v50,0 which is Null in the chart.
Null AI is usually regarded as stationary and set to Green