Npc quest giver

you will need to make a structure for your quest then build a datatable from that structure
Something like that:

name,
description,
playerClass,
prize [
{
 itemID
 Quantity
}
],

after that you will need to get the class o player in your quest widget (cast to player) and bring the list of quests for the given class
and show the list to the player
each item on the list will be a button so that the player can interact with the item…

you can do this with a grid and adding each item in the list as a child in the grid

you will need to make a class to save the current quest and check the npc to know if you already have an open quest or not…

1 Like