CYOARPG Lite for Gemini

This is the attempt to adapt CharacterProvider's CYOARPG Preset (that initially is made for Claude) to work with Gemini 1121, 1206 and 02-05.

⬇️ Download CYOARPG Lite for GEMINI 1.3 (updated version for 02-05)

TOC

About this adaptation

  • Includes the preset, the regexes, the addition to the custom CSS and the tweaked version of this card. Please do not use the original card with this prompt, I remade the character sheet formatting and added it into the ⭐ / System Prompt (RP Guidelines), so Gemini may become confused with the original version of the card where the character sheet presented the other way.
    • The updated versions for 1206 and 02-05 also includes a bonus sandbox card. It's more grounded, low-fantasy, "backwater town and all its secrets" kind of vibe.
  • This preset is NOT for the people who is strongly against the AI writing for {{user}}. This preset is for 'lazy' RP, it writes for you, writes your inner thoughts and banters for you with NPCs too. You just point into desired direction for {{user}} to act and the LLM makes it happen, roleplaying as all the characters.

Upd. 07.02.25: THE UPDATED VERSION for 02-05

  • Increased the default temperature a bit (from 0.7 to 0.8).
  • Reduced top-P to 0.95, this way, there are a few less busted swipes on 02-05. Try to reduce it a bit more if you wish to experiment, lol.
  • All system prompts (including the card and your persona) will now be sent from the User role.
  • Updated 🟣 / CYOA Mode for 02-05 so it recognizes nat1 and nat20. Again, it's not perfect, but mostly works.
  • Fixed some minor typos in the ⭐ / System Prompt (RP Guidelines) and reworked examples' wordings, as 02-05 takes them too literally.
  • Reworked tags so they eat a tiny bit less tokens.
  • Moved Char Personality, World Info (before), World Info (after) and Scenario categories into the prompt. All will be sent from the User role.
  • Removed unused utility prompts and added 🟢 / [Prepare to RP!] from the Assistant role at the beginning of the chat history.
  • Added 🟡 / POSTFILL for 02-05 form the User role. This is the returned instruction from the original preset, prohibiting questions at the end, I found it to be beneficial for 02-05.
  • The depth in the regex Cut <player_status> was reduced from 7 to 5, as 7 was really unnecessary. It is completely optional, if you already have the regex, don't bother.

Upd. 07.02.25: THE FIXED VERSION for 1206

  • 🎲 / Auto Roll is now will be sent from the User role.
  • Fixed some minor typos in the ⭐ / System Prompt (RP Guidelines).
  • The depth in the regex Cut <player_status> was reduced from 7 to 5, as 7 was really unnecessary. It is completely optional, if you already have the regex, don't bother.

Upd. 05.02.25

  • Sooo, I've tried the new Gemini 2.0 Pro 02-05. It's... okay, I guess? The model has more problems with formatting than 1206, loves asking "What do you do?" at the end of the response and is more silly/relaxed, than 1206. I'd say it feels like a mix of 1121 and 1206? IDK.
  • The preset is, well, still works with Pro 02-05, but you will need to help with formatting, I've had problems with narration formatting FFS. I saw extra period after a question in quote marks, I haven't seen that since the 1.5 models, lol.
  • The filter is STILL a bitch.

Upd. 14.12.24: THE UPDATED VERSION for 1206

  • THE FILTER PROBLEM: a bit lowered the probability of an unjustifiable filter blocks in SFW situations - still no zero though, but in my tests it now blocks about half as much (4/10 -> 2/10).
    • Streaming is now ON by default as the most of the filter blocks in my tests happens at the end of the reply, in <choices> or <player_status> sections. You WILL NEED to redact the reply to maintain the format (closing XML tags and copy-pasting your character sheet entirely from the earlier response) if you decide to stick with this partially filtered answer.
  • Lowered the default temperature a bit (from 1.0 to 0.7).
  • Updated 🟣 / CYOA Mode for 1206. It doesn't need so much instructions for formatting and it now recognizes nat1 and nat20. It's not perfect but mostly works.
  • Moved 🟣 / Dialog-Focused Mode into the prompt list. With it you can chat with NPCs, Gemini's replies will be smaller (hopefully) and in most swipes it will stop writing for you. Chose ONE 🟣 / Dialog-Focused Mode or 🟣 / CYOA Mode, do not use both simultaniosly.
  • Regexes Visual <roll_result> open, Visual </roll_result> close, Visual <player_status> open and Visual </player_status> close were updated to support several rolls or character sheets in one message.
    • You can update yours manually if you installed pervious version, just adding /at the beginning and /g at the end in the Find Regex line, like this: <roll_result[^>]*>\s* => /<roll_result[^>]*>\s*/g.

