Table of Contents

Cat collecting quest with an NPC.

Cat collecting quest with an NPC.

What is a quest?

This is what makes your game a game. It is a goal that you are trying to achieve. In this case, it’s collecting enough cats to return to a villager.

What You’ll Need

  1. Integer variable Something you collect and increment by 1
  2. If Variable Compare with Value Something to check if you collected everything
  3. True False Variable Something that says True when your quest is done

Quest: The Villager Asks You To Collect Cats

Instructions

  1. Create a villager. Create some Dialogue.

Untitled

  1. In the menu screen, add an event called Variable Set to Falseand put in a new variable called Has completed Cat Quest which is False by default because you haven’t done it yet!

Untitled

Untitled

  1. Click on the Villager. Add the event called If Variable Compare With Value
  2. Plug in the variable that you’re using to keep track of your collection. Create a new variable called cats collected!
  3. Type in > and then the value 3 to show that you need at least 3 cats to complete the quest . Then add dialogue and effects.
    1. Bonus: You can show the number of collected cats in the dialogue by typing in the dollar sign $ then $ your variable name in the chat.

Screenshot 2023-07-05 at 11.02.11 PM.png

Untitled

Untitled

  1. To complete the quest, add an event called Set Variable to True and make your Has Completed Cat Quest variable to true! Now you can get a cat in your house.

Untitled

Show the Quest Reward

Up until now, the quest reward was hidden in your house (You receive a new pet cat!)

This is how the scene is set up.