Special Events
Demo Starter GuideAsk Portals
Ask PortalsGetting Started
Building in PortalsBuilt in PortalsNavigatingScreen/Video SharingBuilding BlocksAccounts and SpacesAdvanced Building
Import SpecsAnimated GLBsImport Avatar SpecsAI NPCsStandard NPC DialogueWelcome GreetingMap GuidelinesTemplate UsageStart Timer and End TimerHow to Import Custom 3D modelsStandard NPC Dialogue
Give your NPCs branching dialogue trees and optionally trigger quest states
- Download Example.html
Example.html557.9KB
- Go to https://twinery.org/2/#/ (can skip intro) and then click Library → Import
- Double click on passages to edit.
- Create options for users to select by typing in
[[Options]]
— new dialogue nodes will appear - To create a new NPC, click Passage → New
- 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
- When finished editing, export as HTML by going to Build → Publish to File
Import Example.html and click Import Selected Files
- Add the exported HTML file by remixing this Glitch project: Portals NPC Starter Project
- You’ll need a Glitch account
- Replace the contents of twine-page.html with the HTML file you just exported
- In Portals, right click on an NPC and then click Set Interactivity → Iframe/Games
- e.g. For NPC1, set the URL to https://npc-red-blue.glitch.me/?start=NPC1
- For NPC2, set the URL to https://npc-red-blue.glitch.me/?start=NPC2
Done!
Disabling close button on NPC dialogue query string ?noCloseBtn=true
‣