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?
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.