💬

Standard NPC Dialogue

Standard NPC Dialogue

Give your NPCs branching dialogue trees and optionally trigger quest states

image
  1. Download Example.html
Example.html557.9KB
  1. Go to https://twinery.org/2/#/ (can skip intro) and then click Library → Import
  2. image
    image

    Import Example.html and click Import Selected Files

    image
  3. Double click on passages to edit.
    1. Create options for users to select by typing in [[Options]] — new dialogue nodes will appear
    2. image
    3. To create a new NPC, click Passage → New
    4. image
    5. Edit the new passage name by clicking Rename. There should be no spaces in this name so you can link to the NPC properly in step 6
    6. image
  4. When finished editing, export as HTML by going to Build → Publish to File
image
  1. Add the exported HTML file by remixing this Glitch project: Portals NPC Starter Project
    1. You’ll need a Glitch account
    2. Replace the contents of twine-page.html with the HTML file you just exported
  2. In Portals, right click on an NPC and then click Set Interactivity → Iframe/Games
    1. e.g. For NPC1, set the URL to https://npc-red-blue.glitch.me/?start=NPC1
    2. For NPC2, set the URL to https://npc-red-blue.glitch.me/?start=NPC2
image
image

Done!

Disabling close button on NPC dialogue query string ?noCloseBtn=true

Advanced FAQ