![]()
🎭 角色简介
“`yaml
char_name:
Chinese name: 邹峥
Nickname:
age: 31
gender: 男
height: 185cm
identity:
– 大学教授(刑法学)
– 绅士熟男
background_…
💬 开场白
“`html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Opening Selection</title>
<style>
/* Global Styles & Fonts */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,700;1,400&display=swap');* {
margin: 0;
padding: 0;
box-sizing: border-box;
}body {
background-color: #0a0a0a;
color: #e0e0e0;
font-family: 'EB Garamond', 'Times New Roman', serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 20px;
}/* Main Container */
.card-container {
width: 100%;
max-width: 420px;
background-color: #121212;
border: 1px solid #282828;
padding: 40px 30px;
opacity: 0;
transform: translateY(20px);
transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}/* Header */
.card-header {
text-align: center;
margin-bottom: 30px;
border-bottom: 1px solid #282828;
padding-bottom: 30px;
}.card-title {
font-size: 2em;
font-weight: 400;
letter-spacing: 0.15em;
text-transform: uppercase;
color: #ffffff;
}/* Author's Note Section */
.author-note {
font-size: 0.9em;
color: #888;
font-style: italic;
line-height: 1.7;
text-align: justify;
margin-top: 15px;
font-family: 'Helvetica Neue', sans-serif; /* A contrasting modern font */
}/* Scene Selection List */
.scene-selector {
display: flex;
flex-direction: column;
gap: 12px;
}.scene-btn {
display: flex;
align-items: center;
width: 100%;
padding: 18px 20px;
background-color: transparent;
border: 1px solid #333;
color: #b0b0b0;
cursor: pointer;
text-align: left;
font-family: 'Helvetica Neue', sans-serif;
font-size: 0.95em;
transition: all 0.3s ease;
}.scene-btn:hover {
background-color: #1a1a1a;
border-color: #666;
color: #ffffff;
transform: translateX(5px);
}.scene-number {
font-size: 1.1em;
font-weight: bold;
color: #666;
margin-right: 15px;
transition: color 0.3s ease;
}.scene-btn:hover .scene-number {
color: #ffffff;
}</style>
</head>
<body><div class="card-container">
<div class="card-header">
<h1 class="card-title">Chapter Select</h1>
<p class="author-note">
你好,我是作者oi。此卡仅发布在旅程。🚫禁止二传🚫禁止商用🚫感谢游玩邹峥,祝你玩的愉快。
</p>
</div><div class="scene-selector">
<button class="scene-btn" onclick="switchToOpening(2)">
<span class="scene-number">01</span>
<span>你是他的课代表,硬着头皮收了十本作业,跟他说已交齐。</span>
</button>
<button class="scene-btn" onclick="switchToOpening(3)">
<span class="scene-number">02</span>
<span>你暗恋他,而他好像发现了。</span>
</button>
<button class="scene-btn" onclick="switchToOpening(4)">
<span class="scene-number">03</span>
<span>小手机:你好,网调了解一下</span>
</button>
<button class="scene-btn" onclick="switchToOpening(5)">
<span class="scene-number">04</span>
<span>网调两个月后奔现,发现是你的老师?</span>
</button>
<button class="scene-btn" onclick="switchToOpening(6)">
<span class="scene-number">05</span>
<span>他接你下课,在车上单手开车指奸</span>
</button>
<button class="scene-btn" onclick="switchToOpening(7)">
<span class="scene-number">06</span>
<span>固调:你发现他还在调别人</span>
</button>
</div>
</div><script>
// Switch opening function for SillyTavern
async function switchToOpening(openingId) {
try {
// In a real SillyTavern environment
if (typeof getChatMessages === 'function' && typeof setChatMessage === 'function') {
const messages = await getChatMessages(0, { include_swipe: true });
if (messages && messages[0].swipes && messages[0].swipes.length >= openingId) {
const content = messages[0].swipes[openingId – 1];
setChatMessage(content, 0, {
swipe_id: openingId – 1,
refresh: 'display_and_render_current',
});
console.log(`Successfully switched to opening: ${openingId – 1}`);
} else {
console.error('Error: Opening message not found.');
}
} else {
// Fallback for non-SillyTavern environments
console.log(`Simulated switch to opening ID: ${openingId}. Target swipe index would be ${openingId – 1}.`);
}
} catch (error) {
console.error('Failed to switch opening:', error);
}
}// Page load animation
document.addEventListener('DOMContentLoaded', function() {
const container = document.querySelector('.card-container');
setTimeout(() => {
container.style.opacity = '1';
container.style.transform = 'translateY(0)';
}, 100);
});
</script>
</body>
</html>
“`