The game will be more or less an Open World game. But the declared goal will be to try out new ways of storytelling in order to present a credible world with developing history to the players. You have to say goodbye to the idea that every game can live through every part of the story/quest. This contradicts the persistent and inner logical structure of the game world. Quests must rather result dynamically from what happens within the game world.

Quests in Bestia are generated via two mechanics:

  1. Automatically generated quests, spawned in cities or villages where NPCs are present.
  2. Player generated quests: these challenges are handed to an NPC who then announces them so that other players can pick them up. Players must follow a template for the rewards.

Both end up as the same kind of contract, and the rare world events driven by the simulation use that machinery too, see World Events. The player-facing rules for all three live on the Questing page.

The Quest Core

The player-facing rules are on the Questing and City Blackboard pages. This section is about how the zone server keeps quests. The code lives in the quest slice of zone-server.

Quests are runtime records

A quest is data that a source makes at runtime. There is no static list of quests, and no quest definition the client could cache by id. Today the only source is the blackboard. Later sources fill in the same records: the post, the world history, and generated world quests such as “kill 5 wolves near town Y”. A new source adds no code per quest.

A Quest row holds:

FieldMeaning
originWhich source made it (BLACKBOARD)
titleKey, textArgsA text template key and typed arguments: item, species, number, place. The client translates them, like dialog arguments
suggestedLevelA hint for players, never enforced
deadlineWhen it expires
statusOPEN, CLOSING, COMPLETED, EXPIRED or WITHDRAWN
objectivesThe list of objectives, see below
rewardsWhat a player gets, see Rewards
assignedOnly one master may accept it
posterMasterIdThe master who posted it; empty for a quest the world made

A source keeps only what is its own. The blackboard keeps the commission type, the pay, the pot that is left, the fee it took, the end of the notice hour, the job time and the collateral in its own BlackboardPosting row.

Rewards

A reward is a kind and an amount. The log shows every reward, so a quest the world makes lists what it pays too.

KindAmountUsed by
COINS_PER_UNITcoins per unit or per killGather, species bounties, town requests
COINScoins onceTransport, Bodyguard, named and outlaw bounties, world quests
EXPexperience, an estimateEvery commission, world quests
ITEMan item id and an amountQuests the world makes only

The reward rows describe the quest. The source pays them: the board from its pot, the Quest Manager from a town’s treasury.

Objectives and their scope

An objective is one of a small closed set of kinds, with parameters. Adding a kind means one enum value and the check that matches it; a single quest never needs code of its own.

KindParametersStatus
DELIVER_ITEMitem, amountBuilt, used by the blackboard
KILLspecies or one named target, amount, optional areaBuilt; bounties make it shared or personal
CARRYa crate, a destination townBeing built, Transport
ARRIVEa destination town, the guardBeing built, Bodyguard
EXAMINE, TALK, BRING, DECIDEsee Quest ManagerPlanned

Each objective has a scope:

  • Shared: everybody who accepted works towards one counter, kept on the quest row. A blackboard Gather is shared.
  • Personal: each master counts on their own, in their own log entry. A kill quest is personal.

An area is either a place (a named place such as a town) or a spot and a radius (a place with no name, such as a battlefield).

The quest log entry

A QuestLogEntry links a master to a quest. It holds when the master accepted it and one counter per objective: the master’s own progress for a personal objective, and “delivered by you” for a shared one.

The entries are the list of a quest’s subscribers. No source keeps its own list of signers.

For an assigned quest the entry also holds when the job time ends.

QuestService is the one way in for sources: create, accept, abandon, advance a shared counter, record a personal count, close, end. Accepting an assigned quest that somebody already holds is refused (QUEST_TAKEN). Accepting is refused at 25 entries (quest.log-capacity). Ended entries are deleted after 3 days (quest.ended-kept-for), so a player who was offline still sees how a quest ended. When a quest ends, its source can react: the blackboard mails the unspent pot back.

