Welcome to my local copy of the Touhou Danmakufu ph3 Function Reference, available in case the Danmakufu Wiki goes down *again*. Here you can access the entirety of the translated Danmakufu function reference, although it has passed through the Sparen filter and therefore may be slightly different from the Wiki.
The OFFICIAL JAPANESE DOCUMENTATION can be found at mkm's website. In addition, the full Japanese docs have been backed up to GitHub. This link may be sufficient, but if you experience garbled text, you may need to change your browser's Text Encoding [Safari/Firefox: View -> Text Encoding -> Japanese (Shift JIS); Chrome 55+: Extension required]. Alternatively, download the documentation via the 'Clone or download' button.
In the tutorials, the functions will be available like so:
General Functions, Object Functions, and Player/System/Script Functions are on their own respective pages to prevent this page from becoming too long. To access these, refer to the sidebar.
Notes on types:
mkm uses types such as 'real' (for real numbers and object IDs), 'char' (for characters and strings), and 'free' (wildcard). In my version of the documentation, I break this down by primary type (number/char/string/bool/free/etc) with a detailed type in parenthesis (float/int/path/Object ID). I also provide types for return values.
Please note that with Events, arguments are set using
SetScriptResult(), and return values are read out using