Skip to main content

Building blocks

Building blocks provide registries and Lua interfaces for gameplay decisions. See Policies for the shared model.

In this section​

Policies glossary​

TermDefinition
GuardA callback that determines whether a registration applies to the characters involved.
VerdictThe result of a policy decision, such as allow, deny, or pass.
RegistrationA named entry that adds a guard and policy callbacks to a registry.
HandleThe identifier returned by registration, used to unregister the entry.
ForgeA Lua module file (forge ... begin) that Luna loads and runs in a named environment; see Forge.
Luna and the bridgeLuna is a Lua runtime parallel to QuestManager; its bridge connects Lua and engine code.
syserr and syslogEngine logs for errors and operational messages, respectively.
PK modeA player's selected player-killing mode, used in PvP decisions.
KillerThe character credited with a death, when one is available.
DuelA PvP contest between two players managed by the engine.
SessionA core-local group of PvP teams bound to a map.
Activity lockA core-local marker on a player that signals an active engagement.
DUEL_STARTA client duel state used to mark a pair as enemies.
DomainA map-bound gameplay instance that can participate in PvP decisions.