Tracking Personal Progress

Personal progress is counted on the tick, event by event. The code that reports a fact knows nothing about quests.

graph LR
    D[DeathSystem] -->|KillFact| O[KillObserver port]
    O --> Q[QuestKillObserver]
    Q -->|"1. species lookup"| A[ActiveQuests]
    Q -->|"2. deadline, count"| A
    Q -->|"3. area"| P[Place / position]
    Q -->|"counted"| J[save off the tick]
    J --> M[QuestUpdatedSMSG]
  1. The fact. DeathSystem calls every KillObserver for each kill that pays experience, with a KillFact(speciesId, position, creditedMasters). The port lives in the low entity/observe package, so any slice can implement it. Achievements or statistics can listen the same way later, without touching the monster code.
  2. Only involved players. creditedMasters are the masters who earned experience from the kill, party shares included. Nobody else’s state is touched.
  3. Fail fast. For each credited master, QuestKillObserver does one map lookup by species in the master’s ActiveQuests. No entry, nothing to do. A hit checks the deadline and whether the count is already full.
  4. Area last. Only then the area check, one compare each:
    • a place is compared with the Place component the zone already keeps per entity. PlaceSystem updates it only when the position changes, so no geometry runs at kill time;
    • a spot and radius is one squared-distance compare with the position of the death.
  5. Count and save. The counter goes up in memory. A job per master saves it off the tick, and the save sends the update to the client.

ActiveQuests is a server-only component on the played master entity. It is never synced. It holds the personal objectives the master is counting, indexed by what triggers them. It is built from the objective data when the master spawns and when they accept a quest, not from code. It holds no text, levels or rewards; those are built when a view is sent. LiveQuests mirrors every committed change of the log into the ActiveQuests of masters being played.

An “obtain” and a “talk to” observer will follow the same shape, with their first source. Bounties add two more listeners of the same shape:

  • KillFact also carries the damage share of every master who hit the bestia, so an open bounty can split its pot. The share is the one TakenDamage already keeps for experience.
  • An OutlawKillObserver port, called from the honor system, reports a master killed while it carried the Dishonored or the Thief mark. An outlaw bounty listens there.
  • A CatchObserver port, called by the trap system before a caught bestia leaves the world, reports the catch as the kill fact it would be. Bounties listen there; quest kill counts and world events do not.

A log entry may name a worker: the master’s bestia that took the quest on. It pays and earns through a purse it shares with its master, its bestia’s bag first. An owned bestia’s AI has a goal for every job that hands a Transport crate over: a sense notices it stands in the crate’s town, and the action walks to the board and calls the board’s own interaction, as a client click would.

The road length between every two towns with a post office is kept in a town_road table, measured after boot and measured again only for the ways across a road edge that broke or was repaired. The board quotes job times from it.

Reaching the Clients

Quest changes travel as explicit messages, not as a synced component:

  • Log in or master select: the full QuestLogSMSG.
  • After every committed change: a QuestChangedEvent. QuestPushListener reads the entries and the poster of that quest, keeps the masters being played, and sends each a QuestUpdatedSMSG with one view, or “removed”.
  • Abandon: AbandonQuestCMSG. It works from the log anywhere, for any source.

There is no notice message. The client raises the “completed, expired, withdrawn” notice itself when a status changes.

Why not a synced component? A shared change happens on the quest, not on any master, so no master component would get dirty by itself; the server would still need to find the subscribers and who of them is online. And since quests have no static definition, every view carries its full data anyway. Other MMOs send per-quest updates for the same reason.

The Blackboard Source

