Hey,

for AI taking over we have a flag in StatusData called LoseControl.
You could make a custom status that has the LoseControl value set to True. Anyone with that status assigned would then be taken over by AI. As an insight in some of the current takeover situations:

- Taunt: LoseControl = true, so player is Ai controlled + prefers attacking taunter
- Charm: player is Ai controlled, just changes alignment (temporarily)
- Chicken: LoseControl = true, script overrides Ai for flee behaviour
- Fear: player is Ai controlled, script overrides Ai for flee behaviour

Last edited by Larian_KVN; 25/09/17 01:26 PM.

CTRL+K the elf