enforce-script-reference
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
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.