When players reach some specific quest event trigger points, available quests will be listed for the player to choose to accept them. The straightforward way to trigger the quest is through the conversation with NPCs. While chatting with NPCs, they may require the players to archive some tasks. For example, a farmer may ask players to buy some seeds in the other town; a solider may ask players to kill a monster in order to get into the castle.
Besides triggering quests from NPCs, quests can also be triggered from reading documents, collecting items, or completing a quest. We will discuss them one by one.
In the last chapter, we created the NPC conversation system which is able to dispatch specific event when the player reaches that conversation node. We will make use of this feature to dispatch the quest triggering event.
When we design the conversation, a quest_list_panel
event will be dispatched somewhere.
_conversation[5].action = "quest_list_panel...