Upd. 06.12.24

  • So, I've tried the new Gemini 1206 with this preset and it's a lot of fun! 1206 has its own quirks (for example, it loves to switch to Bengali language for some reason), but it's more intelligent and don't fuck up the format as much as 1121 (still fucks up sometimes). 1206 also takes a job of being a DM more seriously (look at this sweet thing trying to give my shitpost-level character a proper D&D character sheet), at least at the character creation, and doesn't hallucinate ridiculous homebrew classes and backgrounds as easily as 1121, and even if it do, it tries just add flavor to the existing ones.
  • MORE IMPORTANTLY, I tried the original preset for Claude by CharacterProvider and it's working for Gemini 1206 too, the only thing you need to tweak there is the wording in 🎲 / Auto Roll, you can just copy-paste this:
    (Here is my roll if my `choice` has a [{STR/DEX/CON/INT/WIS/CHA Ability Score}: {n}] requirement: [natural {{roll: d20}}], add my ability modifier, following DnD 5e rules (Score - 10 / 2, rounded down). Ignore and don't write `<roll_result>` if I choose an option without any requirements.)
    
  • The biggest fucking bummer: I'm beginning to have a problem with the filter acting up with this preset, I don't know why. Just an option to flirt with the NPC or to run from the NPC results in the "Candidate Text Empty" and "OTHER" block in 8/10 swipes. I don't know what I'm doing wrong. I hope you have better luck, or I hope someone finds a way to fix it.

Upd. 24.11.24

  • Okay, so I've tried Dialog-Focused Mode (🟣 / Dialog-Focused Mode (not tested for Gemini)) in the preset, you will need to find it in the drop-down menu of prompts) and Gemini even after 50+ messages works wonderfully with it! You can chat with NPCs, Gemini's replies will be smaller and in most swipes it will stop writing for you. Example. I'm impressed. So try it! It can help with avoiding loops. The only downside that CYOA will be cut from the prompt for Gemini and you will need to help it with it if Gemini fucks up the format of CYOA again. !Choose one, 🟣 / CYOA Mode or 🟣 / Dialog-Focused Mode (not tested for Gemini), do not turn on both of them!
  • Gemini will start to forget to repost your character status after 50+ messages in the chat. In my playtest like half of the swipes are without it. Someone said that Gemini is now supports the prefill, I wonder, can it help with this and the formatting in general? I'll try to test if I have time, but you can try yourself too! To add prefill simply make a new custom prompt in prompt manager, give it the "Assistant" role and put it at the bottom of the list of prompts.

About your Persona

Please format your persona as shown by CharacterProvider in the rentry for the original prompt adding your Ability Scores and Traits for CYOA (you can write any tags there)!

For example, this is the persona from my playtests:

Age: 28
Height: short
Body: curvy
Backstory: Isekai'd from 21st century during anime con

Ability Scores:
STR 12
DEX 14
CON 12
INT 6
WIS 5
CHA 10

Traits for CYOA: Bully, Liar, Big Tits

About Gemini

(new 07.02.25) About Gemini 2.0 Pro Exp 02-05
  • More relaxed than 1206. (I will miss Gemini's emo/goth phase...)
  • Includes metacommentaries from its DM side. Example.

Pros:

  • Better prose with lesser slop compared to 1206. Examples: one, two (notice, that in the second example 02-05 nailed the critical failure feature, recognizing the nat1 even with the modifier, something 1206 can mess up occasionally).
  • No more switching to the random language for one word. Still occasionally switches to the random language for one word, but much, much less, than 1206.
  • Tries to follow the instructions.

Cons:

  • The filter is still a bitch.
  • Unstable quality, some swipes are significantly worse than others. In its "bad" swipes can become repetitive (like VERY repetitive, repeats its previous response almost verbatim), or confuses who said what to whom, similar to 1.5 Pro. It's... heartbreaking to see, honestly, I thought these things was the problems of the past.
  • Somehow at the same time follows instructions not enough, so it messes the formatting and the character creation often, and too thoroughly, so as a result it feels like much less creative and imaginative model than 1206.
  • A bit more problems with formatting than 1206.
  • Doesn't "get" some things a lot more than 1206, for example, in its "bad" swipes the people in a fantasy setting somehow know about the existence of polyester and my character's financial situation before the isekai. But at the same time it can generate very thoughtful swipes too, without metagaming.
  • Has formatting looping problems similar to old 1.5 Pro models. For example, very easily starts to loop at the unnecessary italics for emphasis in the speech.
About Gemini 1206
  • 2m context, but very unstable at high context. I'd say, better stick with 32k and just summarize.
  • LOVES to write A LOT.
  • A good grip at D&D rules, takes its role of being the DM very seriously.
  • A bit more dark and morbid than 1121.

Pros:

  • More intelligent than 1121.
  • Better with the formatting than 1121.
  • Very proactive and imaginative, to the point where I honestly invested in the adventures of my test character, lol.

Cons:

  • Filter is a bitch.
  • Like all LLMs not always "get" some things, for example, in some swipes, when I isekai'd in a mascot suit of a knock-off Pikachu (don't ask), the bartender in Saltmarsh knew it is a Pikachu.
  • Loves to give you advantage/disadvantage (like a proper DM playing a proper 5 ed), but the preset doesn't take it into account, so it's ignored.
  • Sometimes, still needs a bit of help with format of CYOA and your character sheet blocks.
  • LOVES to write A LOT (yes, it can become a problem).
  • More repetitive with its phrasings, has favorite "geminisms" (same old neuroslop: shivers, symphonies, testaments, etc.), the slop level is the highest amidst Gemini models.
About Gemini 1121
  • 32k context.
  • A bit wonky on the formatting side, you will need edit its replies to correct it.
  • Does not afraid to write A LOT.
  • A good grip at D&D rules.
  • It doesn't know "Monster Girl Encyclopedia" from the card's description as far as I understand, but it will try to come up with something and even hallucinate new monster races. Also, I think it creates much more female NPCs by default with this preset+card.
  • It can go off the rails even at the character's creation. Please have some faith in it, I've had some silly cute results when I did character creation Gemini's way. But even if you try to stay on track as written in the prompt, Gemini can forget, for example, to ask you about the status effect at the end of character creation like in 50% of the times. Not like it very important but keep an eye on something like this to swipe/edit.

Pros:

Cons:

  • Filter can be trigger-happy and sometimes block the candidates for no reason. Turn off the streaming to minimize the effect and try to not mention anything the filter can misinterpretate (example: Gemini gave my isekai'd cosplayer a 'skimpy schoolgirl uniform cosplay' as starting equipment and that triggered the filter on my next prompt. If something like this happens, just edit it to be maid outfit or something. Or just swipe). Also filter is the reason I added the age at the persona description.
  • Gemini can be very, and I mean VERY, stupid. Sometimes it's frustrating, sometimes wonderfully silly.
  • Gameplay-wise, if Gemini gives you things and effects that alter your rolls, you will need to keep an eye on it, Gemini can become confused and not add your bonuses or subtract penalties properly. Easiest fix is to specify during your roll that you have bonus/penalty so it remember to consider it.
  • 1121 ignores nat1 and nat20 in my playtests.
  • Sometimes, you WILL NEED to help Gemini with format of CYOA and your character sheet. Or just swipe couple of times until you see the formatting that's fine by you.

Technical Info

General info

  • A lot of instructions were cut off: all Q&A section, all Modes except CYOA and Dialog. I'm not a good prompt engineer in any way, so I tried to stay away from the actual instructions in this prompt as much as I can. Try to modify it yourself if something seems off.
    • Dialog Mode was added/returned in 1.2 and later versions.
  • Mechanics instructions were clarified for Gemini (with the help from anons from 2ch /aicg/).
  • Formatting instructions were simplified and all visuals for CYOA, rolls and player blocks now made with regexes and custom CSS.
  • Formatting of the text was simplified (with the help from anons) and now done the way I like it: narration is plaintext, direct speech in "quotes" and italic for thoughts. If you find this unreadable, you will need to tweak ⭐ / System Prompt (RP Guidelines) for your taste. Don't forget to rewrite example there to mirror your preferred formatting.
  • It is expected that you'll turn off 🎲 / Auto Roll and 🟣 / CYOA Mode during intro/character generation to make Gemini's work easier. !Don't forget to turn 🟣 / CYOA Mode on after the character creation!
  • You can also turn off 🎲 / Auto Roll if you pick the choice without the roll needed so not to confuse Gemini, but in general it works fine with this prompt turned on too.
  • Sometimes Gemini can forget to update your Player Status properly, it's mostly due to looping, though. Please keep an eye at it, and help it with this by editing its replies.
  • The formatting of CYOA section is a constant struggle. Example of fucked up format. Please help Gemini by editing its replies, it will see it's old CYOA blocks in its last post and will mirror the format, so ideally you will need to help it with formatting just once.

Refer to this for ideal formatting:

1
2
3
4
1. Simple choice.
2. [DEX REQ 11] Choice with the ability check.
3. [Illithid] Choice with the special status.
4. [Illithid] [INT REQ 17] Choice with both the ability check and the special status.
  • I strongly recommend not to be completely lazy and just spam numbers but actually talk to the DM/NPCs. Even if you just want to choose something from CYOA, you can try copy-paste that choice, as all CYOA blocks (as well as rolls blocks and old player status) will be cut from the prompt at depth to reduce looping and some context will be lost for Gemini. The cutting is done by regexes.

Visuals

<roll_result>:

Roll window is now wrapped in just <roll_result></roll_result>, with regexes and custom CSS it will look like this:

<roll_result>
(Note that Gemini a bit messed up the format here with "4 </= 15", but the result and outcome were right.)

<choices>:

CYOA choices are still wrapped in <choices></choices>, but format inside is easier and more laxed for Gemini. Regexes and custom CSS are needed to make it look like this:

<choices>

<player_status>:

The new character sheet is now has an example in ⭐ / System Prompt (RP Guidelines) and wrapped in <player_status></player_status> tag. The regexes and the custom CSS make it look like this:

<player_status>
(Also note that Gemini messed up the "glowing" spelling and left the extra curly braces, that's the kind of things you should keep an eye for.)

</details>:

There can be some oopsie with </details> tag if Gemini draws a table and then closes </details> without the newline between the end of table and the closing tag. Because of the missing newline </details> will be not visually closed properly. Regex will add a newline for such cases.

Regexes

There are THREE required regexes to reduce looping (two from the original preset to cut old <choices> and <roll_result> and one new to cut old <player_status>) and SEVEN regexes that do the heavy lifting and/or prime visuals for custom CSS. For you not to go mad, I'll include them with the prompt in .zip so you can import them in your SillyTavern, but please ALWAYS check any regexes with the Notepad or something, there can be some nasty shit. In this rentry there is also an optional regex to delete spaces/tabs at the beginning of the newline if Gemini continuously messes out the format of CYOA list. It's NOT included in .zip.

(upd. 07.02.25) Required regexes

Cut <roll_result> (Depth 3):

This is fist of the two regexes from CharacterProvider's original preset

Script Name:

Cut <roll_result> (Depth 3)

Find Regex:

(`{3})?\s*<roll_result>[\s\S]*?<\/roll_result>\s?(`{3})?\s*

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Outgoing Prompt
Min Depth:
3
Max Depth:
Unlimited


Cut <choices> (Depth 3):

This is second of the two regexes from the CharacterProvider's original preset

Script Name:

Cut <choices> (Depth 3)

Find Regex:

(`{3})?\s*<choices>[\s\S]*?<\/choices>\s?(`{3})?\s*

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Outgoing Prompt
Min Depth:
3
Max Depth:
Unlimited


(upd. 07.02.25) Cut <player_status> (Depth 5):

Updated reduce the depth from 7 to 5. Included in .zip of 1.2 fixed and 1.3 versions. Optional tweak.

Script Name:

Cut <player_status> (Depth 5)

Find Regex:

<player_status?\n?[\s\S]*?\n?<\/player_status>\n?

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Outgoing Prompt
Min Depth:
5
Max Depth:
Unlimited


Visual Regexes

Visual <roll_result> open:

Updated to support several roll results in one message.

Script Name:

Visual <roll_result> open

Find Regex:

/<roll_result[^>]*>\s*/g

Replace With:

<roll_result><div class="roll_result">

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual </roll_result> close:

This is another version, not the one included in .zip. I made it this way here only because Rentry for some reason does not shows single newline inside a codeblock. Updated to support several roll results in one message.

Script Name:

Visual </roll_result> close

Find Regex:

/(\n)<\/roll_result>/g

Replace With:

$1$1</div></roll_result>

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual <choices> open:

Script Name:

Visual <choices> open

Find Regex:

<choices[^>]*>\s*

Replace With:

<choices><div class="choices">

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual </choices> close:

Script Name:

Visual </choices> close

Find Regex:

<\/choices>

Replace With:

</div></choices>

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual <player_status> open:

Updated to support several character sheets in one message.

Script Name:

Visual <player_status> open

Find Regex:

/<player_status[^>]*>\s*/g

Replace With:

<player_status><div class="player_status">

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual </player_status> close:

Updated to support several character sheets in one message.

Script Name:

Visual </player_status> close

Find Regex:

/\s*<\/player_status>/g

Replace With:

</div></player_status>

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


Visual </details> close:

Script Name:

Visual </details> close

Find Regex:

/\n+<\/details>/g

Replace With:

1
2
3


</details>

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
Min Depth:
Unlimited
Max Depth:
Unlimited


(outdated) Optional regex for CYOA visuals

Removing extra spaces and Tab at the newline. Not included in the .zip file, can be beneficial only for 1121:

This regex removes up to 4 spaces or Tab at the beginning of the newline. It also affects the outgoing prompt so hopefully Gemini picks up the format. Recommended if your Gemini constantly tries to present the list of CYOA choices in markdown format.

Script Name:

2-4spaces and Tab removal (for <choises>)

Find Regex:

/(?<=\n)( {1,4}|\t)/g

Affects:
✅ AI Input
Other Options:
✅ Run On Edit
Ephemerality:
✅ Alter Chat Display
✅ Alter Outgoing Prompt
Min Depth:
Unlimited
Max Depth:
Unlimited


Custom CSS

Should work fine with CharacterProvider's RPG TAVERN Theme. Do not replace the custom CSS code with mine, just paste the new one alongside the original one.

I'll include .txt file with it in .zip. Just copy paste it in your Custom CSS window in User Settings.

Or you can copy from here:

.custom-choices {
    border: none;
    border-radius: 0.5em;
    color: #BA6140;
    font-size: 0.9em;
    padding: 1em;
    padding-left: 0;
    background-color:#181613;

    & p:empty { display: none }

    & li::marker {
        color: #836956;
        content: counter(list-item) ". • ";
    }
}

.custom-roll_result {
    border: 1px solid;
    border-radius: 0.5em;
    padding: 1em;
    font: 0.8em/1.4 'Noto Sans Mono', monospace;
    color: #BA6140;
    width: max-content;
    max-width: 95%;
    margin-inline: auto;

    & p:empty { display: none }

}

.custom-player_status {
    border-radius: 1em;
    padding: 1em;
    font: 0.8em/1.4 'Noto Sans Mono', monospace;
    color: #836956;
    white-space: pre-wrap;
    width: max-content;
    background-color: #261f18;
    max-width: 50%;
    margin-inline: auto;

    & p:empty { display: none }

}

You can tweak the colors and fonts, it's easy, just find line color and edit hex there, or font and choose a different font. Or you can ask any LLM to explain how to do it.

Known visual bugs

  • In the version for 1121 if Gemini outputs your character sheet twice in one reply (after completing your character creation for example), the second one will not be visually rendered properly. It's the regex problem, not Gemini problem. The regexes have been updated to support this (and several rolls too) in the version for 1206.

(new 07.02.25) Old versions

⬇️ CYOARPG Lite for GEMINI 1.2 fixed (for 1206)
⬇️ CYOARPG Lite for GEMINI 1.2 (for 1206)
⬇️ CYOARPG Lite for GEMINI (for 1121)

Thanks to CharacterProvider for the fun preset

Edit
Pub: 23 Nov 2024 18:49 UTC
Edit: 10 Feb 2025 22:47 UTC
Views: 7581