Quest Editor
  • Docs Home
  • Guides
    • Creating a Quest
      • Storywriting
      • Starting Out
      • Adding Stages
      • Stage 1
      • Stage 2
      • Stage 3
    • Creating an Enemy
    • Creating a Location
      • Creation
  • Logic Blocks
    • If Block
    • Equals Block
    • And/Or Block
    • Not Block
    • Boolean Block
    • Null Block
    • Ternary Block
  • List Blocks
    • Create Empty List Block
    • Length Of List Block
    • Create List Block
    • Find Index Block
    • Is Empty Block
    • Get In List Block
    • Edit In List Block
    • Split String Block
  • Text Blocks
    • Text Block
  • Quest Blocks
    • Quest Block
    • Continue Check Block
    • Dialog Block
    • Take Item Block
    • Has Item Block
    • Option Block
    • Option Dialog Block
    • Promise Block
    • Stage Block
    • Switch Stage Block
    • Update Quest Block
    • End Quest Block
    • Start Quest Block
    • Send Message Block
    • User Inventory Block
    • NPC Block
    • Set Adventure Block
    • Remove Adventure Block
    • New Adventure Class Block
  • Item Blocks
    • Dummy Item Block
    • Weapon Item Block
    • Healing Item Block
    • Helmet Item Block
    • Chestplate Item Block
    • Boots Item Block
    • Ring Item Block
  • Import Blocks
    • Import Adventure Block
  • Enemy Blocks
    • New Enemy Block
  • Locations Blocks
    • New Location Block
    • Search Data Block
    • Travel Data Block
Powered by GitBook
On this page
  • Building the stage
  • Setting the NPC Dialog
  • Setting the Options
  • Continuing the options
  • Second option
  • Almost done
  • Completed
  1. Guides
  2. Creating a Quest

Stage 1

PreviousAdding StagesNextStage 2

Last updated 6 years ago

Alright, let's focus on the first stage.

Recalling the story we wrote at the start of this guide, we can see that the first stage is

== Stage 1 ==

Julian - Hi there, I have an issue and I need some logs, would you mind getting them for me?
* Option 1: Sorry, I'm kind of busy right now.
* Option 2: Sure, I'd love to!

[Option 1]
    Julian - I see, maybe I can find someone else to help me.
[Option 2]
    Julian - Great! I need 5 Oak Logs!
    {Continue Check}
        {Start Quest}
        {Send Message "Quest Started: ${this.name}.\n[Written by Username]"}

Building the stage

In the quest block, let's focus on the New Stage: 1 block as this is our first stage.

To build the first dialog with options, drag a block from the Quest tab of the toolbox and attach it to the stage block.

Setting the NPC Dialog

To set the NPCs dialog, edit the Dialog Text variable with our dialog which in this case is Hi there, I have an issue and I need some logs, would you mind getting them for me?

Setting the Options

Since we have two options, we only need two items in our list, to do this, click the cogwheel icon of the list block, and drag one of the item blocks into the gray area to delete it. When this has been done, click the cogwheel icon again to close it.

After this, we need to fill in our options, Sorry, I'm kind of busy right now. and Sure, I'd love to!.

When we've done this, we need to drag the list block with the options filled in into the Options input of the Option Dialog block.

Continuing the options

Then, change the returns to option

Set the option variable of the Option block to 0.

Attach the Option block to the if statement of the if block and attach the if block to the inside of the Promise block we created earlier.

Second option

Alright, now that we have the first option done, the second one should be pretty straight-forward.

Click the cogwheel of the if block and drag an else if block from the gray area and attach it to the if block and then close it by clicking the cogwheel again.

Then, attach another Option block to the else if variable, setting the option to 1.

Now drag a dialog block from the Quest tab and attach it to the do of the else if section of the if block, setting the Dialog Text to Great! I need 5 Oak Logs!.

After this, attach a Promise block to the Dialog block and set the returns variable to msg.

Almost done

Drag two Promise blocks to the workspace and attach them to the bottom of the one we just created with a Continue Check block.

Completed

Alright! We've completed the first stage, let's continue to stage 2!

To set the options, drag a from the Lists tab of the toolbox.

Then, drag two blocks from the Text tab of the toolbox and attach them to the list block.

Next, drag a from the Quest tab into the workspace and attach it to the Option Dialog block.

Next up, drag an from the Logic tab and an from the Quest tab into the workspace.

When this is done, drag a from the Quest tab and attach it to the do variable of the if block and then set the Dialog Text to I see, maybe I can find someone else to help me.

Then, drag a from the Quest tab and attach it to the inside of the Promise block.

In the first one, add a from the Quest tab.

In the second one, add a from the Quest tab and set the Message variable to `Quest Started: ${this.name}.\n[Written by Username]` , replacing Username with your Discord Username and Discriminator (The Four numbers at the end of your name), which in my case is Mackan#7196

Option Dialog
Create List Block
Text
Promise Block
if block
Option Block
Dialog Block
Continue Check Block
Start Quest Block
Send Message Block
Stage 1 Options Empty
Stage 1 Options Dialog Filled
List block text empty
List block with text
Option dialog filled in
Stage 1 outline
Returns Option
Promise with if block
Promise with Dialog
Else if configuration
Else if with Option
Dialog with a proimise and a continue check block
Completed First Stage