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
QUEST SETUP
Re: QUEST SETUP
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
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
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:
(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)).
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
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)).