Made by LewdLeah ❤️
Auto-Cards is a plug-and-play scenario script for AI Dungeon that watches your story and automatically writes plot-relevant story cards during normal gameplay. My primary goal was to address the "object permanence problem" by extending story cards and memories with deeper automation. Auto-Cards builds a living reference of your adventure's world as you go.
- Object permanence! (sort of)
- Simple and easy to use, full background automation allows you to focus on gameplay
- Detects named entities from your story and periodically writes new cards
- Smart long-term memory updates and summaries for important cards
- Fully customizable AI card generation and memory summarization prompts
- Suitable for both free and premium AI Dungeon users alike
- Optional in-game commands to manually direct the card generation process
- Optional in-game scripting interface (LSIv2)
- Optional API for other creators to utilize
Auto-Cards is both free and open source for anyone to use within their own scenarios or scripts, even including published works. General-purpose usefulness and compatibility were my top design priorities. You have my full permission to use, copy, or modify Auto-Cards. Please be respectful of the fact that not everyone wants to use Auto-Cards, so never beg, demand, harass, or otherwise annoy creators about installing Auto-Cards into their scenarios. Now, please enjoy! ❤️
- Use the AI Dungeon website on PC (or view as desktop if mobile-only)
- Create a new scenario or edit one of your existing scenarios
- Open the
DETAILStab at the top while editing your scenario - Scroll down to
Scriptingand toggle ON →Scripts Enabled - Select
EDIT SCRIPTS - Select the
Inputtab on the left - Delete all code within said tab
- Copy and paste the following code into your empty
Inputtab:
// Your "Input" tab should look like this
const modifier = (text) => {
// Your other input modifier scripts go here (preferred)
text = AutoCards("input", text);
// Your other input modifier scripts go here (alternative)
return {text};
};
modifier(text);- Select the
Contexttab on the left - Delete all code within said tab
- Copy and paste the following code into your empty
Contexttab:
// Your "Context" tab should look like this
const modifier = (text) => {
// Your other context modifier scripts go here (preferred)
[text, stop] = AutoCards("context", text, stop);
// Your other context modifier scripts go here (alternative)
return {text, stop};
};
modifier(text);- Select the
Outputtab on the left - Delete all code within said tab
- Copy and paste the following code into your empty
Outputtab:
// Your "Output" tab should look like this
const modifier = (text) => {
// Your other output modifier scripts go here (preferred)
text = AutoCards("output", text);
// Your other output modifier scripts go here (alternative)
return {text};
};
modifier(text);- Select the
Librarytab on the left - Delete all code within said tab
- Open my full Library code (hyperlink below) in a new browser tab
- Copy my full code from the page above and paste into your empty
Librarytab - Click the big yellow
SAVEbutton in the top right corner - And you're done!
Keep in mind that any adventures played from your scenario will include Auto-Cards (this also applies retroactively)
- Auto-Cards script testing & feedback
- AI Dungeon official Discord server invite (required to access the first link)
- Feel free to ping me anytime @LewdLeah if you'd like to chat or share ideas. But please remember this is a personal passion project for me, something I do because I enjoy it, not as a job. Your kindness, patience, and love mean so much to me~ ❤️