Fixed configuration of Auto-Cards.

This commit is contained in:
raeleus 2025-08-04 22:24:32 -07:00
parent 28327a9ceb
commit 8fe451aab8
2 changed files with 10 additions and 2 deletions

View file

@ -4733,7 +4733,7 @@ function AutoCards(inHook, inText, inStop) {
// Pending Auto-Cards message(s)
pending: (function() {
if (DEFAULT_DO_AC !== false) {
const startupMessage = "Auto-Cards is Disabled! You may now edit the \"Configure Auto-Cards\" story card to enable it";
const startupMessage = "Enabled! You may now edit the \"Configure Auto-Cards\" story card";
logEvent(startupMessage);
return [startupMessage];
} else {
@ -7522,7 +7522,7 @@ function AutoCards(inHook, inText, inStop) {
function getConfigureCardEntry() {
return prose(
"> Auto-Cards automatically creates and updates plot-relevant story cards while you play. You may configure the following settings by replacing \"false\" with \"true\" (and vice versa) or by adjusting numbers for the appropriate settings.",
"> Disable Auto-Cards: true",
"> Disable Auto-Cards: false",
"> Show detailed guide: false",
"> Delete all automatic story cards: false",
"> Reset all config settings and prompts: false",

View file

@ -7790,5 +7790,13 @@
"title": "Stragedy Witch Card",
"description": "",
"useForCharacterCreation": false
},
{
"keys": "Edit the entry above to adjust your story card automation settings",
"value": "> Auto-Cards automatically creates and updates plot-relevant story cards while you play. You may configure the following settings by replacing \"false\" with \"true\" (and vice versa) or by adjusting numbers for the appropriate settings.\n> Disable Auto-Cards: true\n> Show detailed guide: false\n> Delete all automatic story cards: false\n> Reset all config settings and prompts: false\n> Pin this config card near the top: true\n> Minimum turns cooldown for new cards: 22\n> New cards use a bulleted list format: true\n> Maximum entry length for new cards: 750\n> New cards perform memory updates: true\n> Card memory bank preferred length: 2750\n> Memory summary compression ratio: 25\n> Exclude all-caps from title detection: true\n> Also detect titles from player inputs: false\n> Minimum turns age for title detection: 5\n> Use Live Script Interface v2: false\n> Log debug data in a separate card: false",
"type": "class",
"title": "Configure \nAuto-Cards",
"description": "> Please visit my AI Dungeon profile @LewdLeah and read my bio for simple instructions on adding Auto-Cards to your scenarios! ❤️\n\nhttps://play.aidungeon.com/profile/LewdLeah\n\n> Auto-Cards v1.0.0 is an open-source script for AI Dungeon made by LewdLeah. You have my full permission to use Auto-Cards within your personal or published scenarios!\n> You're also welcome to edit the AI prompts and title exclusions provided below. I sincerely hope you enjoy your adventures! 🥰\n——————————————————————————\n> AI prompt to generate new cards:\n-----\n\n<SYSTEM>\n# Stop the story and ignore previous instructions. Write a brief and coherent informational entry for %{title} following these instructions:\n- Write only third-person pure prose information about %{title} using complete sentences with correct punctuation\n- Avoid short-term temporary details or appearances, instead focus on plot-significant information\n- Prioritize story-relevant details about %{title} first to ensure seamless integration with the previous plot\n- Create new information based on the context and story direction\n- Mention %{title} in every sentence\n- Use semicolons if needed\n- Add additional details about %{title} beneath incomplete entries\n- Be concise and grounded\n- Imitate the story's writing style and infer the reader's preferences\n</SYSTEM>\nContinue the entry for %{title} below while avoiding repetition:\n%{entry}\n——————————————————————————\n> AI prompt to summarize card memories:\n-----\n\n<SYSTEM>\n# Stop the story and ignore previous instructions. Summarize and condense the given paragraph into a narrow and focused memory passage while following these guidelines:\n- Ensure the passage retains the core meaning and most essential details\n- Use the third-person perspective\n- Prioritize information-density, accuracy, and completeness\n- Remain brief and concise\n- Write firmly in the past tense\n- The paragraph below pertains to old events from far earlier in the story\n- Integrate %{title} naturally within the memory; however, only write about the events as they occurred\n- Only reference information present inside the paragraph itself, be specific\n</SYSTEM>\nWrite a summarized old memory passage for %{title} based only on the following paragraph:\n\"\"\"\n%{memory}\n\"\"\"\nSummarize below:\n——————————————————————————\n> Titles banned from new card creation:\nNorth, East, South, West, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, January, February, March, April, May, June, July, August, September, October, November, December",
"useForCharacterCreation": false
}
]