enforce-script-referencelisted
Install: claude install-skill willy92wins/DayZ-Modding-Knowledge-Pack
# Enforce Script Reference — Complete DayZ Modding Guide
Enforce Script is the OOP scripting language of the Enfusion engine used by DayZ.
It resembles C# but has critical differences that cause crashes if ignored.
This skill is organized as a quick-reference SKILL.md (rules, restrictions, checklist)
with detailed reference files for each domain.
---
## ENFORCE SCRIPT HARD RULES — ALWAYS APPLY
These restrictions apply to ALL Enforce Script code. Every rule has caused a real
crash, segfault, or silent failure in production.
### Cite-then-Verify Preflight (a correct `path:line` does not prove the symbol exists)
Before treating any vanilla Enforce API as callable, verify it is not trapped inside an `#ifdef` whose macro is never defined in the tree. Gate: `grep -rn "#ifdef <MACRO>\|#define <MACRO>" scripts/` — if only `#ifdef` hits appear, the code is DEAD in this build and the symbol does not exist.
Canonical case: `ActionManagerClient.PerformAction(int user_action_id, ActionTarget, ItemBase, Param)` at `actionmanagerclient.c:798` is a correct citation, but sits inside `#ifdef BOT` (opens `:796`, closes `:802`). `BOT` appears in the entire vanilla tree only as `#ifdef`, never as `#define` → the symbol does not exist in retail or diag. The real public entry point for dispatching an action by script is `PerformActionStart(ActionBase, ActionTarget, ItemBase, Param)` at `:804`, outside the block.
(hasta 1.29: `#ifdef BOT` is `ActionManagerClient.c:754-760`, `PerformAction` i