Voidscript

By Voidspy0092

This was suppose to be my personal code to use to all but, now you can use it. 1. Writes the story in first person. It changes "You walk to the door" into "I walk to the door" in both your actions and the AI's replies. It changes "you" into "I" or "me", "your" into "my", and "you are" into "I am". Dialogue inside quotation marks is left alone, so an NPC can still say "you" to your character. 2. Tracks characters and stops duplicates. When the AI introduces someone (for example "named Marcus", "Captain Reyes", or "Elena smiled"), the script creates a Story Card of type character for them. If the name matches an existing card, it doesn't make a new one. Close variants like "Marcus" and "Marcus Vale", or "Elena" and "Elaine", count as the same person, and the new spelling is added to the old card. Before each AI reply it also adds a line listing the known characters and telling the AI to reuse them instead of inventing a similar one. This part uses PLAYER_NAMES so your own character doesn't get a card. 3. Keeps track of settled facts. This fixes the "chains keep coming back" problem. The script notices when something is removed (chains, shackles, a collar, bandages and so on, from the WATCH_ITEMS list) and records it in a continuity card. Before each reply it adds a line like [Already settled, do not bring back or contradict: chains: removed, no longer present.]. It also removes the old wording about that item from your character cards (keeping a backup in state.cardBackups). A fact is only cleared if you write that you put the item back on. You can also add or delete lines in the continuity card by hand.

Cover art for Voidscript, a script script on AI Dungeon