Use the function to force a conversation between two NPCs, starting with a specified topic. When you call this function on an actor, the actor will seek out the target actor in order to have a conversation, no matter where the two NPCs are currently.
You can also use it to have an NPC "force greet" the player, by setting the player as the TargetActor. The specified topic will be used instead of the normal Greeting topic, so you can have the NPC start the dialogue with any topic you like (use Greeting if you simply want the normal greeting).
StartConversation TargetActor, TopicID
[speaker location ref] - The Editor Reference ID for the speaker [target location ref] - The Editor Reference ID for the target [head track] - Enter 1 to enable head tracking during conversation. Enter 0 to disable. [allow movement] - Enter 1 to enable movement during conversation. Enter 0 to disable.
StartConversation Joe, SecretTopic StartConversation player, ForceGreetTopic StartConversation player, ForceGreetTopic ref.joe ref.player [headtrack=1] [allow movement=0]
- If called on an NPC who is in combat with the player, the NPC won't start conversation with the chosen topic but with the GREETING topic.
- Using the optional 'location refs' for speaker and target (ie preceding both with 'ref.') presumably facilitates AI pathing if movement is required to start the conversation, which appears especially useful for cell transitions.