1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
"metadata": {
"version": "0.1.0",
"generated_at": "2025-11-04T13:50:48.173483324+00:00"
},
"nodes": [
{
"name": "start",
"texts": [
{
"text": "你好呀,欢迎阅读这个互动故事。",
"events": [
{
"index": 0,
"actions": [
{
"type": "play_sound",
"args": [
"greeting.wav"
]
}
]
},
{
"index": 6,
"actions": [
{
"type": "set_animation",
"args": [
"wave"
]
},
{
"type": "play_sound",
"args": [
"wave_sound.wav"
]
}
]
},
{
"index": 17,
"actions": [
{
"type": "set_color",
"args": [
"#FF6B6B"
]
}
]
}
]
},
{
"text": "我想你的名字是 {get_name()},对不?",
"events": [
{
"index": 4.2,
"actions": [
{
"type": "set_color",
"args": [
"#33CCFF"
]
}
]
},
{
"index": 10.8,
"actions": [
{
"type": "set_color",
"args": [
"#FF6B6B"
]
}
]
}
]
},
{
"text": "太好啦,我们走!"
}
],
"next": "choice_point"
},
{
"name": "choice_point",
"texts": [
{
"text": "你想干点啥?"
},
{
"text": "我真服了。那咱就先结束对话吧。"
}
],
"choice": [
{
"text": "探索森林",
"next": "forest_scene"
},
{
"text": "留在城里",
"condition": {
"type": "has_map"
},
"next": "town_scene"
},
{
"text": "查看背包",
"condition": {
"type": "has_backpack"
},
"next": "inventory"
},
{
"text": "吃点什么",
"choice": [
{
"text": "Apple",
"next": "eat_apple"
},
{
"text": "Bread",
"next": "eat_bread"
}
]
},
{
"text": "别朝我叭叭了!!",
"action": "return"
},
{
"text": "我不到啊……",
"action": "break"
}
]
}
],
"functions": [
{
"name": "play_sound",
"params": [{ "name": "file_name", "type": "String" }]
},
{
"name": "set_animation",
"params": [{ "name": "anim_name", "type": "String" }]
},
{
"name": "set_color",
"params": [{ "name": "value", "type": "String" }]
},
{
"name": "get_name",
"return": "String"
}
]
}