{"name":"🎲Random Event Generator🎲","description":"뜌듀듀땨","id":"51e575e9-b835-4461-8a12-c81585e9a5ba","hideIcon":false,"regex":[{"comment":"Edit display","in":"{settings}","out":"<table class=\"option-table\">\n    <tr>\n        <th>항목</th>\n        <th>가중치</th>\n        <th>ON/OFF</th>\n    </tr>\n    <tr>\n        <td>Default</td>\n        <td>120</td>\n        <td>\n            <input type=\"checkbox\" id=\"option1\" class=\"option-input\" {{#if {{getvar::optionDefault}}}}checked{{/if}}>\n            <label for=\"option1\" class=\"option-label\" risu-trigger=\"optionDefault\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Bad Event</td>\n        <td>4</td>\n        <td>\n            <input type=\"checkbox\" id=\"option2\" class=\"option-input\" {{#if {{getvar::optionBad}}}}checked{{/if}}>\n            <label for=\"option2\" class=\"option-label\" risu-trigger=\"optionBad\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Secret Revealed</td>\n        <td>6</td>\n        <td>\n            <input type=\"checkbox\" id=\"option3\" class=\"option-input\" {{#if {{getvar::optionSecret}}}}checked{{/if}}>\n            <label for=\"option3\" class=\"option-label\" risu-trigger=\"optionSecret\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Character Appearance</td>\n        <td>2</td>\n        <td>\n            <input type=\"checkbox\" id=\"option4\" class=\"option-input\" {{#if {{getvar::optionAppearance}}}}checked{{/if}}>\n            <label for=\"option4\" class=\"option-label\" risu-trigger=\"optionAppearance\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Plot Expansion</td>\n        <td>6</td>\n        <td>\n            <input type=\"checkbox\" id=\"option5\" class=\"option-input\" {{#if {{getvar::optionExpansion}}}}checked{{/if}}>\n            <label for=\"option5\" class=\"option-label\" risu-trigger=\"optionExpansion\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Twist</td>\n        <td>4</td>\n        <td>\n            <input type=\"checkbox\" id=\"option6\" class=\"option-input\" {{#if {{getvar::optionTwist}}}}checked{{/if}}>\n            <label for=\"option6\" class=\"option-label\" risu-trigger=\"optionTwist\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Difficult Decision</td>\n        <td>5</td>\n        <td>\n            <input type=\"checkbox\" id=\"option7\" class=\"option-input\" {{#if {{getvar::optionDecision}}}}checked{{/if}}>\n            <label for=\"option7\" class=\"option-label\" risu-trigger=\"optionDecision\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>New Challenge</td>\n        <td>3</td>\n        <td>\n            <input type=\"checkbox\" id=\"option8\" class=\"option-input\" {{#if {{getvar::optionChallenge}}}}checked{{/if}}>\n            <label for=\"option8\" class=\"option-label\" risu-trigger=\"optionChallenge\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Self-Discovery</td>\n        <td>3</td>\n        <td>\n            <input type=\"checkbox\" id=\"option9\" class=\"option-input\" {{#if {{getvar::optionSelfDiscovery}}}}checked{{/if}}>\n            <label for=\"option9\" class=\"option-label\" risu-trigger=\"optionSelfDiscovery\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Relationship Strengthening</td>\n        <td>7</td>\n        <td>\n            <input type=\"checkbox\" id=\"option10\" class=\"option-input\" {{#if {{getvar::optionStrengthen}}}}checked{{/if}}>\n            <label for=\"option10\" class=\"option-label\" risu-trigger=\"optionStrengthen\"></label>\n        </td>\n    </tr>\n    <tr>\n        <td>Aftermath of the Event</td>\n        <td>3</td>\n        <td>\n            <input type=\"checkbox\" id=\"option11\" class=\"option-input\" {{#if {{getvar::optionAftermath}}}}checked{{/if}}>\n            <label for=\"option11\" class=\"option-label\" risu-trigger=\"optionAftermath\"></label>\n        </td>\n    </tr>\n</table>","type":"editdisplay","ableFlag":false},{"comment":"Add in Input","in":"^([\\s\\S]*)$","out":"$1{{settempvar::sum::0}}\n{{#each {{array::Default::Bad::Secret::Appearance::Expansion::Twist::Decision::Challenge::SelfDiscovery::Strengthen::Aftermath}}  element}}\n{{#if {{? {{getvar::option{{slot::element}}}} == 0}}}}\n{{settempvar::sum::{{? {{gettempvar::sum}}+{{element::{{d::Default=120::Bad=4::Secret=6::Appearance=2::Expansion=6::Twist=4::Decision=5::Challenge=3::SelfDiscovery=3::Strengthen=7::Aftermath=3}}::{{slot::element}}}}}}}}\n{{/if}}\n{{/each}}\n{{settempvar::randGen::{{roll::{{gettempvar::sum}}}}}}\n{{#each {{array::Default::Bad::Secret::Appearance::Expansion::Twist::Decision::Challenge::SelfDiscovery::Strengthen::Aftermath}} element}}\n{{#if {{? {{? {{gettempvar::randGen}}>0}} && {{? {{getvar::option{{slot::element}}}} == 0}}}}}}\n{{settempvar::randGen::{{? {{gettempvar::randGen}}-{{element::{{element::{{d::Default=120::Bad=4::Secret=6::Appearance=2::Expansion=6::Twist=4::Decision=5::Challenge=3::SelfDiscovery=3::Strengthen=7::Aftermath=3}}::{{slot::element}}}}}}}}}}\n{{#if {{? {{gettempvar::randGen}}<=0}}}}\n{{settempvar::addedPrompt::{{slot::element}}}}\n{{/if}}\n{{/if}}\n{{/each}}\n{{#if {{not_equal::{{gettempvar::addedPrompt}}::Default}}}} [System: {{element::{{d::Bad=Create a new event that maintains the current mood. Make bad event occur in this situation to continue writing the back story.::Secret=Reveal a secret or hidden truth about a character, adding depth to their backstory and affecting their relationships with others.::Appearance=Create a new character to leave the reader eager find out what happens next in the story with setting the stage for a confrontation or turning point in the story. Introduce a new character who challenges or supports in this situation to add a fresh dynamic to the story with surprising the reader and changing the direction of the story.::Expansion=Delve deeper into a subplot, weaving it into the main story arc and adding complexity to the narrative.::Twist=Introduce a significant plot twist, surprising the reader and changing the direction of the story to add a fresh incredible dynamic to the story.::Decision=Create a difficult decision with creating a cliffhanger, leaving the reader eager to find out what happens next in the story. Make a character face the difficult decision, exploring the internal conflict they experience and the potential consequences of their choice.::Challenge=Create an incredibly dangerous and challenging event to escalate the tension. Make {{user}} meet with the challenging event to add a fresh incredible dynamic to the story.::SelfDiscovery=Depict a character's moment of self-discovery, showing how they learn from their experiences and grow as a person.::Strengthen=Depict a tender or emotional moment between characters, highlighting their connections and deepening their relationships.::Aftermath=Show the aftermath of a major event, exploring how the characters process their emotions and make decisions based on the consequences.}}::{{gettempvar::addedPrompt}}}}]{{/if}}","type":"editinput","ableFlag":false}],"backgroundEmbedding":"<style>\n.option-table {\n        border-collapse: separate;\n        border-spacing: 0;\n        width: 80%;\n        max-width: 800px;\n        background-color: white;\n        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);\n        border-radius: 10px;\n        overflow: hidden;\n        margin: 0 auto;\n        color: #222;\n    }\n    .option-table th, .option-table td {\n        padding: 15px;\n        text-align: center;\n        border-bottom: 1px solid #ddd;\n    }\n    .option-table th {\n        background-color: #FFB6C1;\n        color: white;\n        text-transform: uppercase;\n        font-weight: bold;\n    }\n    .option-table tr:last-child td {\n        border-bottom: none;\n    }\n    tr:nth-child(even) {\n        background-color: #f8f8f8;\n    }\n    .option-input {\n        display: none;\n    }\n    .option-label {\n        cursor: pointer;\n        color: #2196F3;\n        font-weight: bold;\n        transition: color 0.3s ease;\n    }\n    .option-input:checked + .option-label {\n        color: #f44336;\n    }\n    .option-input:checked + .option-label::after {\n        content: 'OFF';\n    }\n    .option-input:not(:checked) + .option-label::after {\n        content: 'ON';\n    }\n</style>","trigger":[{"conditions":[],"type":"manual","comment":"optionDefault","effect":[{"type":"setvar","var":"optionDefault","value":"{{#if {{? {{getvar::optionDefault}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionDefault}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionBad","effect":[{"type":"setvar","var":"optionBad","value":"{{#if {{? {{getvar::optionBad}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionBad}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionSecret","effect":[{"type":"setvar","var":"optionSecret","value":"{{#if {{? {{getvar::optionSecret}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionSecret}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionAppearance","effect":[{"type":"setvar","var":"optionAppearance","value":"{{#if {{? {{getvar::optionAppearance}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionAppearance}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionExpansion","effect":[{"type":"setvar","var":"optionExpansion","value":"{{#if {{? {{getvar::optionExpansion}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionExpansiont}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionTwist","effect":[{"type":"setvar","var":"optionTwist","value":"{{#if {{? {{getvar::optionTwist}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionTwist}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionDecision","effect":[{"type":"setvar","var":"optionDecision","value":"{{#if {{? {{getvar::optionDecision}}=0}}}}1{{/if}}{{#if {{? {{optionDecision}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionChallenge","effect":[{"type":"setvar","var":"optionChallenge","value":"{{#if {{? {{getvar::optionChallenge}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionChallenge}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionSelfDiscovery","effect":[{"type":"setvar","var":"optionSelfDiscovery","value":"{{#if {{? {{getvar::optionSelfDiscovery}}=0}}}}1{{/if}}{{#if {{? {{getvar::optionSelfDiscovery}}=1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionStrengthen","effect":[{"type":"setvar","var":"optionStrengthen","value":"{{#if {{? {{getvar::optionStrengthen}}==0}}}}1{{/if}}{{#if {{? {{getvar::optionStrengthen}}==1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true},{"conditions":[],"type":"manual","comment":"optionAftermath","effect":[{"type":"setvar","var":"optionAftermath","value":"{{#if {{? {{getvar::optionAftermath}}==0}}}}1{{/if}}{{#if {{? {{getvar::optionAftermath}}==1}}}}0{{/if}}","operator":"="}],"lowLevelAccess":true}],"lowLevelAccess":true,"type":"risuModule","creator_notes":"optionDefault=0\noptionBad=1\noptionSecret=1\noptionAppearance=1\noptionExpansion=1\noptionTwist=1\noptionDecision=1\noptionChallenge=1\noptionSelfDiscovery=1\noptionStrengthen=1\noptionAftermath=1\n\n\n기본변수에 이거 넣고 시작하세요","tags":[],"license":"","rtype":"module"}