Automatic quest state listener configuration
Posted: Mon Jul 11, 2022 10:32 pm
Hi again!
For all of the quest-giving NPCs in my game, I want to enforce a standard configuration of quest indicator tracking
1. quest available: set to a yellow "!"
2. quest active but unfinished: set to a white "?"
3. quest available for turn-in (i.e. all quest entries are "success"): set to a yellow "?"
4. quest is complete: no indicator
I've gotten this to work with a combination of the Quest State Listener, Quest State Indicators, and a child Quest Indicator UI GameObject.
I would love to make the combination of these three components into a prefab that I can easily re-use for any NPC that has a quest. However, I'm not sure how since each Quest State Listener's "Quest State Indicator Levels" field needs to be manually set based on the entries of that specific quest instead of some kind of "all quest entries states = success"
What's the best way to get this functionality with the minimum amount of configuration through the component inspectors?
Thanks!
For all of the quest-giving NPCs in my game, I want to enforce a standard configuration of quest indicator tracking
1. quest available: set to a yellow "!"
2. quest active but unfinished: set to a white "?"
3. quest available for turn-in (i.e. all quest entries are "success"): set to a yellow "?"
4. quest is complete: no indicator
I've gotten this to work with a combination of the Quest State Listener, Quest State Indicators, and a child Quest Indicator UI GameObject.
I would love to make the combination of these three components into a prefab that I can easily re-use for any NPC that has a quest. However, I'm not sure how since each Quest State Listener's "Quest State Indicator Levels" field needs to be manually set based on the entries of that specific quest instead of some kind of "all quest entries states = success"
What's the best way to get this functionality with the minimum amount of configuration through the component inspectors?
Thanks!