Your First World
Your First World
Section titled “Your First World”This guide walks you through building a complete zone — a small dungeon with connected rooms, an NPC enemy, a chest with loot, and a kill quest. By the end you’ll understand the full content creation workflow.
Planning Your Zone
Section titled “Planning Your Zone”Our zone: The Rat Warrens — a small underground rat colony beneath an abandoned farmhouse.
[Farm Cellar] ← starting room ↓ south[Warren Entrance] ↓ east[Rat Nest] ← boss room ↓ south[Hidden Cache] ← reward chestStep 1: Create the Rooms
Section titled “Step 1: Create the Rooms”-
Open the Creator UI at
http://localhost:8010/admin -
Navigate to Rooms → New and create each room:
Farm Cellar
Name: Farm CellarArea: rat_warrensDescription: The earthen floor of an abandoned farmhouse cellar.Broken crates line the walls. A smell of rot drifts upfrom a hole in the floor — something has been digging.Exits: south → [Warren Entrance ID]Warren Entrance
Name: Warren EntranceArea: rat_warrensDescription: A low tunnel gnawed through the dirt. Claw marks scorethe walls. The smell is overwhelming.Exits: north → [Farm Cellar], east → [Rat Nest]Rat Nest
Name: Rat NestArea: rat_warrensDescription: A large chamber packed with shredded cloth, bones, andthe detritus of a rat colony. The Rat Queen holds court here.Exits: west → [Warren Entrance], south → [Hidden Cache]Hidden Cache
Name: Hidden CacheArea: rat_warrensDescription: A small alcove, partially hidden behind a collapsed sectionof dirt wall. Something glints in the darkness.Exits: north → [Rat Nest] -
Save all rooms and note their IDs — you’ll need them for exits and spawners.
Step 2: Create the Enemy NPC
Section titled “Step 2: Create the Enemy NPC”-
Navigate to NPCs → New
-
Create the basic rat:
Name: Warren RatDescription: A large grey rat with yellow eyes and matted fur.Enemy Trait: enabled -
Set enemy stats:
Level: 1Max HP: 12Attack: 2Defense: 0XP Reward: 8Gold Drop: 0 -
Create the boss:
Name: Rat QueenDescription: A massive rat, twice the size of the others. Her greyfur is streaked with white, and her eyes glow faintly red.Enemy Trait: enabledLevel: 3Max HP: 45Attack: 5Defense: 2XP Reward: 50Gold Drop: 15 -
Save both NPCs and note their IDs.
Step 3: Add Spawners to Rooms
Section titled “Step 3: Add Spawners to Rooms”-
Edit the Warren Entrance room
-
Add spawners in the Spawners section:
NPC: Warren RatMax Count: 2Respawn Time: 90 seconds -
Edit the Rat Nest room
-
Add spawners:
NPC: Warren Rat Max: 1 Respawn: 60sNPC: Rat Queen Max: 1 Respawn: 300s
Step 4: Create Items and the Chest
Section titled “Step 4: Create Items and the Chest”-
Navigate to Items → New
-
Create a consumable:
Name: Weak Health PotionType: consumableQuality: normalStackable: yesMax Stack: 10Base Price: 5On Use Script: [create a heal script later] -
Create a weapon:
Name: Sharp ClawType: weaponSlot: main_handQuality: normalAttributes:damage: 4Base Price: 12Description: A large rat claw, still sharp enough to cut. -
Create a chest (container item):
Name: Buried ChestType: collectibleNo Pickup: trueIs Container: trueMax Items: 5 -
Edit the Hidden Cache room → add the Buried Chest as a room item.
Step 5: Create a Quest
Section titled “Step 5: Create a Quest”-
Navigate to Quests → New
-
Fill in the quest:
Name: Rat ProblemDescription: The farmhand wants the Rat Queen dealt with once and for all.Category: sideLevel: 1 -
Set the source:
Source Type: npcSource NPC: [a quest-giver NPC you create in the Farm Cellar] -
Add objectives:
Objective 1:Type: killTarget: Warren Rat (NPC ID)Amount: 3Description: Kill 3 Warren RatsOrder: 1Objective 2:Type: killTarget: Rat Queen (NPC ID)Amount: 1Description: Kill the Rat QueenOrder: 2 -
Set rewards:
XP: 80Gold: 20Item Rewards: Weak Health Potion (x2) -
Write dialog text:
Accept: Those rats have gnawed through half my grain stores. Kill threeof the common ones and find their queen. I'll pay well.Progress: Have you dealt with them yet? I can still hear them at night.Complete: That's the last of them, I hope. Here's what I promised.
Step 6: Wire It All Together
Section titled “Step 6: Wire It All Together”Create a quest-giver NPC in the Farm Cellar:
Name: Worried FarmhandDescription: A tired man in worn work clothes. He keeps glancing at the floor.Quest: Rat Problem (via source NPC ID)Testing Your Zone
Section titled “Testing Your Zone”- Start the server:
make run-server - Log in and create a character
- Use the admin panel to teleport your character to Farm Cellar
- Talk to the Worried Farmhand to pick up the quest
- Go south, kill rats, find the Rat Queen
- Return and turn in the quest
Next Steps
Section titled “Next Steps”- Creating Rooms — Detailed room configuration options
- NPCs & Spawners — Full NPC configuration
- Quest System — Complete quest authoring guide
- Lua Scripting — Add custom behavior