Page 3 of 3

Re: QUEST SETUP

Posted: Mon Nov 29, 2021 7:03 am
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






Re: QUEST SETUP

Posted: Mon Nov 29, 2021 7:15 am
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

Re: QUEST SETUP

Posted: Mon Nov 29, 2021 9:04 am
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)).