StartConversation
Revision as of 07:07, 7 June 2007 by imported>Wkilleen
Description
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).
Syntax:
StartConversation TargetActor, TopicID
Optional Parameters
[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.
Examples:
StartConversation Joe, SecretTopic StartConversation player, ForceGreetTopic StartConversation player, ForceGreetTopic ref.joe ref.player [headtrack=1] [allow movement=0]