PineappleInterview/game/script.rpy

46 lines
1.7 KiB
Plaintext

define bl = Character('凤梨', color="#fffec8")
define w = Character('我', color="#c8c8ff")
define zz = Character('竹笋', color="#c8ffc8")
define hr = Character('HR', color="#c8ffc8")
define rm2 = Character('舍友2', color="#ffc8c8")
define rm3 = Character('舍友3', color="#ffc8c8")
define rm4 = Character('舍友4', color="#ffc8c8")
define rm5 = Character('舍友5', color="#ffc8c8")
define rm6 = Character('舍友6', color="#ffc8c8")
define audio.se_walking = "walking.ogg"
define audio.se_keyboard_typing = "keyboard_typing.ogg"
define audio.se_writing = "writing.ogg"
define audio.se_phone_ring = "phone_ring.ogg"
define audio.se_knock_door = "knock_door.ogg"
default is_open_source_project = False
default open_source_switch_counter = 0
default bl_score = 0
default is_wrong_switch_project_introduce = False
default is_wrong_switch_linux_build = False
default is_wrong_switch_make_output = False
default is_wrong_switch_online_search = False
default is_wrong_switch_offline_search = False
init python:
def is_entering_branch_good() -> bool:
return bl_score >= 4
def is_entering_branch_normal() -> bool:
return bl_score > 0 and bl_score < 4
def is_entering_branch_bad() -> bool:
return bl_score < 0
label start:
call common_chapter_1 from ret_common_chapter_1
call common_chapter_2 from ret_common_chapter_2
call common_chapter_3 from ret_common_chapter_3
if is_entering_branch_bad():
call branch_bad_chapter_3 from ret_branch_bad_chapter_3
elif is_entering_branch_normal():
call branch_normal_chapter_3 from ret_branch_normal_chapter_3
else:
call branch_good_chapter_3 from ret_branch_good_chapter_3