Difference between revisions of "Your First Quest"
Line 39: | Line 39: | ||
This is because if Uriel dies, this quest stage 40 will be triggered immediatly, the Description will be hidden from the Player and the quest will end. | This is because if Uriel dies, this quest stage 40 will be triggered immediatly, the Description will be hidden from the Player and the quest will end. | ||
== Implementation - Stage 10 == |
Revision as of 18:28, 23 February 2022
In this tutorial we will use NPC we've created in the NPCs Creation and the Cell we've created in the Creating your First Cell tutorial to create a fairly simple quest step by step.
Designing the quest
The first thing that we are going to do before actually doing anything is to design the quest. It is a good idea to think about the quest you want to make, the stages and how it should proceed before you actually start implement anything.
In this tutorial our quest is titled "To Break The Quiet", and it will go this way:
We'll encounter Uriel, the NPC we've created in the previous tutorial sitting peacefully outside his shack. If the Player goes and talk to him he will ask for our help. He will say that there are some bandits that are bothering him and stealing in his house, and that shortly they will come back. If the Player accepts the quest, as soon as the dialogue ends two bandits will arrive from behind his shack and demand golds. Uriel will not bow to their request and start a fight.
The quest can then end with Uriel dead or alive, depending on how the fight goes. If he'll stil be alive before the bandits die, he will give us some of his gold, otherwise the quest will end with a failed objective.
Creating the skeleton of the Quest
Let's go ahead and start developing our quest. The first thing you have to do is to organize your project, create a folder and name it "To Break The Quiet", we'll insert everything related to this quest inside this folder.
Go ahead and create a New Quest by right clicking in the project window -> Create -> RPG Creation Kit -> Quests -> New Quest and name it "- [QUEST] To Break The Quiet", then open it in the Quest Window by clicking "Configure Quest" in the Inspector.
Set the name, ID and description of the quest, I'll have:
Quest Name: To Break The Quiet
Quest ID: SQ_ToBreakTheQuiet
Quest Description: I met a man named Uriel that asked for my help, it seems that there are some bandits that are bothering him... I should give him my help.
We don't need to move anything else for now, switch to the "Quest Stages" tab and right click in the list on the left, then click "New" to create a new Quest Stage. Insert the ID of this stage to be 10 and now we have to configure the Quest Stage on the right.
The description will be: Learn more about the Bandits that are bothering Uriel, and I will also check Display Log Entry, because I want this Description to show up on the screen.
Then go ahead and create a new Quest Stage, it will have as ID 20 and the description will state: Protect Uriel from the Bandits. I'll still have checked the Display Log Entry because it is an objective I want the Player to see.
Create another stage, Stage 30 and set its description to be: Speak to Uriel to collect your reward, again, this will have Display Log Entry set on true. This one will have the checkbox Complete Quest set to true, since when this stage will be completed, the quest will end.
Now if we analyze those three stages, when played sequentially they describe exactly our quest. The only thing that misses is the other ending we've explained, the one where Uriel dies. To achieve this, we are going to create a new Quest Stage, Stage 40 that will have as description "# This stage is completed if Uriel dies", it will have Complete Quest set to true, and Display Log Entry set to false.
This is because if Uriel dies, this quest stage 40 will be triggered immediatly, the Description will be hidden from the Player and the quest will end.