Quick Start
Quick Start
Section titled “Quick Start”This guide gets you from zero to a running TalesMUD server with your first custom room in about 10 minutes.
1. Start the Server
Section titled “1. Start the Server”git clone https://github.com/TalesMUD/talesmud.gitcd talesmudmake buildmake run-serverOpen http://localhost:8010 — you’ll see the TalesMUD game client.
2. Log In as Admin
Section titled “2. Log In as Admin”The default admin credentials are in your .env file:
ADMIN_USER=adminADMIN_PASSWORD=changemeLog in at http://localhost:8010 using these credentials.
3. Select or Create a Character
Section titled “3. Select or Create a Character”After logging in:
- Click New Character
- Choose a name, race, and class
- Click Create to start playing
You’ll spawn in the starting room.
4. Explore the Content Editor
Section titled “4. Explore the Content Editor”Navigate to http://localhost:8010/admin to access the Creator UI. This is where you
author all game content:
- Rooms — Create and link rooms with exits
- NPCs — Define characters, enemies, and merchants
- Items — Create weapons, armor, and consumables
- Quests — Build multi-objective quest chains
- Dialogs — Author branching conversation trees
- Scripts — Write Lua scripts for custom behavior
5. Create Your First Room
Section titled “5. Create Your First Room”-
In the Creator UI, go to Rooms → New
-
Fill in the basic fields:
Name: The Dark CavernDescription: Jagged stalactites hang from the ceiling of this narrow cave.Water drips steadily from somewhere above.Area: mycave -
Click Save
-
Go back to your starting room and add an exit pointing to this room:
- Edit the starting room
- In Exits, add:
north → [The Dark Cavern's ID] - Save
-
In the game client, type
northto walk there
6. Add an NPC
Section titled “6. Add an NPC”-
In Creator UI, go to NPCs → New
-
Create a simple NPC:
Name: Cave RatDescription: A large rat with matted grey fur and red eyes. -
Enable Enemy trait:
Level: 1Max HP: 15Attack: 3Defense: 1XP Reward: 10 -
Add a Spawner in your room:
- Edit the Dark Cavern room
- In Spawners, reference the Cave Rat NPC
- Set Max Count: 2, Respawn Time: 60s
-
Restart the server or wait for the spawner tick — the Cave Rat will appear
7. Your First Lua Script
Section titled “7. Your First Lua Script”Scripts let you react to game events. Create a simple room entrance script:
-
Go to Scripts → New
-
Set:
Name: Cave AtmosphereType: roomLanguage: lua -
Paste this code:
-- Runs whenever a player enters The Dark Cavernlocal charID = ctx.character.idif tales.utils.chance(30) thentales.game.msgToCharacter(charID,"A bat swoops past your head in the darkness.")endif tales.utils.chance(10) thentales.game.msgToRoom(ctx.room.id,"The cave groans ominously.")end -
Save the script, then edit your Dark Cavern room
-
Set On Enter Script to this script
-
Enter the room — the atmospheric messages will fire randomly
Available Commands
Section titled “Available Commands”Type help in the game for the full command list. Key commands:
| Command | Description |
|---|---|
look / l | Describe the current room |
north, south, east, west | Move between rooms |
attack / a | Attack a target |
cast [spell] | Cast a spell |
skills | List equipped skills |
quests | View quest log |
who | List online players |
Next Steps
Section titled “Next Steps”- Configuration — Environment variables and server options
- Your First World — Building a complete zone
- Architecture Overview — How the system is structured