How to send an event to a npc with variable number updated (quest indicator)
Posted: Fri Dec 02, 2022 7:02 am
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!