Repeating Quest Objective Given

I was following this guys quest system:

and this guys inventory system:

I made them separately and then wanted to put them together on the one widget

Problem is now the side scroll keeps duplicating the quest that I accepted every time I open the quest log now. I’ve tried to clear children but that just makes nothing show up. Anyone have any suggestions?




I can take more screen shots if needs be it does look at little messy rn tho

Thanks in advance! :slight_smile:

Hi there,
How is this duplication happening? You open the quest log, then open the inventory widget? Or both windows open at the same time?
Every time you open your quest log, it runs the event construct, which will always add quests to your quest log because there is no safeguard in your code. Typically, if you try to get a reference of your scroll box, and before adding quests, reset the scroll box content calling “clear children”, that should prevent the duplicated quests. Another way is to ask if that quest already exists in an array of quests (use the node Contains Array?) before the “create widget” node.

I’m not sure how the duplication is happening. The quest log and inventory are on the one window I did them as 2 separate thing first but now I’ve combined them into the one widget.
I tried using a clear children where the print string is on the active quest change area but that just seemed to make no quest appear.


Are you saying that I should’ve out the clear children here instead:

Here’s a bunch of the other code just in case:
14







Yes, perhaps that would help. I can’t see what else might be interfering.

1 Like

That seemed to work thank you!

1 Like

Glad it worked. Keep up the good work.