How to send an event to a npc with variable number updated (quest indicator)
How to send an event to a npc with variable number updated (quest indicator)
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 (58.97 KiB) Viewed 177 times
-
- Zrzut ekranu_20221202_125655.png (42.52 KiB) Viewed 177 times
Re: How to send an event to a npc with variable number updated (quest indicator)
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
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