Introduction to GoNorth
How adventure games work and how GoNorth helps you build them.
What is a Text Adventure?
A text adventure is a game told entirely in words. The game describes where you are and what you can see. You type what you want to do. The game responds. Classic examples include Zork, Adventure, and the Hitchhiker's Guide to the Galaxy.
GoNorth adventures add modern features: natural language understanding (so "walk towards the old well" works, not just "go south"), sounds and music, images, and voice — so the game can be played eyes-free.
The Adventure World
Locations
The world is made of locations — rooms, open spaces, corridors, vehicles, anything the player can be in. Each location has:
- A long description — read on the first visit or when the player types
look - A short description — read on repeat visits
- Exits (links) connecting it to other locations
- Items and NPCs present in it
- Scripts that run when the player enters, looks, or each turn
OnEnter script — or you replace the global one — that automatic
description is switched off and you control what is said using
OutputText(). This gives you full creative control when you want it.
Links and Directions
Locations connect to each other via links. A link has:
- A direction — free text, e.g. "North", "Up", "Transporter"
- An optional alias — e.g. "gardens" so "go to the gardens" works alongside "go north"
- An enabled flag — disabled links block movement (useful for locked doors)
- Conditional destinations — the same direction can lead to different places depending on game state
Items
Items are objects in the game world. They can be:
- Picked up and carried (if
IsPickableis true) - Examined, used, given to NPCs, eaten, drunk, broken
- Containers that hold other items
- Modified at runtime — descriptions can change, pickability can be toggled
Furniture
Furniture items are named scenery elements attached directly to a location.
Unlike inventory items, furniture cannot be picked up — it exists purely to enrich the
environment and respond to EXAMINE. Each furniture entry has a name, an
optional list of aliases, and a description shown when the player examines it.
Use furniture for anything that is part of the scenery rather than the puzzle space: a fireplace, a window, an ancient inscription, a bookshelf, a painting. If your descriptions mention it, give it a furniture entry so players can examine it.
- Furniture is defined in the Furniture tab of the Location Editor
- Players can examine furniture by name or any alias (partial word matching — EXAMINE WINDOW matches alias "stained glass window")
- Furniture descriptions can be read and updated at runtime via
Location.Furniture("name").Description - New furniture can be added mid-game with
Location.AddFurniture("name", "desc")
For interactive scenery that needs scripts, events, or inventory logic, use a non-pickable Item instead.
NPCs
Non-player characters can:
- Patrol a defined set of locations using weighted movement — they tend to keep going in one direction rather than ping-ponging back and forth
- Wander freely through any accessible exit
- Move entirely under script control for complex behaviours
- Carry items
- Speak in their own voice (TTS voice profile)
- Follow the player
- Have their own variables (health, aggression etc.)
Scripts
Scripts are small programs attached to locations, items, NPCs and the game itself. They run automatically when something happens:
| Event | When it runs | Available on |
|---|---|---|
OnEnter | Player enters the location | Location |
OnExit | Player leaves the location | Location |
OnTurn | Every turn | Location, NPC, Global |
OnPickUp | Player picks up the item — your script decides: call DefaultPickUp() to allow it, or leave it out to refuse | Item |
OnDrop | Player drops the item — call DefaultDrop() to allow it | Item |
OnUse | Player uses the item | Item |
OnExamine | Player examines the item or location | Item, Location |
OnTalk | Player talks to the NPC | NPC |
OnGameStart | Once, when the game begins | Global |
OnGameEnd | When the game ends | Global |
Example — a locked door that opens with a key:
# OnUse script on the "key" item
if Location.Variable(DoorLocked) = true then
Location.Variable(DoorLocked) = false
Location.ExitEnabled("North", true)
OutputText("The lock clicks and the door swings open.")
Sounds.Play("door_unlock.wav", 80)
else
OutputText("The door is already open.")
endif
How Player Input Works
When a player types something, GoNorth tries to understand it in order:
- Command matching — checks the built-in and adventure-specific commands
- AI interpretation — if no command matched, an AI model tries to interpret the intent
- "I don't understand" — if the AI also can't help
The built-in commands cover all standard verbs — take, drop, go, examine, talk to, use, open, close, push, pull, eat, drink, and more. You can add your own commands for your adventure using Tools → Commands.
Adventure File Structure
When you save an adventure, GoNorth creates a .gnp package file.
This is a standard ZIP file containing everything the player needs:
MyAdventure.gnp
├── adventure.gna ← the adventure definition (JSON)
├── meta.json ← title, author, format version
└── media/
├── intro_music.mp3
├── forest.jpg
└── door_lock.wav
Share the .gnp file and players can open it in the GoNorth player app.