Page 3 of 3

Re: Quest HUD Customization

Posted: Mon Dec 27, 2021 2:01 pm
by Tony Li
Oops, I totally forgot about the quest tracking thing, which is the whole reason you started this thread in the first place. :oops:

I'll post an updated example a little later today. It's just a matter of also listening for quest track changed messages.

Re: Quest HUD Customization

Posted: Mon Dec 27, 2021 2:28 pm
by KingCeryn
Ah SUCCESS!!! Lol I just figured it out!

I added a Bool in the "QuestStateListener" you sent me, to just change to TRUE when the initial "QuestStateChanged" message is received, and FALSE when its not- then on a separate script that listens for the "QuestTrackToggleChanged" message, I add an Array that I can put all the "StateListener" objects into, do a Foreach to check if that Bool is true (meaning the State's active message has been received), and just invoke the UnityEvents for the "NodeState == Active" condition.

I'll attach script in a package below, as well as a couple screenshots of the components as I used em. You might know a smarter way to do this in ONE script so the Foreach/Array isnt needed, but this works exactly as I need for now!

Thanks so much for all your help LOL, always so complicated for the simplest things!

Re: Quest HUD / Quest Tracking Change Events

Posted: Mon Dec 27, 2021 2:54 pm
by Tony Li
Great! I'm glad you got it all working.