Originally Posted by Larian_KVN
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


Thanks for the reply. I actually saw that and used it but whenever I make a custom Status effect and use it in the stats editor with a custom spell the spell has no effect. I run into the same problem even when I use an already existing effect but changes its name.

I saw the LoseControl and also the Can Interact (or whatever the name) lines but as long as my custom status effect doesn't work in any way I can't make use of it. I'll try another approach of not copying any existing effect but instead creating a brand new one just using the LoseControl. Hopefully it will work.

I also encounter many bugs in my other mod created that simply spawn a trader in the 4 acts. For some unknown reason some players can't see the trader and only in some of their saves even if they don't have any other mod installed.

All those issues are really annoying as I have many ideas of mods but can't make them happen because of bugs (maybe I misunderstand some things in the engine but for the trader, and even the spell, I followed your "Larian guide" meticulously so I doubt I made a big mistake).