Skip to content

API Reference

This section lists all built-in engine natives, inline helpers, PROGRAM entry points, constants, and modkit functions declared in the dc2tk SDK. Each script includes the header for its script category (see How Scripts Work and C Language, SDK, and Patches). Generated by dc2tk api-docs from the SDK's headers; change the headers, not this page.

Header Scripts Natives Helpers Programs Constants
<event.h> Natives for event scripts: towns, maps, cutscenes and dungeon systems. 698 54 203 356
<monster.h> Natives for monster AI scripts (dungeon/monster). They act on the monster running the script. 186 23 12 64
<action.h> Natives for character action scripts (mainchr, dungeon/act_script). They act on the character running the script. 88 4 9 48
<effect.h> Natives for effect scripts (dungeon/eff_script, dungeon/articles, dungeon/sphida). 129 16 3 14
<arg.h> Natives for event argument files loaded with load_arg. 2 1 1 0
  • modkit: Helper libraries for mods (#include "modkit/....c", 10 functions).