feat: choice conditions with variables, demo updates, roadmap update

This commit is contained in:
2026-06-09 16:46:06 +08:00
parent beb1e5cfd5
commit bf4b85f727
4 changed files with 155 additions and 59 deletions

View File

@@ -146,6 +146,8 @@
"choices": [
{
"text": "与陌生人握手",
"textKey": "scene.left_door.choice.handshake",
"prompt": "陌生人会记住你的善意",
"targetScene": "trust_ending",
"effects": [
{ "type": "add", "target": "trust", "value": 30 }
@@ -238,6 +240,8 @@
"choices": [
{
"text": "开启信任的旅程(需要 trust >= 80",
"textKey": "scene.trust_ending.choice.journey",
"prompt": "你们的羁绊将改变一切",
"targetScene": "secret_ending",
"conditions": [
{ "variable": "trust", "op": ">=", "value": 80 }