View Single Post
Lt. Commander
Join Date: Dec 2007
Posts: 120
# 5
04-14-2011, 08:46 AM
Triggers are certainly the easiest way to do that. I agree.

However, personally, I prefer having NPC default pop-ups as they allow a player to talk more than one with NPCs.

What you will have to do is set a first "opening" dialog box to an NPC. You can then add several response-buttons to that dialog and assign them states. An example:

The NPC says "Yes, Captain?"
The first button is a simple "Never mind." which ends the dialog. The second button could be "How are you?" with a state that hides with completing the first objective - which is, for example, a fight.
A third button could be "Are you all right?" and it's state is set to become visible with the second objective (which is after the fight is over).

Now what happens is this: Before the fight, whenever you talk to the NPC, a button would appear that lets you ask him how he feels. After the fight, this button is gone and you can instead ask him, if he is alright.