Voxel Game Maker

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

  1. Place the Villager (from the starter models). In Properties, under What is it?, pick Character.
  2. 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.
  3. Type a hello in the Say: Oh, hello there!

Play it now: walk up to the farmer and press E.

#2. A question

  1. Drag from the Say's right dot to empty space and pick Choice. Type the question: Could you find my three lost gems?
  2. It comes with two answers, Yes and No. Rename them Sure and Not now.
  3. From each answer's dot, drag to empty space and add a Say with the farmer's reply: Thank you! and Oh. Maybe later then.

Play it now: talk to the farmer and try each answer.

#3. Start the quest

  1. From the Thank you! Say, drag to empty space and add an Action node.
  2. Pick Start quest. Set Quest to gems and Goal to Find 3 gems.
  3. 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.

  1. Switch to Advanced with Basic | Advanced on the toolbar.
  2. In the farmer's conversation, click + Add node and add a Condition: Has item, Item Gem, At least 3.
  3. Connect Start to the Condition instead of the hello. Connect its No to the hello.
  4. 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

#Next

Enemies and health.