Creating a Dialogue Script

riddler645
25 Oct 2010, 06:01
Hey everyone,

This is my first time using Quest and I need some help. I'm sure my question has been asked many times before, but I can't seem to find it so I'll ask here. I want to create a dialogue tree with my NPC with 4 distinct dialogue responses and an action. Here's how I would like for it to work.

-talk to person 1st time
"response 1"
-talk to person 2nd time
"response 2"
-talk to person 3rd time
"response 3"
-talk to person 4th time
"response 4"
-talk to person 5th time
specific action

how exactly do I set up this kind of dialogue scenario? tell me everything, I'm about as green as they come.

Tomsa
26 Oct 2010, 17:58
If I understand it correctly, you should do it this way:

1. create a numeric variable called dialogue, initial value 0.

2. in the speak option of the NPC, run script and choose select case

3. choose numeric variable dialogue, the add case 0 (the starting point), print message "bla bla", then increment numeric dialogue by 1

4. continue with case 1 (meaning numeric variable dialogue = 1), print message "yada yada" and increment above variable again by one

5, repeat until final dialogue option, do not increment variable, but choose your desired action

Hope this helps...

riddler645
27 Oct 2010, 07:31
Thanks so much!! It took me a while to figure out all the facets to this system, but it works brilliantly now. Should help with the rest of the game too.