Divinity Banner
Previous Thread
Next Thread
Print Thread
Global Dialogue Tutorial #551243
08/09/14 09:57 AM
08/09/14 09:57 AM
Joined: Aug 2014
Posts: 23
P
Platuni Offline OP
stranger
Platuni  Offline OP
stranger
P

Joined: Aug 2014
Posts: 23
There are several ways to trigger dialogue, if your NPC is not global all you have to do is assign your dialogue in the side bar.

However, when you make the NPC global you'll find that you cannot use the previous method.

Here are some ways to make it work:

1. A global script.
Make a new Goal in the Story Editor, name it "Start"
In the KB section, copy paste this then build:

IF
DialogStartRequested( _Char, _Player)
THEN
StartDefaultDialog( _Char, _Player);

You can now assign Dialogue just as before.
=====================================================
If you want more advanced dialogue, this is how you execute it:

Two/Three Speaker Dialogue

The script for a three Speaker Dialogue would be:

IF
DialogStartRequested(CHARACTER_YourNPC1, _Player)
THEN
DialogStartThreeSpeakerDialog("YourDialog",CHARACTER_YourNPC1,CHARACTER_YourNPC2, _Player);

Now, for this all you need is global turned on and the correct character names.

In the dialogue window, there are some important things to remember:
(Assuming you know how to make a basic dialog)

(If it's hard to read, right click and open in new tab)

I hope this helps, if you have any questions, i'm happy to answer.

Last edited by Platuni; 08/09/14 10:03 AM.
Re: Global Dialogue Tutorial [Re: Platuni] #553431
12/09/14 04:38 AM
12/09/14 04:38 AM
Joined: Aug 2014
Posts: 54
M
Mag Offline
journeyman
Mag  Offline
journeyman
M

Joined: Aug 2014
Posts: 54
How do you make the exclamation point appear above a characters head to indicate there is an opportunity for dialog?

Re: Global Dialogue Tutorial [Re: Platuni] #554137
13/09/14 12:20 PM
13/09/14 12:20 PM
Joined: Aug 2014
Posts: 54
M
Mag Offline
journeyman
Mag  Offline
journeyman
M

Joined: Aug 2014
Posts: 54
Found it. It looks like you loop this effect with:

PlayEffectAtCharacter("FX_GP_ExclamationMark_A",CHARACTER);

Re: Global Dialogue Tutorial [Re: Platuni] #555926
27/09/14 10:38 AM
27/09/14 10:38 AM
Joined: Sep 2014
Posts: 22
A
Anders K-R Offline
stranger
Anders K-R  Offline
stranger
A

Joined: Sep 2014
Posts: 22
I followed your guide, but I can't end dialogues with global characters. If I try the same with non-globals, I can end dialogues just fine. Any suggestions?


Powered by UBB.threads™ PHP Forum Software 7.6.2