Kill Zombie Objective
It's best to first read Questing before starting this tutorial.
This tutorial requires you to already have some knowledge of creating NPCs using the Entity Extension and using them in a 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
In this guide you will learn how to create:
- Add a quest
- Add an objective where the player must kill 2 zombies to complete the quest.
Setting up the manifest page
Starting off this guide, we will first make the Manifest page.
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.
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 Kill Entity Objective
Now again click on the + button in the top right corner and search for Kill Entity Objective. Click on the + button to add it to your page.
Configuring the objective
Inside the Kill Entity Objective set the following fields:
- Quest:
ZombieQuest - Criteria:
Zombie Quest Fact = 1 - Entity:
ZOMBIE
You've now reached the Progress Tracking configuration.
This feature makes it a simplified objective by combining multiple entries into one.
If you'd like to configure this manually, see the expanded documentation for the kill entity objective.
-
Progress Tracking:
- Value:
Zombies Killed Fact - Operator:
>= - Target:
2
Fact used here is permanent
- Value:
-
Override Display:
Kill Zombies (<value>/<target>)
The<value>and<target>are parsed to theZombies Killed Factvalue and the set target amount.
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
Make sure you have created a sequence page.
In this section, we will be making the NPC give the quest and react to the quest
Making the NPC give the Quest
First, we will make the NPC give the quest to the player. Go to the top right corner and click on the + button and search for Entity Interact Event. Click on the + button to add it to your page.
Inside the entry set the Definition field to the NPC you created. In this case, we will be using Oliver.
Configuring the interaction
Now you can configure an interaction that happens when you interact with oliver!
Important in this case is that when you start the quest you set the Zombie Quest Fact to 1.
and when the quest is completed to 2.
If you configure this as a repeatable quest, make sure to reset the Zombies Killed Fact back to 0 when the quest is started!
This is even recommended for non-repeatable quests to avoid issues.
For how we configured the quest view the sequence result here below!
Especially look in the accept and give sword entries as these decide the quest state!
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 you have successfully created a quest where the player must kill 2 zombies to complete the quest
In this video you can see the quest tracking with scoreboard and titles displayed to the player.
By default, quests won't be displayed to players - you need to manually configure how you want quests to be shown.
To learn how to set up quest display (scoreboard, titles, etc.), read the Displaying Quests Guide.