滚动番茄

Ren'py早期变量跳转方法

default took_path_a = False

label start:

"欢迎来到游戏。" jump early_choice

label early_choice:

menu: "很久以前,你遇到了一个岔路口..."

"走左边的路(A分支)": $ took_path_a = True "你选择了左边。" jump after_early

"走右边的路": "你选择了右边。" jump after_early

label after_early:

"时间流逝..." "很多章节过去了..." jump later_decision

label later_decision:

"现在,根据你很久以前的选择..."

if took_path_a: "因为你选了A,所以进入B结局。" jump B_ending else: "因为你没选A,所以进入C结局。" jump C_ending

label B_ending: "这是B结局。" return

label C_ending: "这是C结局。" return