Jump to content

How can you make an NPC begin a conversation with the player?


samv96UK

Recommended Posts

For a part of a quest I am creating I want an NPC to begin a conversation with the player without the player actually going up to him and talking to him.

 

I assume this is done by the player entering a trigger box, which begins a conversation, but I'm not sure how to pull this off exactly.

 

Below is the situation I want to create:

 

The player walking along the road, then a conversation starts when the player is near the NPC. The NPC then begins a conversation: "Excuse me, do you have a moment? I was wondering if you could help me?"

Link to comment
Share on other sites

Actually you don't need a trigger.

 

As listed above you just need a forcegreet package, conditioned to a particular stage of the quest.

 

So let's say that before coming to that NPC you are at stage 20.

 

- Create a BLOCKING Branch with your dialogue, condition in to stage 20.

 

- Make your NPC an alias if not already done

 

- Create a Forcegreet package, fill the "topic" field with the new blocking branch.

 

- Fill the other parameters, wich will tell the NPC from what distance he'll run at you, what should he do while waiting you (so when you're at stage 20 but let's say in another city), if he'll need a line of sight to run at you, if he can sandbox while waiting for your and with what radius. Also, usually i make the starting point of the package as "near package start location" with a large radius (assuming that prior to this he was sandboxing). Condition the package to stage 20 too.

 

- Drag this new package in the the NPC alias.

 

- Remember that you must call a new stage when all the dialogues after the forcegreet end (basically when you quit the conversation). If you don't do, as soon as you quit he'll forcegreet you again, since the condition is still valid.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...