From 530865d79384436deb2329794c94766c9103bc48 Mon Sep 17 00:00:00 2001 From: swrring Date: Wed, 18 Nov 2026 16:46:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=B0=EC=9D=98=EC=A0=84=EA=B8=B0=20?= =?UTF-8?q?=EC=8B=9C=EB=82=98=EB=A6=AC=EC=98=A4=20=EC=9D=B4=EB=B2=A4?= =?UTF-8?q?=ED=8A=B8(=ED=8E=B8=200=20=EB=8F=84=EC=9B=90=EA=B2=B0=EC=9D=98?= =?UTF-8?q?=20=C2=B7=201-1~1-3=20=EC=8B=9C=EC=9E=91=C2=B7=EC=8A=B9?= =?UTF-8?q?=EB=A6=AC=20=EC=97=B0=EC=B6=9C)=20+=20=EC=B6=9C=EC=A0=95=20?= =?UTF-8?q?=EB=B3=B4=EC=8A=A4=20=EB=93=B1=EC=9E=A5=20=EC=A3=BC=EA=B3=A0?= =?UTF-8?q?=EB=B0=9B=EA=B8=B0=20=E2=80=94=20ScenarioEvent=20=C2=B7=20Scena?= =?UTF-8?q?rioUi(=EB=A7=90=ED=92=8D=EC=84=A0=20=EA=B3=B5=EC=9A=A9)=20?= =?UTF-8?q?=C2=B7=20boss=5Ftalk.csv=20=C2=B7=20=EC=9D=B4=EB=B2=A4=ED=8A=B8?= =?UTF-8?q?=20=ED=91=9C=204=EC=9E=A5=20=C2=B7=201-1=20=EC=A0=9C=EB=AA=A9?= =?UTF-8?q?=C2=B7=EC=95=88=EB=82=B4=C2=B7=EC=A0=84=EC=9E=A5=20=EC=84=A4?= =?UTF-8?q?=EB=AA=85=20=C2=B7=20ScenarioEventTests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- Assets/Data/Stages/stages.csv | 2 +- Assets/Data/Stages/tutorial_guide.csv | 2 +- Assets/Data/Stages/tutorial_stage.csv | 2 +- Assets/Resources/BalanceConfig.asset | 2 +- Assets/Resources/ChapterMap/Data/ch01.json | 2 +- .../Resources/Scenario/boss_intro_config.csv | 2 + Assets/Resources/Scenario/boss_talk.csv | 92 +++ Assets/Resources/Scenario/boss_talk.csv.meta | 7 + Assets/Resources/Scenario/scenario_actor.csv | 15 + .../Scenario/scenario_actor.csv.meta | 7 + Assets/Resources/Scenario/scenario_emote.csv | 7 + .../Scenario/scenario_emote.csv.meta | 7 + Assets/Resources/Scenario/scenario_event.csv | 159 ++++ .../Scenario/scenario_event.csv.meta | 7 + .../Scenario/scenario_event_config.csv | 30 + .../Scenario/scenario_event_config.csv.meta | 7 + Assets/Resources/Scenario/stage_story.csv | 4 +- Assets/Resources/Tutorial/TutorialDb.asset | 65 +- Assets/Scripts/Runtime/BattleManager.cs | 28 +- Assets/Scripts/Runtime/Board.cs | 32 + Assets/Scripts/Runtime/Scenario/BossIntro.cs | 197 ++--- .../Scripts/Runtime/Scenario/ScenarioData.cs | 215 ++++++ .../Scripts/Runtime/Scenario/ScenarioEvent.cs | 680 ++++++++++++++++++ .../Runtime/Scenario/ScenarioEvent.cs.meta | 2 + Assets/Scripts/Runtime/Scenario/ScenarioUi.cs | 173 +++++ .../Runtime/Scenario/ScenarioUi.cs.meta | 2 + Assets/Tests/PlayMode/ScenarioEventTests.cs | 207 ++++++ .../Tests/PlayMode/ScenarioEventTests.cs.meta | 2 + 28 files changed, 1817 insertions(+), 140 deletions(-) create mode 100644 Assets/Resources/Scenario/boss_talk.csv create mode 100644 Assets/Resources/Scenario/boss_talk.csv.meta create mode 100644 Assets/Resources/Scenario/scenario_actor.csv create mode 100644 Assets/Resources/Scenario/scenario_actor.csv.meta create mode 100644 Assets/Resources/Scenario/scenario_emote.csv create mode 100644 Assets/Resources/Scenario/scenario_emote.csv.meta create mode 100644 Assets/Resources/Scenario/scenario_event.csv create mode 100644 Assets/Resources/Scenario/scenario_event.csv.meta create mode 100644 Assets/Resources/Scenario/scenario_event_config.csv create mode 100644 Assets/Resources/Scenario/scenario_event_config.csv.meta create mode 100644 Assets/Scripts/Runtime/Scenario/ScenarioEvent.cs create mode 100644 Assets/Scripts/Runtime/Scenario/ScenarioEvent.cs.meta create mode 100644 Assets/Scripts/Runtime/Scenario/ScenarioUi.cs create mode 100644 Assets/Scripts/Runtime/Scenario/ScenarioUi.cs.meta create mode 100644 Assets/Tests/PlayMode/ScenarioEventTests.cs create mode 100644 Assets/Tests/PlayMode/ScenarioEventTests.cs.meta diff --git a/Assets/Data/Stages/stages.csv b/Assets/Data/Stages/stages.csv index a3b51dfe..cf5ba53a 100644 --- a/Assets/Data/Stages/stages.csv +++ b/Assets/Data/Stages/stages.csv @@ -1,5 +1,5 @@ chapter,stage,title,type,place,faction,infantry,spear,cavalry,archer,strategist,generals,bg_theme,note,f_enemy_hp,f_enemy_atk,f_enemy_def -1,1,탁현 저잣거리 — 장비 구출,normal,탁현,hgj,3,0,0,0,0,,마을 어귀,튜토리얼(조작),,, +1,1,탁현 주점 — 장비 구출,normal,탁현,hgj,3,0,0,0,0,,마을 어귀,튜토리얼(조작),,, 1,2,탁현 고갯길 — 관우 구출,normal,탁현,hgj,4,0,0,0,0,,산길,튜토리얼(아군 밀치기 · 3턴),,, 1,3,누상촌 어귀 — 포위 돌파,normal,누상촌,hgj,12,0,0,0,0,,마을,튜토리얼(장수 스킬),,, 1,4,대흥산 — 등무,elite,대흥산,hgj,2,2,2,0,0,hgj_boss_dengmao:spear:false,산기슭,튜토리얼(상성 · 무장),,, diff --git a/Assets/Data/Stages/tutorial_guide.csv b/Assets/Data/Stages/tutorial_guide.csv index fb7504dc..212e9d43 100644 --- a/Assets/Data/Stages/tutorial_guide.csv +++ b/Assets/Data/Stages/tutorial_guide.csv @@ -1,5 +1,5 @@ n_chapter,n_stage,n_step,e_trigger,n_turn,s_target,e_mode,b_lock,s_text_ko,Memo -1,1,1,stage_start,0,slot:3,popup,1,장비가 건달들에게 둘러싸였다! 유비로 건달을 물리치자., +1,1,1,stage_start,0,slot:3,popup,1,장비가 기습에 쓰러졌다! 유비로 비겁한 건달을 혼내 주자., 1,1,2,after_step,0,slot:1>slot:2,drag,1,유비를 누른 채 적 쪽으로 끌었다 놓으세요. 놓는 순간의 게이지만큼 날아갑니다.,손가락이 유비에서 2번 건달 쪽으로 끄는 움직임을 되풀이 · 조준선 끝 = 2번 건달 1,1,3,unit_select,0,slot:2,highlight,1,조준선을 건달에 맞추고 손을 떼세요. 부딪힌 적을 공격합니다.,공격 예정 적 표시와 함께 1,1,4,action_end,1,,bar,0,공격받은 적은 곧바로 반격합니다. 머리 위 체력을 확인하세요., diff --git a/Assets/Data/Stages/tutorial_stage.csv b/Assets/Data/Stages/tutorial_stage.csv index b8985012..7bf2a863 100644 --- a/Assets/Data/Stages/tutorial_stage.csv +++ b/Assets/Data/Stages/tutorial_stage.csv @@ -1,5 +1,5 @@ n_chapter,n_stage,s_title_ko,s_place,e_type,s_learn_ko,s_lineup,s_npc,n_turn_limit,s_win_ko,s_lose_ko,s_clear_ko,s_unlock_ko,b_no_defeat,Memo -1,1,탁현 저잣거리 — 장비 구출,탁현,normal,조작(유닛 선택 · 끌어서 방향 정하고 게이지에 맞춰 놓기 · 조준선 · 공격과 반격 · 아군 턴과 적 턴),liubei,zhangfei,0,건달 전멸,없음(유비·장비 체력 1 아래로 안 내려감),,,1,연의 1회 각색 — 유비·장비는 의용군 방 앞에서 만남 → 건달에게 둘러싸인 장비를 유비가 구함(PD 예시) · 건달 = 황건 앞잡이(황건 보병 그림 재사용) +1,1,탁현 주점 — 장비 구출,탁현,normal,조작(유닛 선택 · 끌어서 방향 정하고 게이지에 맞춰 놓기 · 조준선 · 공격과 반격 · 아군 턴과 적 턴),liubei,zhangfei,0,건달 전멸,없음(유비·장비 체력 1 아래로 안 내려감),,,1,연의 1회 각색 — 유비·장비는 의용군 방 앞에서 만남 → 건달에게 둘러싸인 장비를 유비가 구함(PD 예시) · 건달 = 황건 앞잡이(황건 보병 그림 재사용) 1,2,탁현 고갯길 — 관우 구출,탁현,normal,아군 밀치기(보병이 아군을 쳐서 멀리 보냄 · 밀린 아군이 적에 닿으면 그 자리에서 1회 공격) · 턴 제한,liubei;zhangfei,guanyu,3,관우를 둘러싼 척후 전멸,관우가 쓰러짐 · 3턴 안에 못 끝냄,,,0,연의 1회 각색 — 관우는 주막에서 만남 → 척후에게 포위된 관우를 구함(PD 예시) · 의도한 해법 = 1턴 유비가 장비를 밀어 4번 척후와 닿게(그 자리 공격으로 쓰러짐) → 장비가 5·6번을 한 줄로 → 2~3턴 7번 · 밀치기 없이도 깰 수는 있음(적 이동은 계산 불가 · 1턴 밀치기는 안내 잠금으로 강제) 1,3,누상촌 어귀 — 포위 돌파,누상촌,normal,장수 스킬(스킬 버튼 · 범위 · 다시 쓰기까지 대기 턴) · 세 사람 모두 조작,liubei;guanyu;zhangfei,,0,적 전멸,아군 전멸,복숭아꽃이 핀 장비의 동산에서 세 사람은 한날한시에 죽기를 맹세하며 의형제를 맺었다.,유비·관우·장비 영입(제안 · 편성 화면에 보유),0,연의 1회(도원결의) 각색 — 포위를 관우 스킬로 일거에 무너뜨림(PD 예시) · 스킬은 지금 규칙으로 첫 턴부터 사용 가능 1,4,대흥산 — 등무,대흥산,elite,병종 상성(보병 > 창병 > 기병 > 보병 · 유리 1.5배 · 불리 0.7배) · 이름 있는 무장,liubei;guanyu;zhangfei,,0,적 전멸,아군 전멸,,,0,연의 1회 · 덤불 벽 2줄로 세 갈래 길 → 각 길에 그 장수가 유리한 적 diff --git a/Assets/Resources/BalanceConfig.asset b/Assets/Resources/BalanceConfig.asset index bef749c9..7414d032 100644 --- a/Assets/Resources/BalanceConfig.asset +++ b/Assets/Resources/BalanceConfig.asset @@ -186,7 +186,7 @@ MonoBehaviour: years: 208 map: ch10 stages: - - title: "\uD0C1\uD604 \uC800\uC7A3\uAC70\uB9AC \u2014 \uC7A5\uBE44 \uAD6C\uCD9C" + - title: "\uD0C1\uD604 \uC8FC\uC810 \u2014 \uC7A5\uBE44 \uAD6C\uCD9C" subtitle: "184\uB144" aiAccuracy: 0.5 aiAggroRange: 11 diff --git a/Assets/Resources/ChapterMap/Data/ch01.json b/Assets/Resources/ChapterMap/Data/ch01.json index 58ba6db9..7e75c5c9 100644 --- a/Assets/Resources/ChapterMap/Data/ch01.json +++ b/Assets/Resources/ChapterMap/Data/ch01.json @@ -731,7 +731,7 @@ "type": "튜토리얼(조작)", "boss": false, "place": "탁현", - "title": "탁현 저잣거리 — 장비 구출", + "title": "탁현 주점 — 장비 구출", "at": [ 435.7, 3399.0 diff --git a/Assets/Resources/Scenario/boss_intro_config.csv b/Assets/Resources/Scenario/boss_intro_config.csv index 95f50409..1300cd2c 100644 --- a/Assets/Resources/Scenario/boss_intro_config.csv +++ b/Assets/Resources/Scenario/boss_intro_config.csv @@ -31,3 +31,5 @@ second_boss_move_sec,0.5,④ 2인 보스일 때 첫째 → 둘째 보스로 카 return_sec,0.7,⑤ 보스에서 아군 쪽 기본 시야로 돌아오는 시간(초) skip_show_after_sec,0.5,건너뛰기 버튼이 나타나는 시점(연출 시작 후 초) replay_mode,1,다시 출정(클리어 후) 때 연출 — 정수 코드 0 = 전체 · 1 = 축약(컷인 빼고 포커스 + 말풍선) · 2 = 없음 +talk_move_sec,0.35,④-2 주고받기 — 화자로 카메라가 옮겨 가는 시간(초 · boss_talk.csv · 2026-11-18) +talk_on_replay,0,④-2 다시 출정(클리어 후) 때 주고받기 — 정수 코드 0 = 생략 · 1 = 틂 diff --git a/Assets/Resources/Scenario/boss_talk.csv b/Assets/Resources/Scenario/boss_talk.csv new file mode 100644 index 00000000..85d30abc --- /dev/null +++ b/Assets/Resources/Scenario/boss_talk.csv @@ -0,0 +1,92 @@ +n_chapter,n_stage,n_order,s_speaker,s_text_ko,Memo +1,5,1,zhangfei,등무를 벤 게 나다! 너도 따라가라!,정원지 · 1-4 에서 장비가 부장 등무를 벰 · 연의 1회 +1,5,1,ally,원수를 갚기 전에 네 목부터 지켜라!,장비가 없을 때 +1,5,2,hgj_boss_chengyuanzhi,건방진 놈! 황건의 힘을 보여 주마!, +1,10,1,liubei,백성을 홀린 죄 오늘 끝을 내겠소!,장각 · 연의 1회 +1,10,1,ally,요술로 세상을 속인 것도 여기까지다!,유비가 없을 때 +1,10,2,hgj_boss_zhangjiao,하늘의 뜻을 거스르는 자 벼락을 맞으리라!, +2,5,1,guanyu,술이 식기 전에 돌아오겠소.,화웅 · 온주참화웅(술이 식기 전에 목을 벰) · 연의 5회 +2,5,1,ally,네 목을 가지러 왔다 화웅!,관우가 없을 때 +2,5,2,dz_boss_huaxiong,하하! 네놈도 칼맛을 보고 싶으냐!, +2,10,1,zhangfei,세 아비 섬긴 종놈아! 장비가 왔다!,여포 · 삼성가노(三姓家奴) · 삼영전여포 · 연의 5회 +2,10,1,ally,천하무쌍이라도 우리를 다 꺾진 못한다!,장비가 없을 때 +2,10,2,dz_boss_lvbu,좋다! 방천화극의 맛을 보여 주마!, +3,5,1,zhaoyun,상산 조자룡이 길을 열겠다!,국의 · 계교 싸움에서 조운이 국의를 벰 · 연의 7회 +3,5,1,ally,화살비쯤이야 뚫고 나가면 그만이다!,조운이 없을 때 +3,5,2,ys_boss_quyi,쏴라! 다리 위에 시체를 쌓아라!, +3,10,1,guanyu,북해를 구하러 왔다. 네 상대는 나다.,관해 · 관우가 관해를 벰 · 연의 11회 +3,10,1,ally,공융 공의 성은 우리가 지킨다!,관우가 없을 때 +3,10,2,hgj_boss_guanhai,덤벼라! 이 팔뚝으로 꺾어 주마!, +3,15,1,liubei,서주 백성을 해치게 둘 수 없소!,우금 · 서주 구원 · 연의 11회 +3,15,1,ally,미친 놈인지 아닌지 칼로 알려 주마!,유비가 없을 때 +3,15,2,cc_boss_yujin,흥 오합지졸로 조조군을 막겠다니!, +4,5,1,guanyu,좋다. 삼십 합으로 끝나지 않을 것이다.,기령 · 관우와 30합 · 연의 14회 +4,5,1,ally,관우 장군 대신 우리가 상대해 주마!,관우가 없을 때 +4,5,2,ysu_boss_jiling,삼첨도의 맛을 보여 주겠다!, +4,10,1,zhangfei,함진영이고 뭐고 다 날려 버리겠다!,고순 · 함진영 · 연의 18회 +4,10,1,ally,진이 단단하면 틈을 찾으면 된다!,장비가 없을 때 +4,10,2,dz_boss_gaoshun,함진영은 지금껏 진 적이 없다!, +4,15,1,liubei,여포 그대의 의리는 어디로 갔소?,여포 · 하비 · 연의 19회 +4,15,1,ally,배신을 거듭한 끝이 여기다 여포!,유비가 없을 때 +4,15,2,dz_boss_lvbu,닥쳐라! 적토마와 함께 다 쓸어 주마!, +5,5,1,zhangfei,관 형님 대신 이 장비가 끝내 주마!,기령 · 이번엔 장비가 벰 · 연의 21회 +5,5,1,ally,몇 번을 와도 결과는 같을 것이다!,장비가 없을 때 +5,5,2,ysu_boss_jiling,웃기지 마라! 이번엔 내가 이긴다!, +5,10,1,zhangfei,하하! 둘이 사이좋게 사로잡혀라!,유대·왕충 · 관우·장비가 둘을 사로잡음 · 연의 22회 +5,10,1,ally,공을 다투는 장수들이 무섭겠느냐!,장비가 없을 때 +5,10,2,cc_boss_liudai,왕충 다투지 말고 함께 쳐라!,2인 보스 첫째가 받음 +5,15,1,guanyu,공명 옛정은 옛정이오. 비키시오.,서황(자 공명)·허저 · 토산 고립 · 연의 25회 +5,15,1,ally,길이 없다면 뚫어서 만들면 된다!,관우가 없을 때 +5,15,2,cc_boss_xuchu,말은 됐다! 이 허저와 붙어 보자!,2인 보스 둘째가 받음 +6,5,1,guanyu,목에 값표를 꽂고 나왔구나.,안량 · 삽표매수(插標賣首) · 연의 25회 +6,5,1,ally,오만한 자일수록 크게 쓰러지는 법이다!,관우가 없을 때 +6,5,2,ys_boss_yanliang,건방진 놈! 저승에서 후회해라!, +6,10,1,guanyu,안량을 따라가고 싶은 게로구나.,문추 · 연의 26회 +6,10,1,ally,원수를 갚기 전에 네가 쓰러질 것이다!,관우가 없을 때 +6,10,2,ys_boss_wenchou,말은 필요 없다! 칼로 답하마!, +6,15,1,guanyu,잔꾀로 이 관우를 잡을 수 있겠느냐.,변희 · 진국사 매복 · 연의 27회 +6,15,1,ally,매복이 들킨 이상 남은 건 칼뿐이다!,관우가 없을 때 +6,15,2,cc_boss_bianxi,유성추를 받아라! 도망칠 곳은 없다!, +6,20,1,guanyu,승상의 허락은 받았소. 길을 비키시오.,하후돈 · 오관참육장 끝 · 연의 28회 +6,20,1,ally,길을 막는다면 베고 지나갈 뿐이다!,관우가 없을 때 +6,20,2,cc_boss_xiahoudun,오늘 이 하후돈이 네 앞을 막는다!, +7,5,1,guanyu,북이 한 번 울리기 전에 끝내겠다.,채양 · 고성에서 북 한 번에 벰 · 연의 28회 +7,5,1,ally,복수심만으로는 이길 수 없다!,관우가 없을 때 +7,5,2,cc_boss_caiyang,늙었어도 이 칼은 녹슬지 않았다!, +7,10,1,zhaoyun,주공께는 손끝 하나 대지 못한다!,고람 · 양산 · 조운이 고람을 벰 · 연의 31회 +7,10,1,ally,무덤은 네가 파게 될 것이다!,조운이 없을 때 +7,10,2,cc_boss_gaolan,말장난은 끝이다! 모두 쳐라!, +8,5,1,zhaoyun,그 명마 주인을 잘못 만났구나.,장무 · 조운이 장무를 베고 적로를 얻음 · 연의 34회 +8,5,1,ally,말이 좋다고 장수가 되는 건 아니다!,조운이 없을 때 +8,5,2,jz_boss_zhangwu,적로야 달려라! 모두 짓밟아라!, +8,10,1,xushu,생문으로 들어가 경문으로 나가면 된다!,조인 · 팔문금쇄진을 서서가 간파 · 연의 36회 +8,10,1,zhaoyun,동남쪽 생문으로 뚫고 들어가겠다!,서서가 없을 때 · 진에 뛰어든 조운 +8,10,1,ally,어떤 진이든 깨뜨리면 그만이다!,둘 다 없을 때 +8,10,2,cc_boss_caoren,흥 이 진의 변화를 꿰뚫을 수 있겠느냐!, +8,15,1,zhugeliang,풋내기인지 아닌지 불길이 알려 주리다.,하후돈 · 박망파 화공 · 연의 39회 +8,15,1,ally,얕보는 순간 이미 진 것이다!,제갈량이 없을 때 +8,15,2,cc_boss_xiahoudun,잔꾀가 통할 것 같으냐! 진격하라!, +9,5,1,weiyan,문을 열어라! 유 황숙을 맞이하라!,문빙 · 양양성 · 위연이 문을 열려 함 · 연의 41회 +9,5,1,liubei,백성들이 피란할 길만 열어 주시오.,위연이 없을 때 +9,5,1,ally,문이 안 열리면 부수고 지나가겠다!,둘 다 없을 때 +9,5,2,jz_boss_wenpin,형주를 지키는 것이 내 소임이다!, +9,10,1,zhaoyun,아두 공자는 내가 반드시 지킨다!,장합 · 장판파 단기 · 연의 41회 +9,10,1,ally,산 채로 잡히는 일은 없을 것이다!,조운이 없을 때 +9,10,2,cc_boss_zhanghe,포위를 좁혀라! 놓치지 마라!, +9,15,1,zhangfei,연인 장익덕이 여기 있다! 덤벼라!,조조 · 장판교 · 연의 42회 +9,15,1,zhugeliang,승상 이번에도 한 수 늦으셨소.,장비가 없을 때 +9,15,1,ally,계략이든 아니든 여기서 끝이다!,둘 다 없을 때 +9,15,2,cc_boss_caocao,물러서지 마라! 숫자는 우리가 많다!, +10,5,1,zhugeliang,물 위의 싸움은 바람이 정하는 법이오.,채모·장윤 · 연의 45회 +10,5,1,ally,물 위라고 겁먹을 우리가 아니다!,제갈량이 없을 때 +10,5,2,jz_boss_caimao,장윤 배를 돌려라! 에워싸라!,2인 보스 첫째가 받음 +10,10,1,pangtong,사슬은 내가 권한 것이오. 이제 불이오!,우금·모개 · 연환계(방통) · 연의 47회 +10,10,1,zhugeliang,묶인 배는 한 척이 타면 다 타는 법이오.,방통이 없을 때 +10,10,1,ally,사슬에 묶인 배라면 피할 곳도 없겠지!,둘 다 없을 때 +10,10,2,cc_boss_yujin,불화살 따위 이 겨울에 통할 리 없다!,동남풍 전 · 2인 보스 첫째가 받음 +10,15,1,zhaoyun,상산 조자룡이 여기서 기다렸다!,장료 · 오림 매복 · 연의 50회 +10,15,1,ally,승상을 지키려면 먼저 우리를 넘어라!,조운이 없을 때 +10,15,2,dz_boss_zhangliao,승상께는 한 발짝도 못 다가간다!, +10,20,1,guanyu,...오늘은 군령을 받고 왔소.,조조 · 화용도 의석조조 · 연의 50회 +10,20,1,ally,옛정은 없다! 여기서 끝을 내겠다!,관우가 없을 때 +10,20,2,cc_boss_caocao,모두 길을 열어라! 화용도를 넘는다!, diff --git a/Assets/Resources/Scenario/boss_talk.csv.meta b/Assets/Resources/Scenario/boss_talk.csv.meta new file mode 100644 index 00000000..18aebd56 --- /dev/null +++ b/Assets/Resources/Scenario/boss_talk.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b648d31ae91782149b924fb65ff4ba16 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenario/scenario_actor.csv b/Assets/Resources/Scenario/scenario_actor.csv new file mode 100644 index 00000000..0f1a56e7 --- /dev/null +++ b/Assets/Resources/Scenario/scenario_actor.csv @@ -0,0 +1,15 @@ +n_chapter,n_stage,s_actor,s_name_ko,Memo +1,1,slot2,건달 우두머리,연의전기 편 0 도원결의 1막 · 이벤트 연출 시나리오 §1 +1,1,slot4,건달, +1,1,slot5,건달, +1,1,innkeeper,주점 주인,extra · 그림 npc_merchant_m +1,1,patron,손님,extra · 그림 npc_elder +1,1,guanyu_ev,관우,extra · 1막 승리 연출(관우는 이 판에 없음) · 그림 guanyu +1,2,slot4,황건 척후,2막 +1,2,slot5,황건 척후, +1,2,slot6,황건 척후, +1,2,slot7,황건 척후, +1,2,elder,노인,extra · 그림 npc_elder +1,2,child,아이,extra · 그림 npc_child +1,3,slot5,황건적,3막 +1,3,slot6,황건적, diff --git a/Assets/Resources/Scenario/scenario_actor.csv.meta b/Assets/Resources/Scenario/scenario_actor.csv.meta new file mode 100644 index 00000000..6e9d37b1 --- /dev/null +++ b/Assets/Resources/Scenario/scenario_actor.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b5ac7d4d5dea32046a6b8ba2f7150ec5 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenario/scenario_emote.csv b/Assets/Resources/Scenario/scenario_emote.csv new file mode 100644 index 00000000..e5d6770d --- /dev/null +++ b/Assets/Resources/Scenario/scenario_emote.csv @@ -0,0 +1,7 @@ +s_id,s_glyph,s_color,Memo +!,!,#FFD84A,놀람 · 임시 글자(머리 위 표시 그림 없음 · 그림이 생기면 s_glyph 대신 그림 칸 추가) +?,?,#9FD3FF,의문 +anger,!!,#FF5A4A,분노 +sweat,...,#9FD3FF,당황·식은땀 +laugh,♪,#FFD84A,웃음 +dizzy,★,#FFE066,기절·어지러움(faint 의 별 = 이 줄) diff --git a/Assets/Resources/Scenario/scenario_emote.csv.meta b/Assets/Resources/Scenario/scenario_emote.csv.meta new file mode 100644 index 00000000..476f0449 --- /dev/null +++ b/Assets/Resources/Scenario/scenario_emote.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 18afdc6433a993c4fa2121e11a3ee3a1 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenario/scenario_event.csv b/Assets/Resources/Scenario/scenario_event.csv new file mode 100644 index 00000000..c0874055 --- /dev/null +++ b/Assets/Resources/Scenario/scenario_event.csv @@ -0,0 +1,159 @@ +s_event_id,s_battle_id,n_chapter,n_stage,e_trigger,n_turn,n_order,e_cmd,s_actor,s_target,f_x,f_y,f_sec,s_arg,s_text_ko,Memo +taoyuan_1_start,taoyuan,1,1,stage_start,0,1,fade,,,,,0,out,,검은 화면에서 시작 +taoyuan_1_start,taoyuan,1,1,stage_start,0,2,bg,,,,,,bg_ev_tavern,,주점 내부 바닥(없으면 지금 바닥) +taoyuan_1_start,taoyuan,1,1,stage_start,0,3,show,liubei,,3.6,-9.4,0,,,"구석 자리에 앉은 유비(배치 자리 0,-8 은 연출 끝에 걸어서 감)" +taoyuan_1_start,taoyuan,1,1,stage_start,0,4,show,slot2,,-2.4,-0.6,0,,,건달 우두머리 · 계산대 앞 +taoyuan_1_start,taoyuan,1,1,stage_start,0,5,show,slot4,,-3.8,-0.8,0,,,건달 · 계산대 앞 +taoyuan_1_start,taoyuan,1,1,stage_start,0,6,show,slot5,,-1.4,0.4,0,,,건달 · 계산대 앞 +taoyuan_1_start,taoyuan,1,1,stage_start,0,7,extra,innkeeper,,-3.0,0.6,,npc_merchant_m,,주점 주인 +taoyuan_1_start,taoyuan,1,1,stage_start,0,8,extra,patron,,-3.6,-7.2,,npc_elder,,손님 +taoyuan_1_start,taoyuan,1,1,stage_start,0,9,focus,,,0,-2,0,1.3,,장비 탁자 쪽을 가깝게 +taoyuan_1_start,taoyuan,1,1,stage_start,0,10,fade,,,,,0.8,in,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,11,caption,,,,,2.5,,184년 · 탁현의 어느 주점, +taoyuan_1_start,taoyuan,1,1,stage_start,0,12,say,slot2,,,,,,주인장! 황건 어르신께 바칠 돈은?, +taoyuan_1_start,taoyuan,1,1,stage_start,0,13,say,innkeeper,,,,,,"지, 지난달에 다 가져가셨잖습니까...", +taoyuan_1_start,taoyuan,1,1,stage_start,0,14,emote,slot2,,,,,anger,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,15,shake,,,,,0.3,1,,건달이 계산대를 내리침 +taoyuan_1_start,taoyuan,1,1,stage_start,0,16,say,slot2,,,,,,없으면 술독이라도 내놔!, +taoyuan_1_start,taoyuan,1,1,stage_start,0,17,say,zhangfei,,,,,,시끄럽다! 술맛 떨어지게 웬 소란이냐!, +taoyuan_1_start,taoyuan,1,1,stage_start,0,18,emote,slot2,,,,,?,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,19,move,slot2,,0,-3.6,0.8,,,장비 앞으로 +taoyuan_1_start,taoyuan,1,1,stage_start,0,20,move,slot4,,-2.4,-2.6,0.6,,,장비 왼쪽으로 +taoyuan_1_start,taoyuan,1,1,stage_start,0,21,move,slot5,,2.4,-2.6,0.6,,,장비 오른쪽으로 +taoyuan_1_start,taoyuan,1,1,stage_start,0,22,say,innkeeper,,,,,,"아이고, 장 대인! 참으십시오!", +taoyuan_1_start,taoyuan,1,1,stage_start,0,23,hide,innkeeper,,,,,,,주인이 계산대 밑으로 숨음 +taoyuan_1_start,taoyuan,1,1,stage_start,0,24,emote,patron,,,,,sweat,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,25,move,patron,,-5.5,-7.2,0.6,,,손님이 달아남 +taoyuan_1_start,taoyuan,1,1,stage_start,0,26,hide,patron,,,,,,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,27,say,slot2,,,,,,"뭐냐, 이 수염투성이 돼지 장수는?", +taoyuan_1_start,taoyuan,1,1,stage_start,0,28,emote,zhangfei,,,,,laugh,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,29,say,zhangfei,,,,,,하하! 이 장비 님을 몰라보는구나!, +taoyuan_1_start,taoyuan,1,1,stage_start,0,30,say,zhangfei,,,,,,"좋게 말할 때 썩 꺼져라, 쥐새끼들아!", +taoyuan_1_start,taoyuan,1,1,stage_start,0,31,emote,slot2,,,,,sweat,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,32,say,slot2,,,,,,"히익... 가, 가면 될 것 아니오.", +taoyuan_1_start,taoyuan,1,1,stage_start,0,33,move,slot2,,0,-5.5,0.8,,,물러나는 척 = 배치 자리 +taoyuan_1_start,taoyuan,1,1,stage_start,0,34,say,zhangfei,,,,,,"흥, 싱거운 놈들. 주인장, 술이나 더!", +taoyuan_1_start,taoyuan,1,1,stage_start,0,35,move,slot4,,-1.3,-1.1,0.7,,,장비 등 뒤로 살금살금 = 배치 자리 +taoyuan_1_start,taoyuan,1,1,stage_start,0,36,move,slot5,,1.3,-1.1,0.7,,,장비 등 뒤로 살금살금 = 배치 자리 +taoyuan_1_start,taoyuan,1,1,stage_start,0,37,emote,liubei,,,,,!,,구석의 유비가 알아챔(화면 밖이면 생략 가능) +taoyuan_1_start,taoyuan,1,1,stage_start,0,38,attack,slot5,zhangfei,,,0.4,,,술독으로 뒤통수를 침 +taoyuan_1_start,taoyuan,1,1,stage_start,0,39,hit,,zhangfei,,,,,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,40,shake,,,,,0.4,1.5,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,41,say,zhangfei,,,,,,크윽...! 등 뒤에서... 비겁한..., +taoyuan_1_start,taoyuan,1,1,stage_start,0,42,faint,zhangfei,,,,,keep,,전투가 끝날 때까지 쓰러진 채(새 명령 제안 1) +taoyuan_1_start,taoyuan,1,1,stage_start,0,43,say,slot5,,,,,,크하하! 장사도 술독 한 방이면 끝이지!, +taoyuan_1_start,taoyuan,1,1,stage_start,0,44,say,slot2,,,,,,잘했다! 놈의 돈주머니부터 털어라!, +taoyuan_1_start,taoyuan,1,1,stage_start,0,45,focus,liubei,,,,0.6,1.3,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,46,say,liubei,,,,,,그만두시오., +taoyuan_1_start,taoyuan,1,1,stage_start,0,47,move,liubei,,0,-8,1.0,,,자리에서 일어나 나섬 = 배치 자리 +taoyuan_1_start,taoyuan,1,1,stage_start,0,48,focus,,,0,-5,0.6,1,,전투 화면으로 +taoyuan_1_start,taoyuan,1,1,stage_start,0,49,emote,slot2,,,,,?,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,50,say,slot2,,,,,,"넌 또 뭐냐, 돗자리 장수 주제에?", +taoyuan_1_start,taoyuan,1,1,stage_start,0,51,say,liubei,,,,,,등 뒤에서 치는 것이 사내의 일이오?, +taoyuan_1_start,taoyuan,1,1,stage_start,0,52,say,liubei,,,,,,그 손을 떼시오. 내가 상대하겠소., +taoyuan_1_start,taoyuan,1,1,stage_start,0,53,emote,slot2,,,,,anger,, +taoyuan_1_start,taoyuan,1,1,stage_start,0,54,say,slot2,,,,,,하! 이놈도 같이 눕혀 버려라!,끝 → 학습 안내 1단계 +taoyuan_1_win,taoyuan,1,1,win,0,1,wait,,,,,0.5,,, +taoyuan_1_win,taoyuan,1,1,win,0,2,move,liubei,,0,-3.4,0.8,,,쓰러진 장비 곁으로 +taoyuan_1_win,taoyuan,1,1,win,0,3,focus,zhangfei,,,,0.6,1.3,, +taoyuan_1_win,taoyuan,1,1,win,0,4,wake,zhangfei,,,,,,, +taoyuan_1_win,taoyuan,1,1,win,0,5,emote,zhangfei,,,,,dizzy,, +taoyuan_1_win,taoyuan,1,1,win,0,6,say,zhangfei,,,,,,으음... 머리야. 건달 놈들은 어디 갔소?, +taoyuan_1_win,taoyuan,1,1,win,0,7,say,liubei,,,,,,모두 달아났소. 몸은 괜찮으시오?, +taoyuan_1_win,taoyuan,1,1,win,0,8,say,zhangfei,,,,,,그대가 구해 줬구려! 나는 장비라 하오., +taoyuan_1_win,taoyuan,1,1,win,0,9,say,liubei,,,,,,유비라 하오. 돗자리를 짜며 지내오., +taoyuan_1_win,taoyuan,1,1,win,0,10,say,zhangfei,,,,,,이런 호걸이 저잣거리에 숨어 있었다니!, +taoyuan_1_win,taoyuan,1,1,win,0,11,say,liubei,,,,,,황건적을 막을 의용군에 나설 참이오., +taoyuan_1_win,taoyuan,1,1,win,0,12,say,zhangfei,,,,,,좋소! 내 재산을 다 털어 함께하겠소!, +taoyuan_1_win,taoyuan,1,1,win,0,13,extra,guanyu_ev,,0,-9.5,,guanyu,,관우가 주점에 들어섬(이 판에 없는 영웅 → extra) +taoyuan_1_win,taoyuan,1,1,win,0,14,move,guanyu_ev,,1.8,-4.2,1.2,,, +taoyuan_1_win,taoyuan,1,1,win,0,15,emote,zhangfei,,,,,!,, +taoyuan_1_win,taoyuan,1,1,win,0,16,say,guanyu_ev,,,,,,"주인장, 술을 급히 주시오. 갈 길이 바쁘오.", +taoyuan_1_win,taoyuan,1,1,win,0,17,say,liubei,,,,,,"실례지만, 어디로 가는 길이시오?", +taoyuan_1_win,taoyuan,1,1,win,0,18,say,guanyu_ev,,,,,,관우라 하오. 의용군에 들려 하오., +taoyuan_1_win,taoyuan,1,1,win,0,19,say,zhangfei,,,,,,하하! 우리와 뜻이 같구려!, +taoyuan_1_win,taoyuan,1,1,win,0,20,say,guanyu_ev,,,,,,고갯길에 황건 척후가 돈다 하오., +taoyuan_1_win,taoyuan,1,1,win,0,21,say,guanyu_ev,,,,,,마을 사람이 다칠라. 먼저 가 보겠소., +taoyuan_1_win,taoyuan,1,1,win,0,22,move,guanyu_ev,,0,-9.5,1.0,,,관우가 먼저 떠남 +taoyuan_1_win,taoyuan,1,1,win,0,23,hide,guanyu_ev,,,,,,, +taoyuan_1_win,taoyuan,1,1,win,0,24,say,liubei,,,,,,혼자 보낼 수 없소. 우리도 따라갑시다.,끝 → 결과 화면 · 2막으로 +taoyuan_2_start,taoyuan,1,2,stage_start,0,1,fade,,,,,0,out,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,2,hide,slot4,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,3,hide,slot5,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,4,hide,slot6,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,5,hide,slot7,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,6,extra,elder,,1.5,1.9,,npc_elder,,피란 가던 마을 노인 +taoyuan_2_start,taoyuan,1,2,stage_start,0,7,extra,child,,2.2,2.1,,npc_child,,노인이 데려가던 아이 +taoyuan_2_start,taoyuan,1,2,stage_start,0,8,focus,guanyu,,,,0,1.2,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,9,fade,,,,,0.8,in,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,10,caption,,,,,2.5,,탁현 외곽 · 고갯길, +taoyuan_2_start,taoyuan,1,2,stage_start,0,11,show,slot7,,4.8,0.6,0,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,12,move,slot7,,2.8,0.6,0.8,,,= 배치 자리 +taoyuan_2_start,taoyuan,1,2,stage_start,0,13,say,slot7,,,,,,거기 서라! 마을 것들은 두고 가라!, +taoyuan_2_start,taoyuan,1,2,stage_start,0,14,say,guanyu,,,,,,"노인장, 아이를 데리고 어서 가시오.", +taoyuan_2_start,taoyuan,1,2,stage_start,0,15,move,elder,,1.5,4.2,0.8,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,16,hide,elder,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,17,move,child,,2.2,4.2,0.6,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,18,hide,child,,,,,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,19,say,slot7,,,,,,"수염 긴 놈, 혼자서 길을 막겠다고?", +taoyuan_2_start,taoyuan,1,2,stage_start,0,20,say,guanyu,,,,,,쥐 떼가 모인들 범을 잡겠느냐., +taoyuan_2_start,taoyuan,1,2,stage_start,0,21,emote,slot7,,,,,anger,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,22,say,slot7,,,,,,에워싸라! 지칠 때까지 몰아붙여!, +taoyuan_2_start,taoyuan,1,2,stage_start,0,23,show,slot6,,0,-5.0,0,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,24,move,slot6,,0,-2.4,0.7,,,= 배치 자리 +taoyuan_2_start,taoyuan,1,2,stage_start,0,25,show,slot5,,0,-6.0,0,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,26,move,slot5,,0,-3.6,0.7,,,= 배치 자리 +taoyuan_2_start,taoyuan,1,2,stage_start,0,27,say,guanyu,,,,,,내가 물러서면 저들이 다친다. 버틴다.,관우가 자리를 지키는 까닭 = 3턴 제한의 이야기 +taoyuan_2_start,taoyuan,1,2,stage_start,0,28,focus,,,0,-11,1.0,1.2,,고갯길 아래 유비·장비 쪽으로 +taoyuan_2_start,taoyuan,1,2,stage_start,0,29,say,zhangfei,,,,,,유 공! 저 위에 아까 그 관우요!, +taoyuan_2_start,taoyuan,1,2,stage_start,0,30,say,liubei,,,,,,홀로 길을 막고 있구려. 서두릅시다., +taoyuan_2_start,taoyuan,1,2,stage_start,0,31,show,slot4,,0,-7.5,0,,, +taoyuan_2_start,taoyuan,1,2,stage_start,0,32,move,slot4,,0,-9.3,0.6,,,길목을 막아섬 = 배치 자리 +taoyuan_2_start,taoyuan,1,2,stage_start,0,33,say,slot4,,,,,,멈춰라! 이 길은 못 지나간다!, +taoyuan_2_start,taoyuan,1,2,stage_start,0,34,say,zhangfei,,,,,,비켜라! 막으면 날려 버리겠다!, +taoyuan_2_start,taoyuan,1,2,stage_start,0,35,say,liubei,,,,,,"장 공, 내가 뒤에서 힘껏 밀어 드리겠소.",끝 → 학습 안내(아군 밀치기)로 이어지는 말 +taoyuan_2_win,taoyuan,1,2,win,0,1,wait,,,,,0.5,,, +taoyuan_2_win,taoyuan,1,2,win,0,2,focus,guanyu,,,,0.6,1.2,, +taoyuan_2_win,taoyuan,1,2,win,0,3,move,liubei,,0.6,-0.8,0.8,,, +taoyuan_2_win,taoyuan,1,2,win,0,4,move,zhangfei,,2.4,-0.8,0.8,,, +taoyuan_2_win,taoyuan,1,2,win,0,5,say,guanyu,,,,,,두 분 덕에 마을 사람들이 살았소., +taoyuan_2_win,taoyuan,1,2,win,0,6,say,zhangfei,,,,,,"혼자 길을 막다니, 그대야말로 장사요!", +taoyuan_2_win,taoyuan,1,2,win,0,7,say,liubei,,,,,,뜻이 같은 셋이 한길에서 만났구려., +taoyuan_2_win,taoyuan,1,2,win,0,8,say,guanyu,,,,,,"이 관우, 두 분과 함께 가고 싶소.", +taoyuan_2_win,taoyuan,1,2,win,0,9,say,zhangfei,,,,,,내 집 뒤에 복숭아 동산이 있소!, +taoyuan_2_win,taoyuan,1,2,win,0,10,say,zhangfei,,,,,,거기서 술을 올리고 형제가 됩시다!, +taoyuan_2_win,taoyuan,1,2,win,0,11,emote,liubei,,,,,laugh,, +taoyuan_2_win,taoyuan,1,2,win,0,12,say,liubei,,,,,,좋소. 함께 갑시다.,끝 → 결과 화면 · 3막으로 +taoyuan_3_start,taoyuan,1,3,stage_start,0,1,fade,,,,,0,out,, +taoyuan_3_start,taoyuan,1,3,stage_start,0,2,focus,,,0,0,0,1.1,, +taoyuan_3_start,taoyuan,1,3,stage_start,0,3,fade,,,,,0.8,in,, +taoyuan_3_start,taoyuan,1,3,stage_start,0,4,caption,,,,,2.5,,누상촌 어귀 · 복숭아 동산 가는 길, +taoyuan_3_start,taoyuan,1,3,stage_start,0,5,emote,zhangfei,,,,,!,, +taoyuan_3_start,taoyuan,1,3,stage_start,0,6,say,slot5,,,,,,찾았다! 우리 척후를 친 놈들이다!, +taoyuan_3_start,taoyuan,1,3,stage_start,0,7,say,slot6,,,,,,셋뿐이다! 사방에서 조여라!, +taoyuan_3_start,taoyuan,1,3,stage_start,0,8,shake,,,,,0.4,1,, +taoyuan_3_start,taoyuan,1,3,stage_start,0,9,say,liubei,,,,,,사방이 막혔소. 등을 맞대시오!, +taoyuan_3_start,taoyuan,1,3,stage_start,0,10,say,zhangfei,,,,,,잘됐다! 찾아다닐 수고를 덜었구나!, +taoyuan_3_start,taoyuan,1,3,stage_start,0,11,say,guanyu,,,,,,두 분은 내 뒤에. 길은 내가 열겠소.,끝 → 학습 안내(관우 스킬)로 이어지는 말 +taoyuan_3_start,taoyuan,1,3,stage_start,0,12,focus,,,0,0,0.5,1,, +taoyuan_3_win,taoyuan,1,3,win,0,1,wait,,,,,0.5,,, +taoyuan_3_win,taoyuan,1,3,win,0,2,fade,,,,,0.8,out,, +taoyuan_3_win,taoyuan,1,3,win,0,3,bg,,,,,,bg_ev_peach,,복숭아 동산 바닥(없으면 지금 바닥) +taoyuan_3_win,taoyuan,1,3,win,0,4,show,liubei,,0,0.6,0,,,가운데 = 맏형 +taoyuan_3_win,taoyuan,1,3,win,0,5,show,guanyu,,-1.4,-0.4,0,,, +taoyuan_3_win,taoyuan,1,3,win,0,6,show,zhangfei,,1.4,-0.4,0,,, +taoyuan_3_win,taoyuan,1,3,win,0,7,focus,,,0,0,0,1.3,, +taoyuan_3_win,taoyuan,1,3,win,0,8,fade,,,,,1.0,in,, +taoyuan_3_win,taoyuan,1,3,win,0,9,caption,,,,,2.5,,장비의 집 뒤 · 복숭아 동산, +taoyuan_3_win,taoyuan,1,3,win,0,10,say,liubei,,,,,,"우리 셋, 성은 달라도 뜻은 하나요.", +taoyuan_3_win,taoyuan,1,3,win,0,11,say,guanyu,,,,,,"위로는 나라에 보답하고,", +taoyuan_3_win,taoyuan,1,3,win,0,12,say,zhangfei,,,,,,아래로는 백성을 편안케 하리라!, +taoyuan_3_win,taoyuan,1,3,win,0,13,say,liubei,,,,,,"한날한시에 태어나지는 못했어도,", +taoyuan_3_win,taoyuan,1,3,win,0,14,say,guanyu,,,,,,한날한시에 죽기를 바라노라., +taoyuan_3_win,taoyuan,1,3,win,0,15,shake,,,,,0.3,0.5,,세 사람이 잔을 올림 +taoyuan_3_win,taoyuan,1,3,win,0,16,say,zhangfei,,,,,,오늘부터 유비 형님이 맏형이오!, +taoyuan_3_win,taoyuan,1,3,win,0,17,emote,zhangfei,,,,,laugh,, +taoyuan_3_win,taoyuan,1,3,win,0,18,say,guanyu,,,,,,"형님, 아우의 절을 받으시오.", +taoyuan_3_win,taoyuan,1,3,win,0,19,say,liubei,,,,,,두 아우와 함께라면 두렵지 않소., +taoyuan_3_win,taoyuan,1,3,win,0,20,focus,,,0,0,1.0,1,, +taoyuan_3_win,taoyuan,1,3,win,0,21,fade,,,,,0.8,out,,"끝 → 결말 카드(tutorial_stage 1,3 s_clear_ko)" diff --git a/Assets/Resources/Scenario/scenario_event.csv.meta b/Assets/Resources/Scenario/scenario_event.csv.meta new file mode 100644 index 00000000..b619bbc7 --- /dev/null +++ b/Assets/Resources/Scenario/scenario_event.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: faf8918ecf1bffb4f8193b49f215ef9d +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenario/scenario_event_config.csv b/Assets/Resources/Scenario/scenario_event_config.csv new file mode 100644 index 00000000..8b0f516b --- /dev/null +++ b/Assets/Resources/Scenario/scenario_event_config.csv @@ -0,0 +1,30 @@ +s_key,f_value,Memo +skip_show_after_sec,0.5,건너뛰기 버튼이 나타나는 시간(초) +letterbox_ratio,0.08,위아래 검은 띠 높이(화면 높이 비율 · 재화 바·전투 HUD 를 가림 · 보스 등장 letterbox_ratio 와 같게) +fade_sec,0.6,fade 의 f_sec 빈칸일 때(초) +caption_sec,2.5,caption 의 f_sec 빈칸일 때 자막 유지(초 · 누르면 넘어감) +caption_fade_sec,0.3,자막 띠가 나타나고 사라지는 시간(초) +caption_band_height,150,자막 띠 높이(px · 1080×1920 기준) +caption_band_top,260,자막 띠 위 끝이 화면 위에서 떨어진 거리(px) +caption_band_alpha,0.6,자막 띠 검은 바탕 진하기(0~1) +caption_font_size,48,자막 글자 크기(px) +show_sec,0,show·hide 의 f_sec 빈칸일 때 나타남·사라짐 시간(초 · 0 = 바로) +move_speed,4,move 의 f_sec 빈칸일 때 걷는 빠르기(칸/초) +focus_sec,0.6,focus 의 f_sec 빈칸일 때 카메라 이동 시간(초) +return_sec,0.6,연출 끝에 판 기본 화면으로 돌아가는 시간(초) +attack_sec,0.5,attack 의 f_sec 빈칸일 때 돌진~복귀 전체(초) +attack_dash_ratio,0.3,attack 전체 중 돌진(=복귀) 비율 · 나머지 = 맞댄 채 멈춤 +attack_reach_ratio,0.9,돌진이 멈추는 거리 = 두 반지름 합 × 이 값 +hit_sec,0.25,hit 뒤 기다림(초) +faint_sec,0.4,faint 뒤 기다림(초) +faint_angle,80,기절 = 그림을 눕히는 각도(도 · 발 기준) +faint_dark,0.35,기절 = 그림을 어둡게 하는 정도(0~1) +shake_sec,0.3,shake 의 f_sec 빈칸일 때(초) +shake_base,0.2,shake 세기 1 = 이 값(CameraController.Shake 세기 · 보스 컷인 cutin_shake 0.25 와 비슷하게) +wait_sec,0.5,wait 의 f_sec 빈칸일 때(초) +emote_sec,1.0,머리 위 표시가 떠 있는 시간(초) +emote_wait_sec,0.3,emote 뒤 다음 줄까지 기다림(초 · 표시는 emote_sec 동안 남음) +emote_world_height,0.6,머리 위 표시 글자 높이(월드 칸) +emote_offset,0.25,머리 끝에서 표시까지 높이(월드 칸) +emote_hop,0.15,표시가 튀어 오르는 높이(월드 칸) +extra_shape_size,0.8,연출 인물 그림이 없을 때 대신 그리는 원 지름(월드 칸) diff --git a/Assets/Resources/Scenario/scenario_event_config.csv.meta b/Assets/Resources/Scenario/scenario_event_config.csv.meta new file mode 100644 index 00000000..cfed91ca --- /dev/null +++ b/Assets/Resources/Scenario/scenario_event_config.csv.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: a6e045739d21ff445887e13f58327952 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Scenario/stage_story.csv b/Assets/Resources/Scenario/stage_story.csv index 7dad192e..8d5bc07c 100644 --- a/Assets/Resources/Scenario/stage_story.csv +++ b/Assets/Resources/Scenario/stage_story.csv @@ -1,6 +1,6 @@ n_chapter,n_stage,s_desc_ko,Memo -1,1,의용군 방이 붙은 탁현 저잣거리에서 장비가 황건 앞잡이 건달들에게 둘러싸였다.,탁현 저잣거리 — 장비 구출 · 튜토리얼(조작) · 근거 연의 1회 각색(방 앞 만남 → 장비 구출) -1,2,탁현 외곽 고갯길에서 떠돌던 무사 관우가 황건 척후들에게 포위되었다.,탁현 고갯길 — 관우 구출 · 튜토리얼(아군 밀치기 · 3턴) · 근거 연의 1회 각색(주막 만남 → 관우 구출) +1,1,탁현의 주점에서 황건 앞잡이 건달의 기습에 장비가 쓰러졌다. 유비가 자리에서 일어선다.,탁현 주점 — 장비 구출 · 튜토리얼(조작) · 근거 연의 1회 각색(방 앞 만남 → 장비 구출) +1,2,먼저 길을 나선 관우가 고갯길에서 피란민을 지키다 황건 척후들에게 포위되었다.,탁현 고갯길 — 관우 구출 · 튜토리얼(아군 밀치기 · 3턴) · 근거 연의 1회 각색(주막 만남 → 관우 구출) 1,3,셋이 함께 누상촌으로 돌아가던 길에 황건 무리가 사방에서 몰려왔다.,누상촌 어귀 — 포위 돌파 · 튜토리얼(장수 스킬) · 근거 연의 1회 각색 · 클리어 뒤 도원결의 1,4,도원에서 의형제를 맺은 세 사람이 대흥산에 닿자 정원지의 부장 등무가 앞을 막았다.,대흥산 — 등무 · 엘리트 · 튜토리얼(상성) · 근거 연의 1회 1,5,부장을 잃고 분노한 정원지가 황건 5만을 이끌고 산기슭으로 몰려왔다.,대흥산 전투 — 정원지 · 보스 · 튜토리얼(보스·바위) · 근거 연의 1회 diff --git a/Assets/Resources/Tutorial/TutorialDb.asset b/Assets/Resources/Tutorial/TutorialDb.asset index 749ea550..4877c440 100644 --- a/Assets/Resources/Tutorial/TutorialDb.asset +++ b/Assets/Resources/Tutorial/TutorialDb.asset @@ -37,6 +37,7 @@ MonoBehaviour: position: {x: 0, y: -5.5} hpMult: 0.2 atkMult: 0.5 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -47,6 +48,7 @@ MonoBehaviour: position: {x: -1.3, y: -1.1} hpMult: 0.2 atkMult: 0.5 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -57,6 +59,7 @@ MonoBehaviour: position: {x: 1.3, y: -1.1} hpMult: 0.2 atkMult: 0.5 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -85,6 +88,7 @@ MonoBehaviour: position: {x: 0, y: -9.3} hpMult: 0.2 atkMult: 0.3 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -95,6 +99,7 @@ MonoBehaviour: position: {x: 0, y: -3.6} hpMult: 0.2 atkMult: 0.3 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -105,6 +110,7 @@ MonoBehaviour: position: {x: 0, y: -2.4} hpMult: 0.2 atkMult: 0.3 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -115,6 +121,7 @@ MonoBehaviour: position: {x: 2.8, y: 0.6} hpMult: 0.2 atkMult: 0.3 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -143,6 +150,7 @@ MonoBehaviour: position: {x: 2.22, y: 0.92} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -153,6 +161,7 @@ MonoBehaviour: position: {x: 0.92, y: 2.22} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -163,6 +172,7 @@ MonoBehaviour: position: {x: -0.92, y: 2.22} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -173,6 +183,7 @@ MonoBehaviour: position: {x: -2.22, y: 0.92} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -183,6 +194,7 @@ MonoBehaviour: position: {x: -2.22, y: -0.92} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -193,6 +205,7 @@ MonoBehaviour: position: {x: -0.92, y: -2.22} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -203,6 +216,7 @@ MonoBehaviour: position: {x: 0.92, y: -2.22} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -213,6 +227,7 @@ MonoBehaviour: position: {x: 2.22, y: -0.92} hpMult: 0.4 atkMult: 0.6 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -223,6 +238,7 @@ MonoBehaviour: position: {x: -5, y: 6} hpMult: 0.8 atkMult: 0.8 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -233,6 +249,7 @@ MonoBehaviour: position: {x: 5, y: 6} hpMult: 0.8 atkMult: 0.8 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -243,6 +260,7 @@ MonoBehaviour: position: {x: -6, y: -5} hpMult: 0.8 atkMult: 0.8 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -253,6 +271,7 @@ MonoBehaviour: position: {x: 6, y: -5} hpMult: 0.8 atkMult: 0.8 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -279,6 +298,7 @@ MonoBehaviour: position: {x: -7.6, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -289,6 +309,7 @@ MonoBehaviour: position: {x: -5.8, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -299,6 +320,7 @@ MonoBehaviour: position: {x: -6.7, y: 0} hpMult: 1.25 atkMult: 1.15 + defMult: 1 isBoss: 0 isGeneral: 1 art: hgj_boss_dengmao @@ -309,6 +331,7 @@ MonoBehaviour: position: {x: -1, y: -2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_cavalry @@ -319,6 +342,7 @@ MonoBehaviour: position: {x: 1, y: -2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_cavalry @@ -329,6 +353,7 @@ MonoBehaviour: position: {x: 5.8, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -339,6 +364,7 @@ MonoBehaviour: position: {x: 7.6, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -364,6 +390,7 @@ MonoBehaviour: position: {x: 0, y: -4.4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -374,6 +401,7 @@ MonoBehaviour: position: {x: -3, y: -0.5} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -384,6 +412,7 @@ MonoBehaviour: position: {x: 3, y: -0.5} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -394,6 +423,7 @@ MonoBehaviour: position: {x: -5, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -404,6 +434,7 @@ MonoBehaviour: position: {x: 5, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -414,6 +445,7 @@ MonoBehaviour: position: {x: 0, y: 1} hpMult: 1.5 atkMult: 1.3 + defMult: 1 isBoss: 1 isGeneral: 1 art: hgj_boss_chengyuanzhi @@ -441,6 +473,7 @@ MonoBehaviour: position: {x: -5.4, y: -7} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -451,6 +484,7 @@ MonoBehaviour: position: {x: -3.36, y: -6.36} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -461,6 +495,7 @@ MonoBehaviour: position: {x: -2.5, y: -5.4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -471,6 +506,7 @@ MonoBehaviour: position: {x: 3.55, y: -6} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -481,6 +517,7 @@ MonoBehaviour: position: {x: 4.5, y: -6} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -491,6 +528,7 @@ MonoBehaviour: position: {x: 4.03, y: -5.18} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -517,6 +555,7 @@ MonoBehaviour: position: {x: -1.65, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -527,6 +566,7 @@ MonoBehaviour: position: {x: -0.55, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -537,6 +577,7 @@ MonoBehaviour: position: {x: 0.55, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -547,6 +588,7 @@ MonoBehaviour: position: {x: 1.65, y: 2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -557,6 +599,7 @@ MonoBehaviour: position: {x: -1.5, y: 4.4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_cavalry @@ -567,6 +610,7 @@ MonoBehaviour: position: {x: 1.5, y: 4.4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_cavalry @@ -577,6 +621,7 @@ MonoBehaviour: position: {x: 0, y: 5.8} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -602,6 +647,7 @@ MonoBehaviour: position: {x: -2.5, y: -5.2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -612,6 +658,7 @@ MonoBehaviour: position: {x: 0, y: -5.2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -622,6 +669,7 @@ MonoBehaviour: position: {x: 2.5, y: -5.2} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -632,6 +680,7 @@ MonoBehaviour: position: {x: -7, y: 3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -642,6 +691,7 @@ MonoBehaviour: position: {x: 7, y: 3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -652,6 +702,7 @@ MonoBehaviour: position: {x: 0, y: 5.5} hpMult: 1.25 atkMult: 1.15 + defMult: 1 isBoss: 0 isGeneral: 1 art: hgj_boss_zhangbao @@ -675,6 +726,7 @@ MonoBehaviour: position: {x: -3, y: -4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -685,6 +737,7 @@ MonoBehaviour: position: {x: 3, y: -4} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -695,6 +748,7 @@ MonoBehaviour: position: {x: -6.5, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_infantry @@ -705,6 +759,7 @@ MonoBehaviour: position: {x: -1, y: -3.5} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -715,6 +770,7 @@ MonoBehaviour: position: {x: 1, y: -3.5} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_spear @@ -725,6 +781,7 @@ MonoBehaviour: position: {x: 6.5, y: -3} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_cavalry @@ -735,6 +792,7 @@ MonoBehaviour: position: {x: -3, y: 1} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_archer @@ -745,6 +803,7 @@ MonoBehaviour: position: {x: 0, y: 1} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_archer @@ -755,6 +814,7 @@ MonoBehaviour: position: {x: 3, y: 1} hpMult: 1 atkMult: 1 + defMult: 1 isBoss: 0 isGeneral: 0 art: hgj_archer @@ -765,6 +825,7 @@ MonoBehaviour: position: {x: 0, y: 3.5} hpMult: 1.25 atkMult: 1.15 + defMult: 1 isBoss: 0 isGeneral: 1 art: hgj_boss_zhangliang @@ -2119,8 +2180,8 @@ MonoBehaviour: targetRaw: slot:3 mode: 0 locked: 1 - textKo: "\uC7A5\uBE44\uAC00 \uAC74\uB2EC\uB4E4\uC5D0\uAC8C \uB458\uB7EC\uC2F8\uC600\uB2E4! - \uC720\uBE44\uB85C \uAC74\uB2EC\uC744 \uBB3C\uB9AC\uCE58\uC790." + textKo: "\uC7A5\uBE44\uAC00 \uAE30\uC2B5\uC5D0 \uC4F0\uB7EC\uC84C\uB2E4! \uC720\uBE44\uB85C + \uBE44\uAC81\uD55C \uAC74\uB2EC\uC744 \uD63C\uB0B4 \uC8FC\uC790." line: 2 - chapter: 1 stage: 1 diff --git a/Assets/Scripts/Runtime/BattleManager.cs b/Assets/Scripts/Runtime/BattleManager.cs index 970a7a77..7693249c 100644 --- a/Assets/Scripts/Runtime/BattleManager.cs +++ b/Assets/Scripts/Runtime/BattleManager.cs @@ -254,6 +254,8 @@ namespace TKS { StopAllCoroutines(); BossIntro.Abort(); + ScenarioEvent.Abort(); + if (Board != null) Board.ClearEventArt(); ClearUnits(); Phase = BattlePhase.Setup; sideEffects[0] = SideEffectsProvider != null ? SideEffectsProvider(Faction.Player) : null; @@ -334,6 +336,13 @@ namespace TKS if (StageStarted != null) StageStarted(); // 보스 등장 연출(2026-11-12 시나리오 이벤트 C2 · boss_intro.csv) — 연출 동안 Setup(아군 조작 잠금) → 끝나면 아군 차례 · 연무장(Mode) 전투 제외 bool cleared = StageClearedProvider != null && StageClearedProvider(stage.chapter, stage.stage); + // 시나리오 이벤트(2026-11-18 · scenario_event.csv stage_start) — 처음 할 때만 · 끝나면 보스 등장 → 첫 턴(연출 동안 Setup = 조작·학습 안내 대기) + if (ScenarioEvent.Wants(this, stage, "stage_start", cleared)) ScenarioEvent.Begin(this, stage, "stage_start", () => FirstTurn(stage, cleared, rules)); + else FirstTurn(stage, cleared, rules); + } + + void FirstTurn(BalanceConfig.StageDef stage, bool cleared, ModeBattleRules rules) + { if (Mode == null && BossIntro.Wants(stage, cleared)) BossIntro.Begin(this, stage, cleared, () => SetPhase(BattlePhase.PlayerTurn)); else if (rules != null && rules.EnemyFirst) // 선제(병법 훈련) — 적이 먼저 움직이고 그 적 턴은 턴 수를 세지 않는다 { @@ -344,6 +353,19 @@ namespace TKS else SetPhase(BattlePhase.PlayerTurn); } + /// 승리 — 시나리오 이벤트 win 이 있으면(처음 깰 때) 그 연출 뒤에 StageClear(결과 · 결말 카드는 연출 뒤). + void ClearStage() + { + var stage = Stage; + bool cleared = StageClearedProvider != null && StageClearedProvider(stage.chapter, stage.stage); + if (ScenarioEvent.Wants(this, stage, "win", cleared)) + { + SetPhase(BattlePhase.Setup); + ScenarioEvent.Begin(this, stage, "win", () => SetPhase(BattlePhase.StageClear)); + } + else SetPhase(BattlePhase.StageClear); + } + /// 선제 판의 첫 적 턴(턴 수 · 제한 턴을 세지 않는다). bool ambushOpening; @@ -358,6 +380,7 @@ namespace TKS { StopAllCoroutines(); BossIntro.Abort(); + ScenarioEvent.Abort(); ClearUnits(); SetPhase(BattlePhase.Setup); } @@ -873,7 +896,8 @@ namespace TKS if (ph == BattlePhase.StageClear) foreach (var p in AliveUnits(Faction.Player)) if (p.View != null) p.View.PlayVictory(); - SetPhase(ph); + if (ph == BattlePhase.StageClear) ClearStage(); + else SetPhase(ph); return true; } } @@ -884,7 +908,7 @@ namespace TKS { if (p.View != null) p.View.PlayVictory(); } - SetPhase(BattlePhase.StageClear); + ClearStage(); return true; } if (Tutorial != null && !Sim.Active && Tutorial.NpcLost) // 학습 판: 구출 대상이 쓰러지면 실패 diff --git a/Assets/Scripts/Runtime/Board.cs b/Assets/Scripts/Runtime/Board.cs index ed9978a2..b93264f9 100644 --- a/Assets/Scripts/Runtime/Board.cs +++ b/Assets/Scripts/Runtime/Board.cs @@ -79,6 +79,38 @@ namespace TKS MakeWall("WallRight", new Vector2(w * 0.5f + wallT * 0.5f, 0f), new Vector2(wallT, h)); } + SpriteRenderer eventArt; + + /// + /// 시나리오 이벤트 바닥(scenario_event bg 명령 · Resources/Board/<name> · 2026-11-18) — 판 배경 위(−19 · 격자·기믹 아래)에 전장 크기로 덮는다. + /// 그림이 없으면 지금 바닥 그대로(false). 다음 전투 시작(BattleManager.Begin)에 ClearEventArt. + /// + public bool SetEventArt(string name) + { + var art = string.IsNullOrEmpty(name) ? null : Resources.Load("Board/" + name); + if (art == null) + { + Debug.LogWarning("[TKS] 이벤트 바닥 그림 없음: Board/" + name + " → 지금 바닥 유지"); + return false; + } + if (eventArt == null) eventArt = ProceduralSprites.NewSprite(transform, "EventBackground", art, Color.white, 1f, -19); + eventArt.sprite = art; + eventArt.transform.localScale = new Vector3(Size.x / art.bounds.size.x, Size.y / art.bounds.size.y, 1f); + eventArt.gameObject.SetActive(true); + return true; + } + + public void ClearEventArt() + { + if (eventArt != null) eventArt.gameObject.SetActive(false); + } + + /// 이벤트 바닥이 켜져 있는가(테스트·캡처 확인용). + public bool EventArtOn + { + get { return eventArt != null && eventArt.gameObject.activeSelf; } + } + void MakeBorder(string name, Vector2 pos, Vector2 size, Color color) { var sr = ProceduralSprites.NewSprite(transform, name, ProceduralSprites.Square, color, 1f, -16); diff --git a/Assets/Scripts/Runtime/Scenario/BossIntro.cs b/Assets/Scripts/Runtime/Scenario/BossIntro.cs index 4711bfc3..a708338f 100644 --- a/Assets/Scripts/Runtime/Scenario/BossIntro.cs +++ b/Assets/Scripts/Runtime/Scenario/BossIntro.cs @@ -3,13 +3,14 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; +using static TKS.ScenarioUi; namespace TKS { /// /// 보스 스테이지 시작 연출(2026-11-12 PD 「보스는 등장할 때 포커스 + 짤막한 대사(말풍선)」 · 「예시처럼 보스 등장 연출」 · 개발 요청서 C2). /// ① 경고(위아래 검은 띠 + 붉은 가장자리 깜빡임) → ② 보스 포커스(카메라 이동·확대 · 다른 유닛 어둡게 · 발밑 붉은 원) → - /// ③ 컷인(위 「BOSS 등장!」 붉은 줄무늬 띠 → 보스 전신 + 아래 이름 띠) → ④ 말풍선 대사(타자 효과 · 2인 보스는 n_order 순) → ⑤ 아군 시야로 복귀. + /// ③ 컷인(위 「BOSS 등장!」 붉은 줄무늬 띠 → 보스 전신 + 아래 이름 띠) → ④ 말풍선 대사(타자 효과 · 2인 보스는 n_order 순) → ④-2 주고받기(boss_talk.csv · 아군 장수가 받아침) → ⑤ 아군 시야로 복귀. /// 값 = ScenarioData.Cfg(boss_intro_config.csv) · 대사 = boss_intro.csv · 그림 = Resources/Scenario/*.png(띠·글자·말풍선 · 없으면 색 면) + 보스 유닛 그림. /// 연출 동안 전투 단계 = Setup(아군 조작 잠금) · 끝나면 onDone(아군 차례). Sim.Active(적 AI 가상 실행) 중에는 아무것도 하지 않는다. /// @@ -23,8 +24,16 @@ namespace TKS List bosses = new List(); List lines; bool withCutin; - bool skip; - int taps; + readonly TalkState st = new TalkState(); + List talks; + bool withTalk; + static readonly Color BossTag = new Color(0.75f, 0.16f, 0.12f); + static readonly Color AllyTag = new Color(0.16f, 0.36f, 0.72f); + + bool skip + { + get { return st.Skip; } + } Vector3 camStart; float viewStart; readonly Dictionary dimmed = new Dictionary(); @@ -65,6 +74,8 @@ namespace TKS bi.onDone = onDone; bi.lines = ScenarioData.Bosses(stage.chapter, stage.stage); bi.withCutin = !(cleared && Mathf.RoundToInt(C("replay_mode")) == 1); + bi.talks = ScenarioData.Talks(stage.chapter, stage.stage); + bi.withTalk = !(cleared && Mathf.RoundToInt(C("talk_on_replay")) == 0); foreach (var l in bi.lines) { Unit hit = null; @@ -90,63 +101,6 @@ namespace TKS // ---------- 화면 ---------- - static Sprite Spr(string name) - { - return Resources.Load(ScenarioData.Root + name); - } - - static RectTransform Rt(string name, Transform parent, Vector2 aMin, Vector2 aMax, Vector2 pivot, Vector2 pos, Vector2 size) - { - var go = new GameObject(name, typeof(RectTransform)); - go.transform.SetParent(parent, false); - var rt = (RectTransform)go.transform; - rt.anchorMin = aMin; - rt.anchorMax = aMax; - rt.pivot = pivot; - rt.anchoredPosition = pos; - rt.sizeDelta = size; - return rt; - } - - static Image Img(string name, Transform parent, Sprite sp, Color col, Vector2 aMin, Vector2 aMax, Vector2 pivot, Vector2 pos, Vector2 size) - { - var img = Rt(name, parent, aMin, aMax, pivot, pos, size).gameObject.AddComponent(); - img.sprite = sp; - img.color = col; - img.raycastTarget = false; - return img; - } - - static Image Full(string name, Transform parent, Sprite sp, Color col) - { - return Img(name, parent, sp, col, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), Vector2.zero, Vector2.zero); - } - - static Text Txt(Transform parent, string s, int size, Color col, TextAnchor anchor, Vector2 pos, Vector2 box, Font font) - { - var t = Rt("Text", parent, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), pos, box).gameObject.AddComponent(); - t.font = font; - t.fontSize = size; - t.color = col; - t.alignment = anchor; - t.text = s; - t.supportRichText = false; - t.raycastTarget = false; - t.horizontalOverflow = HorizontalWrapMode.Wrap; - t.verticalOverflow = VerticalWrapMode.Overflow; - return t; - } - - static void Stroke(Text t, Color col, float d) - { - var o = t.gameObject.AddComponent(); - o.effectColor = col; - o.effectDistance = new Vector2(d, -d); - var o2 = t.gameObject.AddComponent(); - o2.effectColor = col; - o2.effectDistance = new Vector2(-d, d); - } - void Build() { UiLayer.Root(gameObject, cc.Cam, 460, 0.38f, UiLayer.Reference, UiRate.Event); // 아웃게임 위 덮개(재화 바 · 450)보다 위 · 연출 동안 화면 전체를 덮음 @@ -154,7 +108,7 @@ namespace TKS // 누름 받이(탭 1 = 대사 전부 · 탭 2 = 닫기) — 전체 화면 · 투명 var catcher = Full("Tap", root, null, new Color(0f, 0f, 0f, 0f)); catcher.raycastTarget = true; - catcher.gameObject.AddComponent