HOW TO CREATE OWN QUESTS?
If you want to create your own quests, you need to learn the quest scripting language.
Do not worry, it is very simple.
CREATE A NEW QUEST
In this tutorial I want to teach you, how you can make your own quests.
To create a new quest, just need to add a new file to the folder parts. You can find this folder here:
Code: Select all
minetest/games/rpgtest/mods/story/parts/<name>.quest
Now you need to open this file and add code to it.
ADD DIALOGS
If you want that the person who gives you the quest talks to the player, you need to create an other file in the parts folder :
Code: Select all
<name>_<n>.dialog
name : Name of your quest
n : The dialogs name
This file contains the dialog's text. If you want that a npc says this text to a player, you need to add some code the your script:
WAIT UNTIL THE PLAYER HAS DONE SOMETHING
To wait until a player has done something, you need to use the $wait command.
If you want to wait until a player has read a dialog you just need to use
If you want to wait until a player has done a quest you need to use
ADD YOUR QUEST TO THE GAME
To add your own quest to the game, you need to open the file quests.conf.
Then you need to add your quest to the list.
Code: Select all
lvl<n>=<name>
n : The XP level that the player needs to play your quest.
name = The quests file name (without .quest)
A SIMPLE QUEST
Code: Select all
$dialog test_1
$wait
$quest dignode default:log_3 3 10
$wait quest
SHARE
If your quest is finished, please share it with us.
If you want, you can make a pull request, so I can add your quest to the game!
How can I do ???
Just send me a private message on the minetest forum :D