QUEST SETUP

Announcements, support questions, and discussion for the Dialogue System.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

Hey Toni

Please see attached image.

I set the IncrementOnDestroy in the AIs death event. Can you confirm its correct?
I am getting the below error

I have created a variable and called it "enemyBossKilled"
In the Dialouge trigger I have named it like this in the "Elements tab" Variable["enemyBossKilled" = 1
see second image





hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

Aha..
I was missing the greatest than sign. Thought i could get away with just equal.

Where do you recommend to hook up a sound clip to when a quest is completed?

Thank you Toni
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: QUEST SETUP

Post by Tony Li »

Hi,

In the Dialogue System Trigger's Conditions > Lua Conditions, I recommend using the "+" to specify the condition using dropdowns instead of typing it manually. Since you typed it manually, double check that your Lua condition is:

Code: Select all

Variable["enemyBossKilled"] >= 1
(Your screenshot is missing the "]")

You can select Actions > OnExecute() UnityEvent to add a UnityEvent that plays an Audio Source, or you can select Actions > Play Sequence to add a sequencer command that plays the audio (e.g., Audio(Congrats)).
Post Reply