The blackboard slice is the first quest source. It sits above quest, item, the economy, the post and the settlements.

  • The board is an ordinary entity drawn from the prop catalogue as a structure, like the town sign. Finished structures normally travel in the static chunk batch, which carries no components, and the board needs one (below). The start-town boards are spawned when the zone starts; a player builds one from a kit, one per town.

  • Board actions reuse InteractEntityCMSG with a ScriptArgs bag: action (post, sign, handIn, withdraw; none means “open the window”), questId, itemId, amount, coinsEach, days. The bag is parsed into a typed request or a refusal. The reach check runs on the tick; the request then runs off the tick, because it writes the database. Withdrawing is therefore only possible at a board.

  • Posting checks the limits, takes the pot and the fee from the bag, charges the fee to the world reserve, and creates a quest with one shared DELIVER_ITEM objective. The suggested level comes from the mob loot tables (lowest minimum level of a species that drops the item), else from the item’s base level.

  • Hand-in puts the copies into an instant parcel for the issuer, pays amount × coins each from the pot, advances the shared counter, and ends the quest when it is full.

  • Withdraw and expiry run on a schedule. The unspent pot goes back by instant parcel.

  • Assigned commissions. Signing takes the collateral from the bag and locks the quest to the signer. The same schedule settles the job time. Every outcome moves its money by instant parcel:

    OutcomeAccepterIssuer
    Completedreward + collateralthe goods, if any
    Job time overhalf the collateralhalf the collateral, pot back
    Abandonednothing, honor lossall the collateral, pot back
    Issuer cancelsreward + collateralnothing

    The honor goes to the settlement of the board where the accepter signed. The posting remembers it.

  • Transport crate. Packing seals the goods into a crate item, like a postal mail sack. A system after DeathSystem drops it where the carrier fell. A pickup rule lets the accepter and the issuer take it freely; anybody else steals it. The post office desk of the destination town takes the crate as well as the board.

  • BlackboardSMSG carries the global open list for the window.

  • The marker is a BlackboardOffer component on every board: a bitmask of the suggested levels of all open quests, levels 1 to 128 in two fixed64. It is rewritten on every board when a blackboard quest opens or ends. A min/max range would light up for a level-40 player when only level-5 and level-80 quests are open; the bitmask does not. The component is the same for every viewer, so the marker cannot leave out the viewer’s own quests.

  • Settings (BlackboardConfig): the fee per duration, the posting limit, the notice time and the band in which a quest fits a level.

Automatic Quest Generation

The world makes quests of its own through the Quest Manager. It is a second source next to the blackboard:

  • Sources watch the open threads of the world history and real events of the live world: a town that lacks food, a damaged building, a rumour.
  • A planner builds a short chain of steps with a choice, starting from the payoff. Quest shapes are data in a catalogue, so no quest has code of its own.
  • A director offers the plans through townsfolk, found things and the blackboard.
  • Endings write back into the world: a new event in the chronicle, the thing itself, and how people see the player.

For this the quest core gets stages, the objective kinds EXAMINE, TALK, BRING and DECIDE, and rewards other than coins per unit. Generated text for quests is described under Dynamic Text.

Player Quests

Players post tasks with a reward, and other players take them. Today that is the city blackboard, described above. The board holds the reward in trust: the issuer pays the pot and a posting fee up front, and the board pays each signer per unit handed in.

Issuers can never mint experience. The server derives the experience from the danger level and the effort of the work: half of what the same time spent fighting at that level would earn, through the same ExpPayout the other non-combat experience uses. A Weary status effect counts the commissions that paid experience in the last 24 real hours and cuts the experience of the 4th and later ones. The count is stored per master, so a relog does not reset it. See Weariness for the steps.

Reward Calculation

The issuer chooses the pay. The posting fee depends on the duration: 3% of the pot for 1 day, 5% for 3 days, 8% for 7 days. It goes to the world reserve and is never refunded. The rates are server settings. A server-wide bound on rewards, and payouts on NPC-issued quests budgeted by the World Treasury Director, are not built.

The level of a quest is only a suggestion, see Difficulty and Level Range. Any master may accept any quest.

References

Last updated 04 Dec 2026, 01:08 +0100 . history