At a certain point in my mod, I need NPCs who start conversations with other NPCs to use the mod's custom Conversation.
The setup:
- An NPC is given an invisible "token" called "KnowsSomethingFunnyAboutThePlayer".
- In the mod's main quest's Conversation tab, a topic is created called: "FunnyThingAboutThePlayer".
- One Info is created called "I know something funny about the player." with these conditions:
- self.getItemCount KnowsSomethingFunnyAboutThePlayer > 0
- target.getItemCount KnowsSomethingFunnyAboutThePlayer < 1
- target.getIsId Player == 0
- self.getItemCount KnowsSomethingFunnyAboutThePlayer > 0
- This Info is not set as Random.
- Its Link From is HELLO.
- In the Result Script, the target is given the token "KnowsSomethingFunnyAboutThePlayer".
- The quest's Priority is set to 90.
With this setup, I assumed that NPCs with the token will always spread the token to NPCs without the token.
Unfortunately, when I test an NPC with the token with "npc.StartConversation otherNPC", the NPC doesn't ever use the above Conversation.
Edit: Nevermind. I got it to work by creating the topic as "HELLO".