Docs Tutorials
A talking character
A character who says hello, asks a question, gives you a quest and rewards you when it's done.
In the editor: Welcome ▸ Tutorials ▸ 2.4 ▸ ▶ Start goes on in your My Playground project with this lesson's checklist.
Build · about 30 minutes · Basic mode, Advanced for one step
What you'll make: a farmer who asks you to find three lost gems, and pays you when you bring them back.
What you'll learn: the Dialogue tab, answers the player picks, and a simple quest.
Before you start: do Switches, moving platforms and traps.
#1. Someone to talk to
- Place the Villager (from the starter models). In Properties, under What is it?, pick Character.
- Click Write what they say…. The Dialogue tab opens with a new conversation for them: a Start, a Say and an End, wired in a row.
- Type a hello in the Say:
Oh, hello there!
Play it now: walk up to the farmer and press E.
#2. A question
- Drag from the Say's right dot to empty space and pick Choice. Type the question:
Could you find my three lost gems? - It comes with two answers,
YesandNo. Rename themSureandNot now. - From each answer's dot, drag to empty space and add a Say with the farmer's reply:
Thank you!andOh. Maybe later then.
Play it now: talk to the farmer and try each answer.
#3. Start the quest
- From the
Thank you!Say, drag to empty space and add an Action node. - Pick Start quest. Set Quest to
gemsand Goal toFind 3 gems. - Untick Ask to accept: the player already said yes.
#4. The gems
Hide three Gem models around the level. Make each a Pickup with the Type Coin, and set its Item to Gem.
Play it now: say Sure, then collect the gems.
#5. Finish the quest (Advanced)
The farmer needs to check whether you have the gems. That takes a Condition node, which is in Advanced.
- Switch to Advanced with Basic | Advanced on the toolbar.
- In the farmer's conversation, click + Add node and add a Condition: Has item, Item
Gem, At least 3. - Connect Start to the Condition instead of the hello. Connect its No to the hello.
- From its Yes, add Action nodes in a row: Take item (
Gem, How many 3), Complete quest (gems) and Give item (Coin, How many 10). End with a Say:My gems! Here, take this.
Play it now: talk, say Sure, collect the gems, then talk again. You get 10 coins.
#Try it yourself
- After the quest, the farmer still offers it again. Add a Condition with Quest is complete before the others, so they just say thanks.
- Make the farmer walk around: set the Character's Type to Walks around.
- Add a second character who tells the player where the gems are.
#Learn more
- Behaviors and items ▸ Dialogue.
- Cookbook: Branching dialogue choice, NPC with a quest, Fetch quest with objectives.
#Next
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.