JackPreprocess()-script Demo (Alpha) | AI Dungeon

JackPreprocess()-script Demo (Alpha)

DEMO for Jack-Preprocess script that lets scenario creators control which content is included based on C-preprocessor style input. It supports `#ifdef / #else / #endif` for conditional sections and `#define / #undef` for creating or removing dynamic conditions. It makes available `TURN` define that is incremented so that you can use `#if TURN > 20` style conditions. It enables you to add more enforcing input after Author's note. Just define `WHAT_NEXT` and this will be given to AI as strong guidance. Installation is simple: copy the content of [library.js](https://github.com/Mr-Jack-Black/Jack-Preprocess/blob/main/src/library.js) into your scenario scripts, then add `text = JackPreprocess(text);` to the Context-hook. This is Apha-testing phase. So, I am looking for people testing it out. Debug basics: `/debug on` enables debugging, `/debug show` displays current definitions, and `/debug off` disables debugging. Full readme: [https://github.com/Mr-Jack-Black/Jack-Preprocess/blob/main/README.md](https://github.com/Mr-Jack-Black/Jack-Preprocess/blob/main/README.md)

Cover art for JackPreprocess()-script Demo (Alpha), a script adventure on AI Dungeon