Monsters & NPCs
Every creature that roams the wild and every character that inhabits the towns — from fearsome beasts to helpful shopkeepers.
1. Monster System Overview
Monsters are the primary adversaries you will face while exploring the world of Vorlia. They populate the wilderness, dungeons, and dangerous zones, providing both challenge and reward. The monster system supports up to 200 monster types defined in the game data, with up to 256 active monsters existing in the world at any given time.
Each monster in the world is an instance of a monster type template. These templates specify everything about a monster — its name, combat stats, elemental abilities, movement behavior, and loot tables. When a monster spawns, it inherits all properties from its type template.
- 200 monster type templates
- 256 maximum active monsters in the world
- Monster type data loaded from game data files
- Spawn points placed throughout the game world
- Monsters use a threat-based AI system for target selection
- Each monster can drop up to 10 different loot items on death
2. Monster Properties
Every monster type is defined by a comprehensive set of properties that govern its appearance, combat capabilities, movement, and rewards. These properties are loaded from the binary data file at startup and used by both the client and server.
| Property | Description |
|---|---|
| Name | Display name of the monster type (up to 25 characters) |
| DamMin / DamMax | Minimum and maximum physical damage the monster deals per attack |
| HPMax | Maximum hit points — the total health pool the monster has when fully healed |
| AC | Armor Class — reduces incoming physical damage from player attacks |
| DEX | Dexterity — affects the monster's evasion and hit accuracy |
| CON | Constitution — contributes to the monster's toughness and regeneration |
| Level | The monster's level, indicating its general difficulty tier |
| Speed | Movement speed — how quickly the monster moves across the map |
| Attack Speed | Rate of attack — how frequently the monster strikes in combat |
| Ghost | When enabled, the monster can pass through walls and solid obstacles |
| Fly | When enabled, the monster can move over terrain obstacles that block ground units |
| Random Walk Range | Maximum distance the monster will wander from its spawn point during idle movement |
3. Monster AI & Behavior
Monsters in Vorlia operate on a state-based AI system that governs their behavior in both peaceful and combat situations. The server checks monster actions frequently, ensuring responsive behavior.
Idle Behavior
When a monster has no active threats, it enters an idle state and wanders randomly within its designated range. Idle monsters move once every 3 seconds, taking a random step within their walk range. This creates the natural-looking patrol behavior you see when observing monsters in the wild.
- Idle Walk Interval 3 seconds between random movements
- Walk Range Defined per monster type — limits how far the monster wanders from its origin
- Action Check Rate Server evaluates monster state 20 times per second
Combat Behavior
When a monster detects a threat (typically a player attacking it or entering aggro range), it transitions to combat state. In combat, the monster actively pursues and attacks the player with the highest threat value. Monsters have regeneration mechanics that allow them to slowly recover health during and between fights.
Threat System
Each monster maintains a threat table that tracks up to 8 players simultaneously. The monster always targets the player with the highest accumulated threat. Threat is generated primarily through damage dealt to the monster.
| Mechanic | Details |
|---|---|
| Max Threat Entries | 8 players per monster |
| Threat Generation | Proportional to damage dealt to the monster |
| Target Selection | Highest accumulated threat is always prioritized |
| Threat Decay | 5 points per tick for out-of-range or invalid targets |
| Table Overflow | When all 8 slots are full, the lowest threat entry is replaced if the new attacker's threat exceeds it |
| Fallback Targeting | If the threat table is empty, the monster falls back to nearest-player proximity aggro |
4. Monster Spawning
Monsters are placed into the world through a spawn point system. Each spawn point is a fixed location on the map that generates a specific monster type. Spawn points are placed throughout the game world.
| Property | Description |
|---|---|
| Location (X, Y) | The exact tile coordinates where the monster appears when it spawns |
| Monster Type | Which monster type this spawn point produces |
| Max Distance Limits | How far the spawned monster is allowed to roam from its spawn point |
- Spawn Rate Check The server checks spawn points roughly 13 times per second
- Respawn Behavior After a monster is killed, its spawn point becomes available for a new monster to appear after a respawn delay
- World Limit 256 active monsters at once — additional spawns are queued until slots open
5. Elemental Attacks & Defenses
Monsters can wield elemental power both offensively and defensively. Each monster type defines an elemental attack and an elemental defense, each tied to one of the five elements in Vorlia.
Elemental Attack
A monster's elemental attack deals additional damage on top of its physical damage. This elemental portion is not reduced by your Armor Class — only by your elemental protection against the matching element.
- ElementalAttack The element type the monster channels in its attacks
- AttackAmount The amount of elemental damage dealt per hit
Elemental Defense
A monster's elemental defense reduces incoming elemental damage of the matching type. This means certain monsters are highly resistant to specific elements while remaining vulnerable to others.
- ElementalDefence The element type the monster is resistant to
- DefenceAmount The amount of elemental damage reduced from incoming attacks of that type
The Five Elements
| Element | ID | Description |
|---|---|---|
| Fire | 1 | Searing flames that inflict burning damage |
| Air | 2 | Crackling bolts of electrical shock energy |
| Earth | 3 | Tremendous crushing force of stone and earth |
| Water | 4 | Chilling cold that freezes and deals frost damage |
| Light | 5 | Radiant divine energy that deals holy damage |
6. Loot System
When a monster is killed, it has the chance to drop items based on its loot table. Each monster type defines up to 10 loot entries, and each entry is evaluated independently when the monster dies. Dropped loot appears on the ground at the monster's death location.
Loot Tables
Each of the 10 loot entries in a monster's loot table specifies the following:
| Field | Description |
|---|---|
| Drop Probability (%) | The percentage chance that this entry drops when the monster is killed. Each entry is rolled independently. |
| Item Family | Which item family the drop belongs to (Weapon, Armor, Collectable, Useable, or Container) |
| Item Type | The specific type within the family (e.g., Sword, Plate, etc.) |
| Item ID | The exact item template ID within the family and type |
| Amount Min / Max | For stackable items (like gold or materials), the quantity range. A random amount between min and max is dropped. |
Drop History
The game maintains a drop history for each player — a 200-entry ring buffer that tracks recent drops. This system helps regulate loot distribution over time, preventing extreme streaks from skewing the experience.
7. NPC System Overview
Non-Player Characters (NPCs) are the friendly (and sometimes not-so-friendly) inhabitants of Vorlia's towns, settlements, and outposts. Unlike monsters, NPCs serve functional roles — they run shops, guard safe zones, manage auctions, deliver mail, and provide conversation and guidance to players.
The NPC system supports up to 64 NPC types defined in the game data, with up to 64 active NPCs in the world at any time. NPC type templates are loaded from game data files, and NPCs are placed throughout the game world.
- 64 NPC type templates
- 64 maximum active NPCs in the world
- NPC type data loaded from game data files
- NPC locations placed throughout the game world
- NPCs can fill multiple roles: shopkeeper, guard, auctioneer, mailbox, or general dialogue
- Combat-capable NPCs have full stat blocks (DamMin, DamMax, HPMax, AC, DEX, CON)
8. NPC Properties
Each NPC type template defines a full set of properties that determine the NPC's appearance, behavior, combat capabilities, and functional role in the game world.
| Property | Description |
|---|---|
| Name | Display name of the NPC type (up to 25 characters) |
| Walking Type | Movement behavior pattern: NO, RANDOM, CHECKPNT, or LIMITS (see Walking Types) |
| DamMin / DamMax | Minimum and maximum physical damage for combat-capable NPCs (guards) |
| HPMax | Maximum hit points for combat-capable NPCs |
| AC | Armor Class — physical damage reduction for combat-capable NPCs |
| DEX | Dexterity stat for combat-capable NPCs |
| CON | Constitution stat for combat-capable NPCs |
| Conversation Text | A short dialogue line displayed when interacting with the NPC (up to 80 characters) |
| Advanced Conversation ID | Links to an extended dialogue tree for NPCs with multi-step conversations |
| NPC Flags | Special role flags that assign functional behaviors such as auctioneer or mailbox access |
9. NPC Roles & Behaviors
NPCs in Vorlia serve a variety of functional roles. An NPC's role is determined by a combination of its type properties and flags.
Shop NPCs
Shop NPCs are merchants that buy and sell items. When you interact with a shop NPC, a trade window opens displaying the shop's inventory. The game supports up to 20 shops, each capable of holding up to 100 items.
| Property | Description |
|---|---|
| Shop Name | Display name of the shop (up to 25 characters), shown in the trade window header |
| Inventory Capacity | Up to 100 items per shop |
| Price Modifier | A markup modifier applied to buy/sell price calculations for this shop |
- Total Shops 20 shops available across the world
- Items per Shop Up to 100 items in each shop's inventory
- Price Calculation Based on item's base Value modified by the shop's price modifier
Guard NPCs
Guard NPCs protect safe zones and guarded zones in the world. They are combat-capable, with full stat blocks (DamMin, DamMax, HPMax, AC, DEX, CON), and will actively engage hostile players and monsters that enter their patrol area.
Guards enforce the peace in towns and settlements. If a player attacks another player in a guarded zone, nearby guard NPCs will intervene and attack the aggressor. This provides a layer of security for players conducting trade or socializing in populated areas.
Special NPCs
Some NPCs serve specialized functional roles identified by their NPC flags:
10. NPC Walking Types
Each NPC type has a walking type that determines how it moves in the world. This affects whether the NPC stands still, patrols, or roams freely.
| Walking Type | Behavior |
|---|---|
| NO | The NPC does not move at all. It remains stationary at its spawn point. Common for shopkeepers, auctioneers, and mailbox NPCs. |
| RANDOM | The NPC moves randomly within its allowed area, wandering in unpredictable patterns. Used for townspeople and ambient NPCs. |
| CHECKPNT | The NPC follows a predefined checkpoint path, walking from one waypoint to the next in sequence. Used for patrol routes. |
| LIMITS | The NPC moves randomly but is constrained within defined boundary limits. A controlled version of random walking. |
11. Tips & Strategy
- Check a monster's elemental attack type before engaging. Equip armor with matching elemental protection to reduce incoming elemental damage that bypasses your AC.
- Use weapons with an element that your target monster is not resistant to. Hitting a Fire-resistant monster with a fire weapon wastes your elemental damage entirely.
- Watch for Ghost and Fly flags. Ghost monsters pursue through walls — you cannot break line of sight to escape. Plan an exit route before pulling these creatures.
- In group combat, coordinate threat. Let your toughest party member build threat first before damage dealers engage. The monster always targets the highest-threat player.
- Learn spawn point locations for the monsters you want to farm. Spawn points are fixed, so you can return to the same spot after respawns.
- Remember that monsters regenerate health. If you disengage mid-fight, the monster may heal back up before you return. Commit to the kill or retreat fully.
- The world supports up to 256 active monsters at once. In heavily populated areas, spawn competition between players is real — consider exploring less-traveled regions for uncontested farming.
- Compare shop prices across different merchants. Each shop has its own price modifier markup, so the same item may cost more or less depending on the vendor.
- Use auctioneer NPCs to buy and sell items to other players. The auction house often offers better prices than NPC shops for valuable gear.
- Talk to all NPCs you encounter. Many have conversation text that provides hints about the world, nearby dangers, or hidden locations.
- Stay near guard NPCs in guarded zones if you need safety. Guards will intervene if hostile players or monsters attack you in their patrol area.