In OpenTTD, AIs are located in separate files.
OpenXcom can use this way.
I think, this is not executable script. This is description of the settings AI.
For example (for sectoid, floater, etc):
stage1 : seek
percentTU: 50 https:// maximum TU for search target
stage2 : destroy
STR_PSI_AMP: 25 https:// prioritet of weapons (if have) and maximum TU for use it (if have)
STR_ALIEN_GRENADE: 60
STR_BLASTER_LAUNCHER: 60
STR_SMALL_LAUNCHER: 50
STR_HEAVY_PLASMA: 40
STR_PLASMA_RIFLE: 40
STR_PLASMA_PISTOL: 40
stage3 : cover
percentTU: 100 https:// maximum TU for search cover
Reapers, Crysalids, Zombie, etc each must have own script.