How to send an event to a npc with variable number updated (quest indicator)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Adeoon
Posts: 33
Joined: Fri Dec 02, 2022 5:53 am

How to send an event to a npc with variable number updated (quest indicator)

Post by Adeoon »

Hello, I have problem with quest indicator. Player go to npc, start quest, then player has to collect the wood and go to another npc. At the start of the game indicator is showing at the top of the npc correctly, If player accept the quest it's still good, cause indicator hide immediately. Then player has to click 3x time on the gameobject to collect the wood, every click gives player one wood, it works, the variable is updating and alert is showing, but what I want to do is to send some event to another npc, which would check wood number. I attach 2 screens, one with wood collector configuration and second npc quest state listener. I wanted to do that with lua code and check that condition. But yeah unfortunately my wood collector is not sending event to npc which should check the wood number every time that number change. How to do it and is it possible to avoid coding, If not would love to see some example. Thank you in advance!
Attachments
Zrzut ekranu_20221202_125923.png
Zrzut ekranu_20221202_125923.png (58.97 KiB) Viewed 177 times
Zrzut ekranu_20221202_125655.png
Zrzut ekranu_20221202_125655.png (42.52 KiB) Viewed 177 times
User avatar
Tony Li
Posts: 21962
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to send an event to a npc with variable number updated (quest indicator)

Post by Tony Li »

Hi,

This is similar to the kill quest in DemoScene1. As the player shoots each enemy, it sends an event to a different GameObject. For a detailed explanation with screenshots, see: How To: Set Up Quests Without Conversations
Post Reply