Oops, I totally forgot about the quest tracking thing, which is the whole reason you started this thread in the first place.
I'll post an updated example a little later today. It's just a matter of also listening for quest track changed messages.
[Solved] Quest HUD / Quest Tracking Change Events
Re: Quest HUD Customization
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!
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!
- Attachments
-
- QuestTrackListeners.zip
- (2.61 KiB) Downloaded 66 times
-
- QuestTrackListener.PNG (46.66 KiB) Viewed 733 times
-
- QuestNodeListener.PNG (60.65 KiB) Viewed 733 times
Re: Quest HUD / Quest Tracking Change Events
Great! I'm glad you got it all working.