The primary key on the custom_context table doesn't allow for the same event on different NPCs. https://github.com/MinLL/MinAI/blob/main/ModdersGuide.md#minai_setcontextnpc The `npcname` field should be added to the primary key, otherwise you can't have the same thing for multiple actors. ``` Error Message:duplicate key value violates unique constraint "custom_context_pkey" Key (modname, eventkey)=(exampleMod, exampleKey) already exists. ```
The primary key on the custom_context table doesn't allow for the same event on different NPCs.
https://github.com/MinLL/MinAI/blob/main/ModdersGuide.md#minai_setcontextnpc
The
npcnamefield should be added to the primary key, otherwise you can't have the same thing for multiple actors.