Kill Zombie Objective
It's best to first read Questing before starting this tutorial.
This tutorial requires you to already have created an NPC using the Entity Extension guide.
In this tutorial, you will learn how to create a quest where:
- The player interacts with an NPC
- The NPC gives the player a quest with the objective to kill 2 zombies.
- The player completes the objective by killing 2 zombies.
- The player returns to the NPC to complete the quest.
Quest Flow
Not Started
Zombie Quest Fact = 0Quest Received
Zombie Quest Fact = 1Kill Zombie Fact = 0Killing Zombies
Zombie Quest Fact = 1Kill Zombie Fact >= 2Completed
Zombie Quest Fact = 2Quest Setup
This guide is split up into 2 sections.
- Manifest Section: Covers how to set the quest up and add the objective.
- Sequence Section: Explains how to make the npc give the quest and how to make the objective completable.
Manifest Section
Make sure you have the Entity Extension guide completed before starting this tutorial.
In this guide we will be using the Oliver NPC as the quest giver.
Also make sure you have created a manifest page.
In this section, we will be setting up the quest and adding the objective to the manifest.
Creating the Quest
Now inside the manifest page, click on the + button in the top right corner and search for Quest. Click on the + button to add it to your page.
Configuring the Quest Entry
Now inside the quest entry set the following fields:
- Display Name:
ZombieQuest - Active Criteria:
Zombie Quest Fact >= 1 - Completed Criteria:
Zombie Quest Fact = 2
For this guide I used a permanent fact
Adding the Objective
Now inside the quest entry, click on the + button in the top right corner and search for Completable Objective. Click on the + button to add it to your page.
Configuring the Objective Entry
Now inside the objective entry set the following fields:
- Quest:
ZombieQuest - Show Criteria:
Zombie Quest Fact = 1 - Completed Criteria:
Zombie Quest Fact = 1+Killed Zombies Fact >= 2 - Display:
Kill 2 Zombies
Inside the display you can also choose the display the progress using PlaceHolderAPI
Example: Kill 2 zombies (%typewriter_nOfQzADcAmcR6ao%/2)
We will be using this in the final result!
You can also add a second objective that requires the player to return to the NPC.
- Show Criteria:
Zombie Quest Fact = 1+Kill Zombie Fact >= 2 - Completed Criteria:
Zombie Quest Fact = 2 - Display:
Return to Oliver
See talk objective for more information on how to do this.
Manifest Result
- Manifest
- Static
This is an interactive graph of all the entries in the selected pages.
You can view different pages by clicking on the tabs. Each page contains a view of the entries in that page.
Click on an entry to view its details.
Sequence Section
It is recommended to have a good understanding of Interactions and Facts before starting this section.
In this section, we will be creating the sequence that gives the player the quest and makes the objective completable.
Interaction with Oliver
Now we need to create the interaction with Oliver. This is where the player will receive the quest.
Click on the + button in the top right corner and search for Add Entity Interact Event. Click on the + button to add it to your page.
Inside the entry set the Definition field to Oliver (or what you named your npc).
Adding dialogue to Oliver
Now when you click on Oliver nothing happens. It would be nice to add some dialogue to the npc.
The following steps are optional, but recommended to make the quest more immersive.
- Add a
New Optionto your sequence and set the following fields:- Text:
Could you help me with something? - Option 1:
Yeah sure, whats up? - Option 2:
No sorry.
- Text:
- Now in the option 1 add a trigger for a spoken with fields:
- Text:
Go kill 2 zombies. - Duration:
1s
- Text:
- Inside that spoken add a modifier:
Zombie Quest Fact = 1
On kill increase fact
Now we need to increase the fact when the player kills a zombie. To do this we need to add a On Player Kill Entity event to the sequence.
Inside the entry enable the Enity Type and set the Entity Type to Zombie.
Increasing the fact
Now we need to increase the fact when the player kills a zombie. To do this right click on the On Player Kill Entity and select Link with ... select the Triggers | 1 and search for Add Simple Action.
Inside the entry set the following fields:
- Criteria:
Zombie Quest Fact = 1 - modifier:
Zombies Killed Fact + 1
This will increase the fact by 1 every time the player kills a zombie and only do this if the player has the quest.
Sequence Result
- Sequence
- Manifest
- Static
This is an interactive graph of all the entries in the selected pages.
You can view different pages by clicking on the tabs. Each page contains a view of the entries in that page.
Click on an entry to view its details.
Final Result
Now when you click on Oliver you will get the dialogue and when you click on the first option you will get the quest. When you kill 2 zombies the objective will be completed.