Quest System (with BP provided, UE4)

Quest Data for UE5 (Pt2)



Open QuestGiver BP
Add variable called Quests, choose as S_Quest (created previously), array, and make visible
image.png
Input and add Quest:
image.png

Add Widget in a loop to the QuestGiver BP at the end of previous BP:
image.png

Go to WB QuestGiver, add the following graph and create a variable input on custom event
image.png
Back to Designer page, change the vertical box name to Quests list, make as varianble
image.png
Now the Quest list in graph can be drag in graph, continue as follow:
image.png

Go to Widget Quest Slot, rename the text as Quest Name Text, make as variable
image.png
Back to WB Quest Giver, add the follow:
image.png

Go to BP Quest Giver, add follow after For each loop
image.png

Go to WB Quest Slot, add 2 variables: Desciption and Secondary
image.png

Go to WB QuestGiver, add follow:
image.png

Delete those Quest slots layers highlighed below:
image.png


Create reference in Qustslot to send to WB QuestGiver:
Open WB Questslot, add follow variable:
image.png
Go to WB Quest Giver Graph:
Add Set Quest Giver Widget just created”
image.png
Still in the graph, create custom event, variables inputs:
image.png

To Quest Slot again,
Select button variable, add On Clicked event
image.png
Then make follow graph:
image.png

Go to WB Quest Giver Design page, rename the follow 2 layers as Selected Quest Text, and Selected Quest Description. Tick both as variable
image.png

To connect the Quest Text and Description together so that description will be showed once pressing any quest available button in the widget:
image.png
Go to its graph, extend the custom event with:
image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.