QUEST SETUP

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

Re: QUEST SETUP

Post by hrohibil »

The link you gave to the How To: Set Up Quests Without Conversations, see my image.
I put the destroy and increment GO on my enemy.
Where sjhould i put the trigger component, becuase this just for that one enemy but your example showsif there is 5 enemies

User avatar
Tony Li
Posts: 21079
Joined: Thu Jul 18, 2013 1:27 pm

Re: QUEST SETUP

Post by Tony Li »

If the requirement is to kill only one enemy, you can put the Dialogue System Trigger on the same GameObject as the Increment On Destroy component.
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

I did that,
When i kill my enemy AI nothing happens in regards to quest?
User avatar
Tony Li
Posts: 21079
Joined: Thu Jul 18, 2013 1:27 pm

Re: QUEST SETUP

Post by Tony Li »

Did you connect the Increment On Destroy component's OnIncrement() event to the Dialogue System Trigger's OnUse method? And does the Dialogue System Trigger set the quest state to success?
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

Hey Toni

This part i did not do:
Did you connect the Increment On Destroy component's OnIncrement() event to the Dialogue System Trigger's OnUse method

Rest was done. But still no completed quest when i kill my ai.

Do i need to set the increment to 1? It is on 0 now
User avatar
Tony Li
Posts: 21079
Joined: Thu Jul 18, 2013 1:27 pm

Re: QUEST SETUP

Post by Tony Li »

Yes, set the increment to 1 and connect OnIncrement() to the Dialogue System Trigger's OnUse method.
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

Is it because the actual enemy/ GameObject has to disappear from scene?

Because he is not removed Immediately when he dies.

Cheers?
hrohibil
Posts: 358
Joined: Thu Nov 04, 2021 12:50 pm

Re: QUEST SETUP

Post by hrohibil »

Here is picture

benettonb1
Posts: 1
Joined: Thu Nov 25, 2021 3:12 pm

Re: QUEST SETUP

Post by benettonb1 »

this post is really helpful for me thank you for sharing
b2b spice myfiosgateway com
Last edited by benettonb1 on Wed Dec 08, 2021 2:33 am, edited 1 time in total.
User avatar
Tony Li
Posts: 21079
Joined: Thu Jul 18, 2013 1:27 pm

Re: QUEST SETUP

Post by Tony Li »

hrohibil wrote: Fri Nov 26, 2021 1:37 amIs it because the actual enemy/ GameObject has to disappear from scene?

Because he is not removed Immediately when he dies.
Yes, that's probably the reason. Remember that, in this case, you need to configure your death event to call IncrementOnDestroy.TryIncrement.
benettonb1 wrote: Fri Nov 26, 2021 3:52 amthis post is really helpful for me thank you for sharing
I'm glad you find it helpful! Make sure to look over See: How To: Set Up Quests Without Conversations, which has screenshots and a detailed explanation of how to set up quests like kill quests and collection quests.
Post Reply