VNLEWIKIBuild stories. Connect worlds.Deutsch
VNLE Handbook

Example: The Harbour Key

The Harbour Key in VNLE, English interface
VNLE · The Harbour Key

Mira watches over a locked warehouse. You can buy a key from her for five gold pieces. Your game receives the item, the conversation takes you to the warehouse and the quest is completed. The example contains three scenes and all nine node types.

Download the example project · Play in your browser

1 · Open the project

  1. Download the example project and extract the ZIP.
  2. Start VNLE. Choose Open project and select the extracted project folder, which contains project.vnle.json.
  3. Select Harbour in the left sidebar. Select a node to see its contents on the right. This guide uses English controls. You can change the app language in Settings.

2 · Character, values and items

Open Characters: Mira has a name and a portrait. A dialogue selects Mira as its speaker, so your game can show her name and image alongside the line.

Under Variables you will find Gold = 10, with HasKey, QuestAccepted and QuestComplete = false. An integer counts gold pieces. The three boolean values remember progress.

Resources contains the Warehouse key item, the Open the warehouse quest and the Old warehouse location. These entries give the game stable references. The included game example manages the visible inventory.

3 · Follow the conversation

  1. Welcome greets you. Ask Mira calls Mira’s request. Another dialogue explains the warehouse; Return takes you back to the main conversation.
  2. Already have the key? checks HasKey. Without a key, Choose a reply appears. Choose to buy or select Maybe later.
  3. Enough gold? checks Gold ≥ 5. If you cannot afford it, Mira declines. Otherwise Pay five gold subtracts five gold pieces and sets QuestAccepted to true.
  4. Receive the key requests give_item. The game adds the key to the inventory and returns the Received outcome. Remember the key sets HasKey to true.
  5. Your remaining gold shows your current gold in the line. Go to the warehouse jumps to Warehouse. Check the warehouse key checks the key, sets QuestComplete and shows the final dialogue.
  6. Return to the game is an End node: your game closes the dialogue box and returns control.

4 · Try every route

  1. Open Play in your browser. Choose Talk to Mira, Continue twice and buy the key. Expect Gold 5, the key in your inventory and eventually Quest complete.
  2. Restart with Start with 2 gold. The purchase is refused and the inventory stays empty. Then try the Maybe later reply.
  3. Switch between English and Deutsch during a line. The same line stays open. After buying, choose Save game, continue and use Load game to return.

When adding game actions, connect their cancellation outcomes too. In the example, Refund the payment returns the five gold pieces and resets QuestAccepted if the inventory rejects the item. A farewell follows.