Docs Cookbook
NPC with a quest
Place the character. What is it? ▸ Character, then Write what they say...
#Without code
- Place the character. What is it? ▸ Character, then Write what they say... (opens the Dialogue tab).
- In the dialogue, a Choice node: "Will you find my lost cat?".
- On the Yes answer, the action Start quest (Quest
cat, Goal (shown) "Find the cat"). - At Start, a condition Has item
Cat: on Yes, Take itemCat, Complete questcat, Give itemCoin20. - Use Quest is active / Quest is complete to change what they say on later visits.
#Quick code
Where it goes: on the NPC, Event: Player presses E.
if quest_done("cat") then
self.say("Thanks again!")
elseif has("Cat") >= 1 then
take("Cat") complete_quest("cat") give("Coin", 20)
elseif choice("Find my cat?", ["Yes", "No"]) == "Yes" then
start_quest("cat", "Find the cat")
end
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.