Files

572 lines
12 KiB
Plaintext

title: InitParams
tags: init
---
<<declare $consciousness = 1>>
<<declare $doorCheck = false>>
<<declare $seaExist = "default">>
<<declare $wind = 0>> //风向
<<declare $t = 0>> //收放线次数
<<declare $h = 1>> //风筝高度
<<declare $fzAccend = false>>
<<declare $grab=false>>
<<declare $fz = false>>
<<declare $fzLearnt = true>>
<<declare $entering = true>>
<<declare $leaving = false>>//用来判断玩家是否正在尝试离开当前场景的flag,使用完就应该被放下
<<declare $gameStage = 1>>//
===
title: InitMusic
tags: function
---
<<set_global_param day 2>>
<<set_global_param Vol_general 0>>
===
title: 风筝1风向_Set
tags: function
---
<<if $t==0>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==1>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==2>>
<<set $wind=-1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==3>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==4>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0.55>>
<<endif>>
===
title: 放线_Set
tags: function
---
<<if $wind==1>>
<<set $h=$h+1>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent lift>>
<<elseif $wind==0>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent flutter>>
<<elseif $wind==-1>>
<<set $h=$h - 1>>
<<set $fzAccend = false>>
<<kite_state {$h} {$wind}>>
<<kite_accent sink>>
<<endif>>
===
title: 收线_Set
tags: function
---
<<if $wind==1>>
<<set $h=$h - 1>>
<<set $fzAccend = false>>
<<kite_state {$h} {$wind}>>
<<kite_accent sink>>
<<elseif $wind==0>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent flutter>>
<<elseif $wind==-1>>
<<set $h=$h+1>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent lift>>
<<endif>>
===
title: 保持_Set
tags: function
---
<<if $wind==1>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent taut>>
<<elseif $wind==0>>
<<set $h=$h+1>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent flutter>>
<<elseif $wind==-1>>
<<set $h=$h - 1>>
<<set $fzAccend = false>>
<<kite_state {$h} {$wind}>>
<<kite_accent sink>>
<<endif>>
===
title: 风筝回合推进_Set
tags: function
---
<<set $t =$t + 1>>
<<if $h<1>>
<<set $t = 5>>
<<set $fzLearnt = false>>
<<endif>>
===
title: 风筝落地演出_Set
tags: function
---
<<kite_show {$h} 0 0.35>>
<<kite_wind 0 0>>
<<kite_state 0 0 1>>
<<kite_accent drop>>
===
title: 风筝落地转场_Set
tags: function
---
<<fade_in>>
<<set_global_param prologueDreamStage 1>>
<<set_global_param dream1Stage 1>>
<<set $gameStage=2>>
<<show_sprite "全景树与小女孩不出现小女孩">>
<<fade_out>>
===
title: 展示广场_Func
tags: function
---
<<if $gameStage==2>>
<<show_sprite "全景树与小女孩不出现小女孩">>
<<elseif $gameStage==3>>
<<show_sprite "D2S广场">>
<<elseif $gameStage==4>>
<<show_sprite "D2S广场">>
<<endif>>
===
title: 广场_又回来了_Set
tags: function
---
<<set $leaving = false >>
===
title: 广场_离开_Set
tags: function
---
<<set $leaving = true>>
===
title: 广场_起风筝2_Set
tags: function
---
<<set $t=0>>
<<set $h=0>>
<<set $fzAccend=false>>
===
title: 广场_取下风筝_Set
tags: function
---
<<set $gameStage=3>>
===
title: 风筝2风向_Set
tags: function
---
<<if $t==0>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==1>>
<<set $wind=-1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==2>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0.55>>
<<elseif $t==3>>
<<set $wind=-1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0.4>>
<<elseif $t==4>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==5>>
<<set $wind=-1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==6>>
<<set $wind=-1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0>>
<<elseif $t==7>>
<<kite_show {$h} -1 0.35>>
<<kite_wind -1 0>>
<<set_global_param d2sAccend 0.2>>
<<elseif $t==8>>
<<if $h<10>>
<<set $h=10>>
<<endif>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 0.95>>
<<kite_state {$h} {$wind} 1.2>>
<<set_global_param d2sAccend 0.4>>
<<elseif $t==9>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 1>>
<<set_global_param d2sAccend 0.6>>
<<elseif $t>=10>>
<<set $wind=1>>
<<kite_show {$h} {$wind} 0.35>>
<<kite_wind {$wind} 1>>
<<set_global_param d2sAccend 0.8>>
<<endif>>
===
title: 风筝2回合推进_Set
tags: function
---
<<set $t =$t + 1>>
===
title: 风筝2_保持_Set
tags: function
---
<<if $wind==1>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<kite_accent taut>>
<<elseif $wind==0>>
<<set $fzAccend = true>>
<<kite_state {$h} {$wind}>>
<<elseif $wind==-1>>
<<set $h=$h - 1>>
<<set $fzAccend = false>>
<<kite_state {$h} {$wind}>>
<<kite_accent sink>>
<<endif>>
===
title: 风筝2_放手_Set
tags: function
---
<<set $grab=false>>
===
title: 风筝2_抓紧_Set
tags: function
---
<<set $grab=true>>
===
title: 上升_入场_Func
tags: function
---
<<set_global_param d2sAccend 1>>
<<wait 2>>
<<bloom_exposure_in "BloomEffect" 2.2 6>>
<<show_large_sprite_animation "D2S天花板风扇" 5 0.2 0>>
<<set_large_sprite_blur 0>>
<<wait 2>>
<<bloom_exposure_out "BloomEffect" 1.6 6>>
<<wait 2>>
===
title: 上升_模糊_Func
tags: function
---
<<tween_large_sprite_blur 0.68 2.2 0.012>>
===
title: 展示星图_Func
tags: function
---
<<show_large_sprite "D2S星图" 0>>
===
title: 上升_高空开始_Func
tags: function
---
<<set $gameStage = 4>>
<<set_global_param d2sStage 3.8>>
<<bloom_exposure_in "BloomEffect" 1.8 0.6>>
<<wait 0.8>>
<<wait 1>>
===
title: 展示高空近景_Func
tags: function
---
<<show_large_sprite "高空B近景" 0>>
<<wait 1>>
===
title: 展示高空中景_Func
tags: function
---
<<set_large_sprite_blur 0.5>>
<<tween_large_sprite_blur_async 0 1.8 0.012>>
<<bloom_exposure_out "BloomEffect" 1.8 0.6>>
<<show_large_sprite "高空C中景" 0>>
<<wait 1>>
===
title: 展示高空全景_Func
tags: function
---
<<show_large_sprite "高空D全景" 0>>
===
title: 上升_醒来1_Set
tags: function
---
<<set $gameStage = 4>>
<<set_global_param d2sStage 3.9>>
<<bloom_exposure_in "BloomEffect" 2.2 0.6>>
<<fade_in 0>>
<<wait 1>>
<<play_sfx "event:/Scriptal/doorSlam">>
<<wait 3>>
<<set_global_param d2sDoorDistance 2>>
===
title: 上升_醒来2_Set
tags: function
---
<<fade_out 0>>
<<tween_large_sprite_blur_async 0 0 0.4>>
<<show_large_sprite "D2S枯树-Large" 0>>
<<bloom_exposure_out "BloomEffect" 2.2 0.5>>
<<set_global_param d2sStage 4>>
<<stop_sfx "event:/Scriptal/doorSlam">>
===
title: 上升_解开_Func
tags: function
---
<<tween_large_sprite_blur_async 0 0 0>>
===
title: 展示枯树_Func
tags: function
---
<<set_global_param d2sDoorDistance 2>>
<<show_large_sprite "D2S枯树-Large" 0>>
===
title: 展示枯树风筝_Func
tags: function
---
<<set_global_param d2sDoorDistance 2>>
<<show_large_sprite "D2S枯树风筝">>
===
title: 枯树_发现风筝_Set
tags: function
---
<<set $fz = true>>
===
title: 展示门_Func
tags: function
---
<<if $doorCheck == false>>
<<hide_dream_door>>
<<set_global_param d2sDoorDistance 1>>
<<show_large_sprite "D2S门">>
<<set_global_param dream1Stage 1.6>>
<<else>>
<<set_global_param dream1Stage 2>>
<<show_door_listen_view false 0>>
<<set_global_param d2sDoorDistance 0>>
<<set_door_closeup 1 1>>
<<set_volume_weight "BloomEffect" 0.4>>
<<set_volume_brightness "BloomEffect" 0>>
<<endif>>
===
title: 门_回头_Set
tags: function
---
<<set $doorCheck = false>>
===
title: 门观察_入场_Set
tags: function
---
<<set $doorCheck = true>>
<<set_global_param dream1Stage 2>>
<<show_door_listen_view false 0>>
<<set_global_param d2sDoorDistance 0>>
<<set_door_closeup 1 1>>
<<set_volume_weight "BloomEffect" 0.4>>
<<set_volume_brightness "BloomEffect" 0>>
<<tween_door_closeup_async 1.1 1 20>>
===
title: 展示门把手_Func
tags: function
---
<<set_global_param d2sDoorDistance 0>>
<<show_large_sprite "门把手特写" 0>>
===
title: 推门_凑近_Func
tags: function
---
<<show_door_listen_view false 0>>
<<set_global_param d2sDoorDistance 0>>
<<tween_door_closeup_async 1.2 1 10>>
===
title: 推门_海面闪回_Func
tags: function
---
<<tween_door_closeup_async 1.1 1 0>>
<<tween_volume_weight_async "BloomEffect" 1 0>>
<<tween_volume_brightness_async "BloomEffect" 1 0>>
<<wait 3>>
<<set_global_param d2sDoorDistance -1>>
<<hide_large_sprite 0>>
<<fade_out 0.1>>
<<show_door_glass_sea_fullscreen>>
<<tween_volume_brightness_async "BloomEffect" 0 1.5>>
<<wait 0.5>>
<<tween_volume_weight_async "BloomEffect" 0.2 1>>
<<wait 1>>
<<tween_volume_weight_async "BloomEffect" 0.06 20>>
===
title: 推门_回到门前_Func
tags: function
---
<<wait 2>>
<<tween_volume_weight_async "BloomEffect" 1 2.2>>
<<tween_volume_brightness_async "BloomEffect" 1 2.2>>
<<wait 2>>
<<tween_door_closeup_async 1 1 0>>
<<set_global_param d2sDoorDistance 0>>
<<show_door_listen_view true 0>>
<<set_global_param d2sDoorDistance 0>>
<<tween_door_closeup_async 1 1 1>>
<<tween_volume_weight_async "BloomEffect" 0.05 4>>
<<tween_volume_brightness_async "BloomEffect" 0 2>>
<<wait 2>>
<<tween_volume_weight_async "BloomEffect" 0.02 20>>
<<tween_door_closeup_async 1.1 1 10>>
===
title: 海存在_Set
tags: function
---
<<set $seaExist="存在…">>
===
title: 海不存在_Set
tags: function
---
<<set $seaExist="不存在。">>
===
title: 海不知道_Set
tags: function
---
<<set $seaExist="我不知道…也许?">>
===
title: 展示乌鸦_Func
tags: function
---
<<show_large_sprite "门上乌鸦中景金色" 0>>
===
title: 乌鸦_打量门_Func
tags: function
---
<<tween_door_closeup_async 1.5 1 20>>
<<set_door_closeup 1.1 1>>
<<show_door_listen_view true 1>>
<<set_global_param d2sDoorDistance 0>>
<<set_volume_weight "BloomEffect" 0.02>>
<<set_volume_brightness "BloomEffect" 0>>
===
title: 校验门_眨眼_Func
tags: function
---
<<fade_in 0>>
<<wait 0.1>>
<<set_global_param d2sCode 1>>
<<tween_door_closeup_async 1.6 1 20>>
<<tween_volume_weight_async "BloomEffect" 1 2.4>>
<<tween_volume_brightness_async "BloomEffect" 1 2.4>>
<<fade_out 0>>
<<wait 2.4>>
<<set_global_param dream1Stage 3>>
<<set_door_closeup 1.1 0>>
<<show_door_listen_view false 0>>
<<set_global_param d2sDoorDistance 0>>
<<show_door_code_sea_fullscreen>>
<<tween_volume_weight_async "BloomEffect" 0 2>>
<<tween_volume_brightness_async "BloomEffect" 0 2>>
<<wait 2>>
===
title: 乌鸦飞走_Func
tags: function
---
<<tween_door_closeup_async 4 1 20>>
<<hide_dialog>>
<<tween_volume_weight_async "BloomEffect" 1 2.4>>
<<tween_volume_brightness_async "BloomEffect" 1 2.4>>
<<wait 2.4>>
<<set_door_closeup 1 1>>
<<show_door_code_sea_framed>>
<<set_door_closeup 1 0>>
<<tween_volume_weight_async "BloomEffect" 0 2>>
<<tween_volume_brightness_async "BloomEffect" 0 2>>
<<wait 2>>
===
title: 靠近黑暗_Set
tags: function
---
<<set $gameStage=5>>
<<set_global_param d2sStage 5>>
<<set_global_param d2sEnd 1>>
<<hide_dialog>>
<<set_volume_weight "BloomEffect" 0>>
<<set_volume_brightness "BloomEffect" 0>>
<<show_dream_terminal>>
===
title: 苏醒_入场_Func
tags: function
---
<<set $gameStage = 6>>
<<set_global_param d2sStage 6>>
<<set_global_param Vol_general 1>>
<<tween_volume_weight "BloomEffect" 0.3 2>>
<<stop_sfx event:/FollowInput/defib/defib_charging>>
<<play_sfx event:/FollowInput/defib/defib_shock>>
<<tween_volume_weight_async "BloomEffect" 1 3>>
<<tween_volume_brightness_async "BloomEffect" 1 5>>
<<wait 3>>
===