Page 2 of 3

Re: QUEST SETUP

Posted: Wed Nov 24, 2021 6:43 pm
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


Re: QUEST SETUP

Posted: Wed Nov 24, 2021 8:09 pm
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.

Re: QUEST SETUP

Posted: Thu Nov 25, 2021 6:07 pm
by hrohibil
I did that,
When i kill my enemy AI nothing happens in regards to quest?

Re: QUEST SETUP

Posted: Thu Nov 25, 2021 6:35 pm
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?

Re: QUEST SETUP

Posted: Thu Nov 25, 2021 7:52 pm
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

Re: QUEST SETUP

Posted: Thu Nov 25, 2021 9:59 pm
by Tony Li
Yes, set the increment to 1 and connect OnIncrement() to the Dialogue System Trigger's OnUse method.

Re: QUEST SETUP

Posted: Fri Nov 26, 2021 1:37 am
by hrohibil
Is it because the actual enemy/ GameObject has to disappear from scene?

Because he is not removed Immediately when he dies.

Cheers?

Re: QUEST SETUP

Posted: Fri Nov 26, 2021 2:17 am
by hrohibil
Here is picture


Re: QUEST SETUP

Posted: Fri Nov 26, 2021 3:52 am
by benettonb1
this post is really helpful for me thank you for sharing
b2b spice myfiosgateway com

Re: QUEST SETUP

Posted: Fri Nov 26, 2021 8:10 am
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.