Building blocks
Building blocks provide registries and Lua interfaces for gameplay decisions. See Policies for the shared model.
In this section
- Combat: battle arbiter (behaviour, examples), team manager (behaviour, examples), death manager (behaviour, examples), and spectator (behaviour, examples).
- Items and skills: item use policy (behaviour, examples), skill use policy, skill policy, and loadout policy with examples.
- Social: party join policy (behaviour, examples).
- Visuals: effects and materials and
ui.ShaderQuad.
Policies glossary
| Term | Definition |
|---|---|
| Guard | A callback that determines whether a registration applies to the characters involved. |
| Verdict | The result of a policy decision, such as allow, deny, or pass. |
| Registration | A named entry that adds a guard and policy callbacks to a registry. |
| Handle | The identifier returned by registration, used to unregister the entry. |
| Forge | A Lua module file (forge ... begin) that Luna loads and runs in a named environment; see Forge. |
| Luna and the bridge | Luna is a Lua runtime parallel to QuestManager; its bridge connects Lua and engine code. |
syserr and syslog | Engine logs for errors and operational messages, respectively. |
| PK mode | A player's selected player-killing mode, used in PvP decisions. |
| Killer | The character credited with a death, when one is available. |
| Duel | A PvP contest between two players managed by the engine. |
| Session | A core-local group of PvP teams bound to a map. |
| Activity lock | A core-local marker on a player that signals an active engagement. |
DUEL_START | A client duel state used to mark a pair as enemies. |
| Domain | A map-bound gameplay instance that can participate in PvP decisions. |