연의전기 시나리오 이벤트(편 0 도원결의 · 1-1~1-3 시작·승리 연출) + 출정 보스 등장 주고받기 — ScenarioEvent · ScenarioUi(말풍선 공용) · boss_talk.csv · 이벤트 표 4장 · 1-1 제목·안내·전장 설명 · ScenarioEventTests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-11-18 16:46:32 +09:00
parent b0d79ba1a1
commit 530865d793
28 changed files with 1817 additions and 140 deletions

View File

@ -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,산기슭,튜토리얼(상성 · 무장),,,

1 chapter stage title type place faction infantry spear cavalry archer strategist generals bg_theme note f_enemy_hp f_enemy_atk f_enemy_def
2 1 1 탁현 저잣거리 — 장비 구출 탁현 주점 — 장비 구출 normal 탁현 hgj 3 0 0 0 0 마을 어귀 튜토리얼(조작)
3 1 2 탁현 고갯길 — 관우 구출 normal 탁현 hgj 4 0 0 0 0 산길 튜토리얼(아군 밀치기 · 3턴)
4 1 3 누상촌 어귀 — 포위 돌파 normal 누상촌 hgj 12 0 0 0 0 마을 튜토리얼(장수 스킬)
5 1 4 대흥산 — 등무 elite 대흥산 hgj 2 2 2 0 0 hgj_boss_dengmao:spear:false 산기슭 튜토리얼(상성 · 무장)

View File

@ -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,공격받은 적은 곧바로 반격합니다. 머리 위 체력을 확인하세요.,

1 n_chapter n_stage n_step e_trigger n_turn s_target e_mode b_lock s_text_ko Memo
2 1 1 1 stage_start 0 slot:3 popup 1 장비가 건달들에게 둘러싸였다! 유비로 건달을 물리치자. 장비가 기습에 쓰러졌다! 유비로 비겁한 건달을 혼내 주자.
3 1 1 2 after_step 0 slot:1>slot:2 drag 1 유비를 누른 채 적 쪽으로 끌었다 놓으세요. 놓는 순간의 게이지만큼 날아갑니다. 손가락이 유비에서 2번 건달 쪽으로 끄는 움직임을 되풀이 · 조준선 끝 = 2번 건달
4 1 1 3 unit_select 0 slot:2 highlight 1 조준선을 건달에 맞추고 손을 떼세요. 부딪힌 적을 공격합니다. 공격 예정 적 표시와 함께
5 1 1 4 action_end 1 bar 0 공격받은 적은 곧바로 반격합니다. 머리 위 체력을 확인하세요.

View File

@ -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줄로 세 갈래 길 → 각 길에 그 장수가 유리한 적

1 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
2 1 1 탁현 저잣거리 — 장비 구출 탁현 주점 — 장비 구출 탁현 normal 조작(유닛 선택 · 끌어서 방향 정하고 게이지에 맞춰 놓기 · 조준선 · 공격과 반격 · 아군 턴과 적 턴) liubei zhangfei 0 건달 전멸 없음(유비·장비 체력 1 아래로 안 내려감) 1 연의 1회 각색 — 유비·장비는 의용군 방 앞에서 만남 → 건달에게 둘러싸인 장비를 유비가 구함(PD 예시) · 건달 = 황건 앞잡이(황건 보병 그림 재사용)
3 1 2 탁현 고갯길 — 관우 구출 탁현 normal 아군 밀치기(보병이 아군을 쳐서 멀리 보냄 · 밀린 아군이 적에 닿으면 그 자리에서 1회 공격) · 턴 제한 liubei;zhangfei guanyu 3 관우를 둘러싼 척후 전멸 관우가 쓰러짐 · 3턴 안에 못 끝냄 0 연의 1회 각색 — 관우는 주막에서 만남 → 척후에게 포위된 관우를 구함(PD 예시) · 의도한 해법 = 1턴 유비가 장비를 밀어 4번 척후와 닿게(그 자리 공격으로 쓰러짐) → 장비가 5·6번을 한 줄로 → 2~3턴 7번 · 밀치기 없이도 깰 수는 있음(적 이동은 계산 불가 · 1턴 밀치기는 안내 잠금으로 강제)
4 1 3 누상촌 어귀 — 포위 돌파 누상촌 normal 장수 스킬(스킬 버튼 · 범위 · 다시 쓰기까지 대기 턴) · 세 사람 모두 조작 liubei;guanyu;zhangfei 0 적 전멸 아군 전멸 복숭아꽃이 핀 장비의 동산에서 세 사람은 한날한시에 죽기를 맹세하며 의형제를 맺었다. 유비·관우·장비 영입(제안 · 편성 화면에 보유) 0 연의 1회(도원결의) 각색 — 포위를 관우 스킬로 일거에 무너뜨림(PD 예시) · 스킬은 지금 규칙으로 첫 턴부터 사용 가능
5 1 4 대흥산 — 등무 대흥산 elite 병종 상성(보병 > 창병 > 기병 > 보병 · 유리 1.5배 · 불리 0.7배) · 이름 있는 무장 liubei;guanyu;zhangfei 0 적 전멸 아군 전멸 0 연의 1회 · 덤불 벽 2줄로 세 갈래 길 → 각 길에 그 장수가 유리한 적

View File

@ -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

View File

@ -731,7 +731,7 @@
"type": "튜토리얼(조작)",
"boss": false,
"place": "탁현",
"title": "탁현 저잣거리 — 장비 구출",
"title": "탁현 주점 — 장비 구출",
"at": [
435.7,
3399.0

View File

@ -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 = 틂

1 s_key f_value Memo
31 return_sec 0.7 ⑤ 보스에서 아군 쪽 기본 시야로 돌아오는 시간(초)
32 skip_show_after_sec 0.5 건너뛰기 버튼이 나타나는 시점(연출 시작 후 초)
33 replay_mode 1 다시 출정(클리어 후) 때 연출 — 정수 코드 0 = 전체 · 1 = 축약(컷인 빼고 포커스 + 말풍선) · 2 = 없음
34 talk_move_sec 0.35 ④-2 주고받기 — 화자로 카메라가 옮겨 가는 시간(초 · boss_talk.csv · 2026-11-18)
35 talk_on_replay 0 ④-2 다시 출정(클리어 후) 때 주고받기 — 정수 코드 0 = 생략 · 1 = 틂

View File

@ -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,모두 길을 열어라! 화용도를 넘는다!,
1 n_chapter n_stage n_order s_speaker s_text_ko Memo
2 1 5 1 zhangfei 등무를 벤 게 나다! 너도 따라가라! 정원지 · 1-4 에서 장비가 부장 등무를 벰 · 연의 1회
3 1 5 1 ally 원수를 갚기 전에 네 목부터 지켜라! 장비가 없을 때
4 1 5 2 hgj_boss_chengyuanzhi 건방진 놈! 황건의 힘을 보여 주마!
5 1 10 1 liubei 백성을 홀린 죄 오늘 끝을 내겠소! 장각 · 연의 1회
6 1 10 1 ally 요술로 세상을 속인 것도 여기까지다! 유비가 없을 때
7 1 10 2 hgj_boss_zhangjiao 하늘의 뜻을 거스르는 자 벼락을 맞으리라!
8 2 5 1 guanyu 술이 식기 전에 돌아오겠소. 화웅 · 온주참화웅(술이 식기 전에 목을 벰) · 연의 5회
9 2 5 1 ally 네 목을 가지러 왔다 화웅! 관우가 없을 때
10 2 5 2 dz_boss_huaxiong 하하! 네놈도 칼맛을 보고 싶으냐!
11 2 10 1 zhangfei 세 아비 섬긴 종놈아! 장비가 왔다! 여포 · 삼성가노(三姓家奴) · 삼영전여포 · 연의 5회
12 2 10 1 ally 천하무쌍이라도 우리를 다 꺾진 못한다! 장비가 없을 때
13 2 10 2 dz_boss_lvbu 좋다! 방천화극의 맛을 보여 주마!
14 3 5 1 zhaoyun 상산 조자룡이 길을 열겠다! 국의 · 계교 싸움에서 조운이 국의를 벰 · 연의 7회
15 3 5 1 ally 화살비쯤이야 뚫고 나가면 그만이다! 조운이 없을 때
16 3 5 2 ys_boss_quyi 쏴라! 다리 위에 시체를 쌓아라!
17 3 10 1 guanyu 북해를 구하러 왔다. 네 상대는 나다. 관해 · 관우가 관해를 벰 · 연의 11회
18 3 10 1 ally 공융 공의 성은 우리가 지킨다! 관우가 없을 때
19 3 10 2 hgj_boss_guanhai 덤벼라! 이 팔뚝으로 꺾어 주마!
20 3 15 1 liubei 서주 백성을 해치게 둘 수 없소! 우금 · 서주 구원 · 연의 11회
21 3 15 1 ally 미친 놈인지 아닌지 칼로 알려 주마! 유비가 없을 때
22 3 15 2 cc_boss_yujin 흥 오합지졸로 조조군을 막겠다니!
23 4 5 1 guanyu 좋다. 삼십 합으로 끝나지 않을 것이다. 기령 · 관우와 30합 · 연의 14회
24 4 5 1 ally 관우 장군 대신 우리가 상대해 주마! 관우가 없을 때
25 4 5 2 ysu_boss_jiling 삼첨도의 맛을 보여 주겠다!
26 4 10 1 zhangfei 함진영이고 뭐고 다 날려 버리겠다! 고순 · 함진영 · 연의 18회
27 4 10 1 ally 진이 단단하면 틈을 찾으면 된다! 장비가 없을 때
28 4 10 2 dz_boss_gaoshun 함진영은 지금껏 진 적이 없다!
29 4 15 1 liubei 여포 그대의 의리는 어디로 갔소? 여포 · 하비 · 연의 19회
30 4 15 1 ally 배신을 거듭한 끝이 여기다 여포! 유비가 없을 때
31 4 15 2 dz_boss_lvbu 닥쳐라! 적토마와 함께 다 쓸어 주마!
32 5 5 1 zhangfei 관 형님 대신 이 장비가 끝내 주마! 기령 · 이번엔 장비가 벰 · 연의 21회
33 5 5 1 ally 몇 번을 와도 결과는 같을 것이다! 장비가 없을 때
34 5 5 2 ysu_boss_jiling 웃기지 마라! 이번엔 내가 이긴다!
35 5 10 1 zhangfei 하하! 둘이 사이좋게 사로잡혀라! 유대·왕충 · 관우·장비가 둘을 사로잡음 · 연의 22회
36 5 10 1 ally 공을 다투는 장수들이 무섭겠느냐! 장비가 없을 때
37 5 10 2 cc_boss_liudai 왕충 다투지 말고 함께 쳐라! 2인 보스 첫째가 받음
38 5 15 1 guanyu 공명 옛정은 옛정이오. 비키시오. 서황(자 공명)·허저 · 토산 고립 · 연의 25회
39 5 15 1 ally 길이 없다면 뚫어서 만들면 된다! 관우가 없을 때
40 5 15 2 cc_boss_xuchu 말은 됐다! 이 허저와 붙어 보자! 2인 보스 둘째가 받음
41 6 5 1 guanyu 목에 값표를 꽂고 나왔구나. 안량 · 삽표매수(插標賣首) · 연의 25회
42 6 5 1 ally 오만한 자일수록 크게 쓰러지는 법이다! 관우가 없을 때
43 6 5 2 ys_boss_yanliang 건방진 놈! 저승에서 후회해라!
44 6 10 1 guanyu 안량을 따라가고 싶은 게로구나. 문추 · 연의 26회
45 6 10 1 ally 원수를 갚기 전에 네가 쓰러질 것이다! 관우가 없을 때
46 6 10 2 ys_boss_wenchou 말은 필요 없다! 칼로 답하마!
47 6 15 1 guanyu 잔꾀로 이 관우를 잡을 수 있겠느냐. 변희 · 진국사 매복 · 연의 27회
48 6 15 1 ally 매복이 들킨 이상 남은 건 칼뿐이다! 관우가 없을 때
49 6 15 2 cc_boss_bianxi 유성추를 받아라! 도망칠 곳은 없다!
50 6 20 1 guanyu 승상의 허락은 받았소. 길을 비키시오. 하후돈 · 오관참육장 끝 · 연의 28회
51 6 20 1 ally 길을 막는다면 베고 지나갈 뿐이다! 관우가 없을 때
52 6 20 2 cc_boss_xiahoudun 오늘 이 하후돈이 네 앞을 막는다!
53 7 5 1 guanyu 북이 한 번 울리기 전에 끝내겠다. 채양 · 고성에서 북 한 번에 벰 · 연의 28회
54 7 5 1 ally 복수심만으로는 이길 수 없다! 관우가 없을 때
55 7 5 2 cc_boss_caiyang 늙었어도 이 칼은 녹슬지 않았다!
56 7 10 1 zhaoyun 주공께는 손끝 하나 대지 못한다! 고람 · 양산 · 조운이 고람을 벰 · 연의 31회
57 7 10 1 ally 무덤은 네가 파게 될 것이다! 조운이 없을 때
58 7 10 2 cc_boss_gaolan 말장난은 끝이다! 모두 쳐라!
59 8 5 1 zhaoyun 그 명마 주인을 잘못 만났구나. 장무 · 조운이 장무를 베고 적로를 얻음 · 연의 34회
60 8 5 1 ally 말이 좋다고 장수가 되는 건 아니다! 조운이 없을 때
61 8 5 2 jz_boss_zhangwu 적로야 달려라! 모두 짓밟아라!
62 8 10 1 xushu 생문으로 들어가 경문으로 나가면 된다! 조인 · 팔문금쇄진을 서서가 간파 · 연의 36회
63 8 10 1 zhaoyun 동남쪽 생문으로 뚫고 들어가겠다! 서서가 없을 때 · 진에 뛰어든 조운
64 8 10 1 ally 어떤 진이든 깨뜨리면 그만이다! 둘 다 없을 때
65 8 10 2 cc_boss_caoren 흥 이 진의 변화를 꿰뚫을 수 있겠느냐!
66 8 15 1 zhugeliang 풋내기인지 아닌지 불길이 알려 주리다. 하후돈 · 박망파 화공 · 연의 39회
67 8 15 1 ally 얕보는 순간 이미 진 것이다! 제갈량이 없을 때
68 8 15 2 cc_boss_xiahoudun 잔꾀가 통할 것 같으냐! 진격하라!
69 9 5 1 weiyan 문을 열어라! 유 황숙을 맞이하라! 문빙 · 양양성 · 위연이 문을 열려 함 · 연의 41회
70 9 5 1 liubei 백성들이 피란할 길만 열어 주시오. 위연이 없을 때
71 9 5 1 ally 문이 안 열리면 부수고 지나가겠다! 둘 다 없을 때
72 9 5 2 jz_boss_wenpin 형주를 지키는 것이 내 소임이다!
73 9 10 1 zhaoyun 아두 공자는 내가 반드시 지킨다! 장합 · 장판파 단기 · 연의 41회
74 9 10 1 ally 산 채로 잡히는 일은 없을 것이다! 조운이 없을 때
75 9 10 2 cc_boss_zhanghe 포위를 좁혀라! 놓치지 마라!
76 9 15 1 zhangfei 연인 장익덕이 여기 있다! 덤벼라! 조조 · 장판교 · 연의 42회
77 9 15 1 zhugeliang 승상 이번에도 한 수 늦으셨소. 장비가 없을 때
78 9 15 1 ally 계략이든 아니든 여기서 끝이다! 둘 다 없을 때
79 9 15 2 cc_boss_caocao 물러서지 마라! 숫자는 우리가 많다!
80 10 5 1 zhugeliang 물 위의 싸움은 바람이 정하는 법이오. 채모·장윤 · 연의 45회
81 10 5 1 ally 물 위라고 겁먹을 우리가 아니다! 제갈량이 없을 때
82 10 5 2 jz_boss_caimao 장윤 배를 돌려라! 에워싸라! 2인 보스 첫째가 받음
83 10 10 1 pangtong 사슬은 내가 권한 것이오. 이제 불이오! 우금·모개 · 연환계(방통) · 연의 47회
84 10 10 1 zhugeliang 묶인 배는 한 척이 타면 다 타는 법이오. 방통이 없을 때
85 10 10 1 ally 사슬에 묶인 배라면 피할 곳도 없겠지! 둘 다 없을 때
86 10 10 2 cc_boss_yujin 불화살 따위 이 겨울에 통할 리 없다! 동남풍 전 · 2인 보스 첫째가 받음
87 10 15 1 zhaoyun 상산 조자룡이 여기서 기다렸다! 장료 · 오림 매복 · 연의 50회
88 10 15 1 ally 승상을 지키려면 먼저 우리를 넘어라! 조운이 없을 때
89 10 15 2 dz_boss_zhangliao 승상께는 한 발짝도 못 다가간다!
90 10 20 1 guanyu ...오늘은 군령을 받고 왔소. 조조 · 화용도 의석조조 · 연의 50회
91 10 20 1 ally 옛정은 없다! 여기서 끝을 내겠다! 관우가 없을 때
92 10 20 2 cc_boss_caocao 모두 길을 열어라! 화용도를 넘는다!

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b648d31ae91782149b924fb65ff4ba16
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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,황건적,
1 n_chapter n_stage s_actor s_name_ko Memo
2 1 1 slot2 건달 우두머리 연의전기 편 0 도원결의 1막 · 이벤트 연출 시나리오 §1
3 1 1 slot4 건달
4 1 1 slot5 건달
5 1 1 innkeeper 주점 주인 extra · 그림 npc_merchant_m
6 1 1 patron 손님 extra · 그림 npc_elder
7 1 1 guanyu_ev 관우 extra · 1막 승리 연출(관우는 이 판에 없음) · 그림 guanyu
8 1 2 slot4 황건 척후 2막
9 1 2 slot5 황건 척후
10 1 2 slot6 황건 척후
11 1 2 slot7 황건 척후
12 1 2 elder 노인 extra · 그림 npc_elder
13 1 2 child 아이 extra · 그림 npc_child
14 1 3 slot5 황건적 3막
15 1 3 slot6 황건적

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b5ac7d4d5dea32046a6b8ba2f7150ec5
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
s_id,s_glyph,s_color,Memo
!,!,#FFD84A,놀람 · 임시 글자(머리 위 표시 그림 없음 · 그림이 생기면 s_glyph 대신 그림 칸 추가)
?,?,#9FD3FF,의문
anger,!!,#FF5A4A,분노
sweat,...,#9FD3FF,당황·식은땀
laugh,♪,#FFD84A,웃음
dizzy,★,#FFE066,기절·어지러움(faint 의 별 = 이 줄)
1 s_id s_glyph s_color Memo
2 ! ! #FFD84A 놀람 · 임시 글자(머리 위 표시 그림 없음 · 그림이 생기면 s_glyph 대신 그림 칸 추가)
3 ? ? #9FD3FF 의문
4 anger !! #FF5A4A 분노
5 sweat ... #9FD3FF 당황·식은땀
6 laugh ♪ #FFD84A 웃음
7 dizzy ★ #FFE066 기절·어지러움(faint 의 별 = 이 줄)

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 18afdc6433a993c4fa2121e11a3ee3a1
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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)"
1 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
2 taoyuan_1_start taoyuan 1 1 stage_start 0 1 fade 0 out 검은 화면에서 시작
3 taoyuan_1_start taoyuan 1 1 stage_start 0 2 bg bg_ev_tavern 주점 내부 바닥(없으면 지금 바닥)
4 taoyuan_1_start taoyuan 1 1 stage_start 0 3 show liubei 3.6 -9.4 0 구석 자리에 앉은 유비(배치 자리 0,-8 은 연출 끝에 걸어서 감)
5 taoyuan_1_start taoyuan 1 1 stage_start 0 4 show slot2 -2.4 -0.6 0 건달 우두머리 · 계산대 앞
6 taoyuan_1_start taoyuan 1 1 stage_start 0 5 show slot4 -3.8 -0.8 0 건달 · 계산대 앞
7 taoyuan_1_start taoyuan 1 1 stage_start 0 6 show slot5 -1.4 0.4 0 건달 · 계산대 앞
8 taoyuan_1_start taoyuan 1 1 stage_start 0 7 extra innkeeper -3.0 0.6 npc_merchant_m 주점 주인
9 taoyuan_1_start taoyuan 1 1 stage_start 0 8 extra patron -3.6 -7.2 npc_elder 손님
10 taoyuan_1_start taoyuan 1 1 stage_start 0 9 focus 0 -2 0 1.3 장비 탁자 쪽을 가깝게
11 taoyuan_1_start taoyuan 1 1 stage_start 0 10 fade 0.8 in
12 taoyuan_1_start taoyuan 1 1 stage_start 0 11 caption 2.5 184년 · 탁현의 어느 주점
13 taoyuan_1_start taoyuan 1 1 stage_start 0 12 say slot2 주인장! 황건 어르신께 바칠 돈은?
14 taoyuan_1_start taoyuan 1 1 stage_start 0 13 say innkeeper 지, 지난달에 다 가져가셨잖습니까...
15 taoyuan_1_start taoyuan 1 1 stage_start 0 14 emote slot2 anger
16 taoyuan_1_start taoyuan 1 1 stage_start 0 15 shake 0.3 1 건달이 계산대를 내리침
17 taoyuan_1_start taoyuan 1 1 stage_start 0 16 say slot2 없으면 술독이라도 내놔!
18 taoyuan_1_start taoyuan 1 1 stage_start 0 17 say zhangfei 시끄럽다! 술맛 떨어지게 웬 소란이냐!
19 taoyuan_1_start taoyuan 1 1 stage_start 0 18 emote slot2 ?
20 taoyuan_1_start taoyuan 1 1 stage_start 0 19 move slot2 0 -3.6 0.8 장비 앞으로
21 taoyuan_1_start taoyuan 1 1 stage_start 0 20 move slot4 -2.4 -2.6 0.6 장비 왼쪽으로
22 taoyuan_1_start taoyuan 1 1 stage_start 0 21 move slot5 2.4 -2.6 0.6 장비 오른쪽으로
23 taoyuan_1_start taoyuan 1 1 stage_start 0 22 say innkeeper 아이고, 장 대인! 참으십시오!
24 taoyuan_1_start taoyuan 1 1 stage_start 0 23 hide innkeeper 주인이 계산대 밑으로 숨음
25 taoyuan_1_start taoyuan 1 1 stage_start 0 24 emote patron sweat
26 taoyuan_1_start taoyuan 1 1 stage_start 0 25 move patron -5.5 -7.2 0.6 손님이 달아남
27 taoyuan_1_start taoyuan 1 1 stage_start 0 26 hide patron
28 taoyuan_1_start taoyuan 1 1 stage_start 0 27 say slot2 뭐냐, 이 수염투성이 돼지 장수는?
29 taoyuan_1_start taoyuan 1 1 stage_start 0 28 emote zhangfei laugh
30 taoyuan_1_start taoyuan 1 1 stage_start 0 29 say zhangfei 하하! 이 장비 님을 몰라보는구나!
31 taoyuan_1_start taoyuan 1 1 stage_start 0 30 say zhangfei 좋게 말할 때 썩 꺼져라, 쥐새끼들아!
32 taoyuan_1_start taoyuan 1 1 stage_start 0 31 emote slot2 sweat
33 taoyuan_1_start taoyuan 1 1 stage_start 0 32 say slot2 히익... 가, 가면 될 것 아니오.
34 taoyuan_1_start taoyuan 1 1 stage_start 0 33 move slot2 0 -5.5 0.8 물러나는 척 = 배치 자리
35 taoyuan_1_start taoyuan 1 1 stage_start 0 34 say zhangfei 흥, 싱거운 놈들. 주인장, 술이나 더!
36 taoyuan_1_start taoyuan 1 1 stage_start 0 35 move slot4 -1.3 -1.1 0.7 장비 등 뒤로 살금살금 = 배치 자리
37 taoyuan_1_start taoyuan 1 1 stage_start 0 36 move slot5 1.3 -1.1 0.7 장비 등 뒤로 살금살금 = 배치 자리
38 taoyuan_1_start taoyuan 1 1 stage_start 0 37 emote liubei ! 구석의 유비가 알아챔(화면 밖이면 생략 가능)
39 taoyuan_1_start taoyuan 1 1 stage_start 0 38 attack slot5 zhangfei 0.4 술독으로 뒤통수를 침
40 taoyuan_1_start taoyuan 1 1 stage_start 0 39 hit zhangfei
41 taoyuan_1_start taoyuan 1 1 stage_start 0 40 shake 0.4 1.5
42 taoyuan_1_start taoyuan 1 1 stage_start 0 41 say zhangfei 크윽...! 등 뒤에서... 비겁한...
43 taoyuan_1_start taoyuan 1 1 stage_start 0 42 faint zhangfei keep 전투가 끝날 때까지 쓰러진 채(새 명령 제안 1)
44 taoyuan_1_start taoyuan 1 1 stage_start 0 43 say slot5 크하하! 장사도 술독 한 방이면 끝이지!
45 taoyuan_1_start taoyuan 1 1 stage_start 0 44 say slot2 잘했다! 놈의 돈주머니부터 털어라!
46 taoyuan_1_start taoyuan 1 1 stage_start 0 45 focus liubei 0.6 1.3
47 taoyuan_1_start taoyuan 1 1 stage_start 0 46 say liubei 그만두시오.
48 taoyuan_1_start taoyuan 1 1 stage_start 0 47 move liubei 0 -8 1.0 자리에서 일어나 나섬 = 배치 자리
49 taoyuan_1_start taoyuan 1 1 stage_start 0 48 focus 0 -5 0.6 1 전투 화면으로
50 taoyuan_1_start taoyuan 1 1 stage_start 0 49 emote slot2 ?
51 taoyuan_1_start taoyuan 1 1 stage_start 0 50 say slot2 넌 또 뭐냐, 돗자리 장수 주제에?
52 taoyuan_1_start taoyuan 1 1 stage_start 0 51 say liubei 등 뒤에서 치는 것이 사내의 일이오?
53 taoyuan_1_start taoyuan 1 1 stage_start 0 52 say liubei 그 손을 떼시오. 내가 상대하겠소.
54 taoyuan_1_start taoyuan 1 1 stage_start 0 53 emote slot2 anger
55 taoyuan_1_start taoyuan 1 1 stage_start 0 54 say slot2 하! 이놈도 같이 눕혀 버려라! 끝 → 학습 안내 1단계
56 taoyuan_1_win taoyuan 1 1 win 0 1 wait 0.5
57 taoyuan_1_win taoyuan 1 1 win 0 2 move liubei 0 -3.4 0.8 쓰러진 장비 곁으로
58 taoyuan_1_win taoyuan 1 1 win 0 3 focus zhangfei 0.6 1.3
59 taoyuan_1_win taoyuan 1 1 win 0 4 wake zhangfei
60 taoyuan_1_win taoyuan 1 1 win 0 5 emote zhangfei dizzy
61 taoyuan_1_win taoyuan 1 1 win 0 6 say zhangfei 으음... 머리야. 건달 놈들은 어디 갔소?
62 taoyuan_1_win taoyuan 1 1 win 0 7 say liubei 모두 달아났소. 몸은 괜찮으시오?
63 taoyuan_1_win taoyuan 1 1 win 0 8 say zhangfei 그대가 구해 줬구려! 나는 장비라 하오.
64 taoyuan_1_win taoyuan 1 1 win 0 9 say liubei 유비라 하오. 돗자리를 짜며 지내오.
65 taoyuan_1_win taoyuan 1 1 win 0 10 say zhangfei 이런 호걸이 저잣거리에 숨어 있었다니!
66 taoyuan_1_win taoyuan 1 1 win 0 11 say liubei 황건적을 막을 의용군에 나설 참이오.
67 taoyuan_1_win taoyuan 1 1 win 0 12 say zhangfei 좋소! 내 재산을 다 털어 함께하겠소!
68 taoyuan_1_win taoyuan 1 1 win 0 13 extra guanyu_ev 0 -9.5 guanyu 관우가 주점에 들어섬(이 판에 없는 영웅 → extra)
69 taoyuan_1_win taoyuan 1 1 win 0 14 move guanyu_ev 1.8 -4.2 1.2
70 taoyuan_1_win taoyuan 1 1 win 0 15 emote zhangfei !
71 taoyuan_1_win taoyuan 1 1 win 0 16 say guanyu_ev 주인장, 술을 급히 주시오. 갈 길이 바쁘오.
72 taoyuan_1_win taoyuan 1 1 win 0 17 say liubei 실례지만, 어디로 가는 길이시오?
73 taoyuan_1_win taoyuan 1 1 win 0 18 say guanyu_ev 관우라 하오. 의용군에 들려 하오.
74 taoyuan_1_win taoyuan 1 1 win 0 19 say zhangfei 하하! 우리와 뜻이 같구려!
75 taoyuan_1_win taoyuan 1 1 win 0 20 say guanyu_ev 고갯길에 황건 척후가 돈다 하오.
76 taoyuan_1_win taoyuan 1 1 win 0 21 say guanyu_ev 마을 사람이 다칠라. 먼저 가 보겠소.
77 taoyuan_1_win taoyuan 1 1 win 0 22 move guanyu_ev 0 -9.5 1.0 관우가 먼저 떠남
78 taoyuan_1_win taoyuan 1 1 win 0 23 hide guanyu_ev
79 taoyuan_1_win taoyuan 1 1 win 0 24 say liubei 혼자 보낼 수 없소. 우리도 따라갑시다. 끝 → 결과 화면 · 2막으로
80 taoyuan_2_start taoyuan 1 2 stage_start 0 1 fade 0 out
81 taoyuan_2_start taoyuan 1 2 stage_start 0 2 hide slot4
82 taoyuan_2_start taoyuan 1 2 stage_start 0 3 hide slot5
83 taoyuan_2_start taoyuan 1 2 stage_start 0 4 hide slot6
84 taoyuan_2_start taoyuan 1 2 stage_start 0 5 hide slot7
85 taoyuan_2_start taoyuan 1 2 stage_start 0 6 extra elder 1.5 1.9 npc_elder 피란 가던 마을 노인
86 taoyuan_2_start taoyuan 1 2 stage_start 0 7 extra child 2.2 2.1 npc_child 노인이 데려가던 아이
87 taoyuan_2_start taoyuan 1 2 stage_start 0 8 focus guanyu 0 1.2
88 taoyuan_2_start taoyuan 1 2 stage_start 0 9 fade 0.8 in
89 taoyuan_2_start taoyuan 1 2 stage_start 0 10 caption 2.5 탁현 외곽 · 고갯길
90 taoyuan_2_start taoyuan 1 2 stage_start 0 11 show slot7 4.8 0.6 0
91 taoyuan_2_start taoyuan 1 2 stage_start 0 12 move slot7 2.8 0.6 0.8 = 배치 자리
92 taoyuan_2_start taoyuan 1 2 stage_start 0 13 say slot7 거기 서라! 마을 것들은 두고 가라!
93 taoyuan_2_start taoyuan 1 2 stage_start 0 14 say guanyu 노인장, 아이를 데리고 어서 가시오.
94 taoyuan_2_start taoyuan 1 2 stage_start 0 15 move elder 1.5 4.2 0.8
95 taoyuan_2_start taoyuan 1 2 stage_start 0 16 hide elder
96 taoyuan_2_start taoyuan 1 2 stage_start 0 17 move child 2.2 4.2 0.6
97 taoyuan_2_start taoyuan 1 2 stage_start 0 18 hide child
98 taoyuan_2_start taoyuan 1 2 stage_start 0 19 say slot7 수염 긴 놈, 혼자서 길을 막겠다고?
99 taoyuan_2_start taoyuan 1 2 stage_start 0 20 say guanyu 쥐 떼가 모인들 범을 잡겠느냐.
100 taoyuan_2_start taoyuan 1 2 stage_start 0 21 emote slot7 anger
101 taoyuan_2_start taoyuan 1 2 stage_start 0 22 say slot7 에워싸라! 지칠 때까지 몰아붙여!
102 taoyuan_2_start taoyuan 1 2 stage_start 0 23 show slot6 0 -5.0 0
103 taoyuan_2_start taoyuan 1 2 stage_start 0 24 move slot6 0 -2.4 0.7 = 배치 자리
104 taoyuan_2_start taoyuan 1 2 stage_start 0 25 show slot5 0 -6.0 0
105 taoyuan_2_start taoyuan 1 2 stage_start 0 26 move slot5 0 -3.6 0.7 = 배치 자리
106 taoyuan_2_start taoyuan 1 2 stage_start 0 27 say guanyu 내가 물러서면 저들이 다친다. 버틴다. 관우가 자리를 지키는 까닭 = 3턴 제한의 이야기
107 taoyuan_2_start taoyuan 1 2 stage_start 0 28 focus 0 -11 1.0 1.2 고갯길 아래 유비·장비 쪽으로
108 taoyuan_2_start taoyuan 1 2 stage_start 0 29 say zhangfei 유 공! 저 위에 아까 그 관우요!
109 taoyuan_2_start taoyuan 1 2 stage_start 0 30 say liubei 홀로 길을 막고 있구려. 서두릅시다.
110 taoyuan_2_start taoyuan 1 2 stage_start 0 31 show slot4 0 -7.5 0
111 taoyuan_2_start taoyuan 1 2 stage_start 0 32 move slot4 0 -9.3 0.6 길목을 막아섬 = 배치 자리
112 taoyuan_2_start taoyuan 1 2 stage_start 0 33 say slot4 멈춰라! 이 길은 못 지나간다!
113 taoyuan_2_start taoyuan 1 2 stage_start 0 34 say zhangfei 비켜라! 막으면 날려 버리겠다!
114 taoyuan_2_start taoyuan 1 2 stage_start 0 35 say liubei 장 공, 내가 뒤에서 힘껏 밀어 드리겠소. 끝 → 학습 안내(아군 밀치기)로 이어지는 말
115 taoyuan_2_win taoyuan 1 2 win 0 1 wait 0.5
116 taoyuan_2_win taoyuan 1 2 win 0 2 focus guanyu 0.6 1.2
117 taoyuan_2_win taoyuan 1 2 win 0 3 move liubei 0.6 -0.8 0.8
118 taoyuan_2_win taoyuan 1 2 win 0 4 move zhangfei 2.4 -0.8 0.8
119 taoyuan_2_win taoyuan 1 2 win 0 5 say guanyu 두 분 덕에 마을 사람들이 살았소.
120 taoyuan_2_win taoyuan 1 2 win 0 6 say zhangfei 혼자 길을 막다니, 그대야말로 장사요!
121 taoyuan_2_win taoyuan 1 2 win 0 7 say liubei 뜻이 같은 셋이 한길에서 만났구려.
122 taoyuan_2_win taoyuan 1 2 win 0 8 say guanyu 이 관우, 두 분과 함께 가고 싶소.
123 taoyuan_2_win taoyuan 1 2 win 0 9 say zhangfei 내 집 뒤에 복숭아 동산이 있소!
124 taoyuan_2_win taoyuan 1 2 win 0 10 say zhangfei 거기서 술을 올리고 형제가 됩시다!
125 taoyuan_2_win taoyuan 1 2 win 0 11 emote liubei laugh
126 taoyuan_2_win taoyuan 1 2 win 0 12 say liubei 좋소. 함께 갑시다. 끝 → 결과 화면 · 3막으로
127 taoyuan_3_start taoyuan 1 3 stage_start 0 1 fade 0 out
128 taoyuan_3_start taoyuan 1 3 stage_start 0 2 focus 0 0 0 1.1
129 taoyuan_3_start taoyuan 1 3 stage_start 0 3 fade 0.8 in
130 taoyuan_3_start taoyuan 1 3 stage_start 0 4 caption 2.5 누상촌 어귀 · 복숭아 동산 가는 길
131 taoyuan_3_start taoyuan 1 3 stage_start 0 5 emote zhangfei !
132 taoyuan_3_start taoyuan 1 3 stage_start 0 6 say slot5 찾았다! 우리 척후를 친 놈들이다!
133 taoyuan_3_start taoyuan 1 3 stage_start 0 7 say slot6 셋뿐이다! 사방에서 조여라!
134 taoyuan_3_start taoyuan 1 3 stage_start 0 8 shake 0.4 1
135 taoyuan_3_start taoyuan 1 3 stage_start 0 9 say liubei 사방이 막혔소. 등을 맞대시오!
136 taoyuan_3_start taoyuan 1 3 stage_start 0 10 say zhangfei 잘됐다! 찾아다닐 수고를 덜었구나!
137 taoyuan_3_start taoyuan 1 3 stage_start 0 11 say guanyu 두 분은 내 뒤에. 길은 내가 열겠소. 끝 → 학습 안내(관우 스킬)로 이어지는 말
138 taoyuan_3_start taoyuan 1 3 stage_start 0 12 focus 0 0 0.5 1
139 taoyuan_3_win taoyuan 1 3 win 0 1 wait 0.5
140 taoyuan_3_win taoyuan 1 3 win 0 2 fade 0.8 out
141 taoyuan_3_win taoyuan 1 3 win 0 3 bg bg_ev_peach 복숭아 동산 바닥(없으면 지금 바닥)
142 taoyuan_3_win taoyuan 1 3 win 0 4 show liubei 0 0.6 0 가운데 = 맏형
143 taoyuan_3_win taoyuan 1 3 win 0 5 show guanyu -1.4 -0.4 0
144 taoyuan_3_win taoyuan 1 3 win 0 6 show zhangfei 1.4 -0.4 0
145 taoyuan_3_win taoyuan 1 3 win 0 7 focus 0 0 0 1.3
146 taoyuan_3_win taoyuan 1 3 win 0 8 fade 1.0 in
147 taoyuan_3_win taoyuan 1 3 win 0 9 caption 2.5 장비의 집 뒤 · 복숭아 동산
148 taoyuan_3_win taoyuan 1 3 win 0 10 say liubei 우리 셋, 성은 달라도 뜻은 하나요.
149 taoyuan_3_win taoyuan 1 3 win 0 11 say guanyu 위로는 나라에 보답하고,
150 taoyuan_3_win taoyuan 1 3 win 0 12 say zhangfei 아래로는 백성을 편안케 하리라!
151 taoyuan_3_win taoyuan 1 3 win 0 13 say liubei 한날한시에 태어나지는 못했어도,
152 taoyuan_3_win taoyuan 1 3 win 0 14 say guanyu 한날한시에 죽기를 바라노라.
153 taoyuan_3_win taoyuan 1 3 win 0 15 shake 0.3 0.5 세 사람이 잔을 올림
154 taoyuan_3_win taoyuan 1 3 win 0 16 say zhangfei 오늘부터 유비 형님이 맏형이오!
155 taoyuan_3_win taoyuan 1 3 win 0 17 emote zhangfei laugh
156 taoyuan_3_win taoyuan 1 3 win 0 18 say guanyu 형님, 아우의 절을 받으시오.
157 taoyuan_3_win taoyuan 1 3 win 0 19 say liubei 두 아우와 함께라면 두렵지 않소.
158 taoyuan_3_win taoyuan 1 3 win 0 20 focus 0 0 1.0 1
159 taoyuan_3_win taoyuan 1 3 win 0 21 fade 0.8 out 끝 → 결말 카드(tutorial_stage 1,3 s_clear_ko)

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: faf8918ecf1bffb4f8193b49f215ef9d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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,연출 인물 그림이 없을 때 대신 그리는 원 지름(월드 칸)
1 s_key f_value Memo
2 skip_show_after_sec 0.5 건너뛰기 버튼이 나타나는 시간(초)
3 letterbox_ratio 0.08 위아래 검은 띠 높이(화면 높이 비율 · 재화 바·전투 HUD 를 가림 · 보스 등장 letterbox_ratio 와 같게)
4 fade_sec 0.6 fade 의 f_sec 빈칸일 때(초)
5 caption_sec 2.5 caption 의 f_sec 빈칸일 때 자막 유지(초 · 누르면 넘어감)
6 caption_fade_sec 0.3 자막 띠가 나타나고 사라지는 시간(초)
7 caption_band_height 150 자막 띠 높이(px · 1080×1920 기준)
8 caption_band_top 260 자막 띠 위 끝이 화면 위에서 떨어진 거리(px)
9 caption_band_alpha 0.6 자막 띠 검은 바탕 진하기(0~1)
10 caption_font_size 48 자막 글자 크기(px)
11 show_sec 0 show·hide 의 f_sec 빈칸일 때 나타남·사라짐 시간(초 · 0 = 바로)
12 move_speed 4 move 의 f_sec 빈칸일 때 걷는 빠르기(칸/초)
13 focus_sec 0.6 focus 의 f_sec 빈칸일 때 카메라 이동 시간(초)
14 return_sec 0.6 연출 끝에 판 기본 화면으로 돌아가는 시간(초)
15 attack_sec 0.5 attack 의 f_sec 빈칸일 때 돌진~복귀 전체(초)
16 attack_dash_ratio 0.3 attack 전체 중 돌진(=복귀) 비율 · 나머지 = 맞댄 채 멈춤
17 attack_reach_ratio 0.9 돌진이 멈추는 거리 = 두 반지름 합 × 이 값
18 hit_sec 0.25 hit 뒤 기다림(초)
19 faint_sec 0.4 faint 뒤 기다림(초)
20 faint_angle 80 기절 = 그림을 눕히는 각도(도 · 발 기준)
21 faint_dark 0.35 기절 = 그림을 어둡게 하는 정도(0~1)
22 shake_sec 0.3 shake 의 f_sec 빈칸일 때(초)
23 shake_base 0.2 shake 세기 1 = 이 값(CameraController.Shake 세기 · 보스 컷인 cutin_shake 0.25 와 비슷하게)
24 wait_sec 0.5 wait 의 f_sec 빈칸일 때(초)
25 emote_sec 1.0 머리 위 표시가 떠 있는 시간(초)
26 emote_wait_sec 0.3 emote 뒤 다음 줄까지 기다림(초 · 표시는 emote_sec 동안 남음)
27 emote_world_height 0.6 머리 위 표시 글자 높이(월드 칸)
28 emote_offset 0.25 머리 끝에서 표시까지 높이(월드 칸)
29 emote_hop 0.15 표시가 튀어 오르는 높이(월드 칸)
30 extra_shape_size 0.8 연출 인물 그림이 없을 때 대신 그리는 원 지름(월드 칸)

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a6e045739d21ff445887e13f58327952
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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회

1 n_chapter n_stage s_desc_ko Memo
2 1 1 의용군 방이 붙은 탁현 저잣거리에서 장비가 황건 앞잡이 건달들에게 둘러싸였다. 탁현의 주점에서 황건 앞잡이 건달의 기습에 장비가 쓰러졌다. 유비가 자리에서 일어선다. 탁현 저잣거리 — 장비 구출 · 튜토리얼(조작) · 근거 연의 1회 각색(방 앞 만남 → 장비 구출) 탁현 주점 — 장비 구출 · 튜토리얼(조작) · 근거 연의 1회 각색(방 앞 만남 → 장비 구출)
3 1 2 탁현 외곽 고갯길에서 떠돌던 무사 관우가 황건 척후들에게 포위되었다. 먼저 길을 나선 관우가 고갯길에서 피란민을 지키다 황건 척후들에게 포위되었다. 탁현 고갯길 — 관우 구출 · 튜토리얼(아군 밀치기 · 3턴) · 근거 연의 1회 각색(주막 만남 → 관우 구출)
4 1 3 셋이 함께 누상촌으로 돌아가던 길에 황건 무리가 사방에서 몰려왔다. 누상촌 어귀 — 포위 돌파 · 튜토리얼(장수 스킬) · 근거 연의 1회 각색 · 클리어 뒤 도원결의
5 1 4 도원에서 의형제를 맺은 세 사람이 대흥산에 닿자 정원지의 부장 등무가 앞을 막았다. 대흥산 — 등무 · 엘리트 · 튜토리얼(상성) · 근거 연의 1회
6 1 5 부장을 잃고 분노한 정원지가 황건 5만을 이끌고 산기슭으로 몰려왔다. 대흥산 전투 — 정원지 · 보스 · 튜토리얼(보스·바위) · 근거 연의 1회

View File

@ -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

View File

@ -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);
}
/// <summary>승리 — 시나리오 이벤트 win 이 있으면(처음 깰 때) 그 연출 뒤에 StageClear(결과 · 결말 카드는 연출 뒤).</summary>
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);
}
/// <summary>선제 판의 첫 적 턴(턴 수 · 제한 턴을 세지 않는다).</summary>
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) // 학습 판: 구출 대상이 쓰러지면 실패

View File

@ -79,6 +79,38 @@ namespace TKS
MakeWall("WallRight", new Vector2(w * 0.5f + wallT * 0.5f, 0f), new Vector2(wallT, h));
}
SpriteRenderer eventArt;
/// <summary>
/// 시나리오 이벤트 바닥(scenario_event bg 명령 · Resources/Board/&lt;name&gt; · 2026-11-18) — 판 배경 위(−19 · 격자·기믹 아래)에 전장 크기로 덮는다.
/// 그림이 없으면 지금 바닥 그대로(false). 다음 전투 시작(BattleManager.Begin)에 ClearEventArt.
/// </summary>
public bool SetEventArt(string name)
{
var art = string.IsNullOrEmpty(name) ? null : Resources.Load<Sprite>("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);
}
/// <summary>이벤트 바닥이 켜져 있는가(테스트·캡처 확인용).</summary>
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);

View File

@ -3,13 +3,14 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using static TKS.ScenarioUi;
namespace TKS
{
/// <summary>
/// 보스 스테이지 시작 연출(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 가상 실행) 중에는 아무것도 하지 않는다.
/// </summary>
@ -23,8 +24,16 @@ namespace TKS
List<Unit> bosses = new List<Unit>();
List<ScenarioData.BossLine> lines;
bool withCutin;
bool skip;
int taps;
readonly TalkState st = new TalkState();
List<ScenarioData.TalkLine> 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<SpriteRenderer, Color> dimmed = new Dictionary<SpriteRenderer, Color>();
@ -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<Sprite>(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<Image>();
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<Text>();
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<Outline>();
o.effectColor = col;
o.effectDistance = new Vector2(d, -d);
var o2 = t.gameObject.AddComponent<Outline>();
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<Button>().onClick.AddListener(() => taps++);
catcher.gameObject.AddComponent<Button>().onClick.AddListener(() => st.Taps++);
// 움직이는 것 = Frame 층 하나에 모음(UI 캔버스 규칙)
fx = UiLayer.Group("Fx", root, UiRate.Frame);
dim = Full("Dim", fx, null, new Color(0f, 0f, 0f, 0f));
@ -166,7 +120,7 @@ namespace TKS
var sb = Img("Skip", root, null, new Color(0f, 0f, 0f, 0.6f), new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(-40f, -60f), new Vector2(190f, 80f));
sb.raycastTarget = true;
skipBtn = sb.gameObject.AddComponent<Button>();
skipBtn.onClick.AddListener(() => skip = true);
skipBtn.onClick.AddListener(() => st.Skip = true);
Txt(sb.transform, "건너뛰기 >>", 34, Color.white, TextAnchor.MiddleCenter, Vector2.zero, new Vector2(190f, 80f), UISkin.TitleFont);
sb.gameObject.SetActive(false);
}
@ -186,6 +140,7 @@ namespace TKS
if (i > 0) yield return Focus(Target(i), C("second_boss_move_sec"), false);
if (!skip) yield return Bubble(i);
}
if (!skip && withTalk) yield return Talk();
yield return Return();
Finish();
}
@ -203,12 +158,6 @@ namespace TKS
return u != null ? u.Position : (Vector2)camStart;
}
static float Ease(float k)
{
k = Mathf.Clamp01(k);
return k * k * (3f - 2f * k);
}
IEnumerator Warn()
{
float dur = C("warn_sec"), bar = barTop.rectTransform.sizeDelta.y;
@ -369,70 +318,60 @@ namespace TKS
var u = i < bosses.Count ? bosses[i] : null;
var l = lines[i];
if (u == null || string.IsNullOrEmpty(l.line)) yield break;
float fs = C("bubble_font_size");
var bub = Img("Bubble", fx, Spr("bubble"), Color.white, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0f), Vector2.zero, new Vector2(640f, fs * 2f * 1.35f + 80f));
bub.type = Image.Type.Sliced;
var tail = Img("Tail", bub.transform, Spr("bubble_tail"), Color.white, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 1f), new Vector2(0f, 4f), new Vector2(54f, 40f));
var tag = Img("NameTag", bub.transform, Spr("name_tag"), new Color(0.75f, 0.16f, 0.12f), new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(0f, 0.5f), new Vector2(24f, 0f), new Vector2(0f, 52f));
tag.type = Image.Type.Sliced;
var tagText = Txt(tag.transform, u.DisplayName, 30, Color.white, TextAnchor.MiddleCenter, Vector2.zero, new Vector2(200f, 52f), UISkin.TitleFont);
tag.rectTransform.sizeDelta = new Vector2(tagText.preferredWidth + 44f, 52f);
tagText.rectTransform.sizeDelta = tag.rectTransform.sizeDelta;
var body = Txt(bub.transform, "", Mathf.RoundToInt(fs), new Color(0.24f, 0.13f, 0.07f), TextAnchor.MiddleCenter, new Vector2(0f, -4f), new Vector2(580f, fs * 2f * 1.35f + 20f), UISkin.TitleFont);
float popT = C("bubble_pop_sec"), from = C("bubble_pop_from"), peak = C("bubble_pop_peak");
taps = 0;
for (float t = 0f; t < popT && !skip; t += Time.unscaledDeltaTime)
{
float k = t / popT;
bub.rectTransform.localScale = Vector3.one * (k < 0.7f ? Mathf.Lerp(from, peak, k / 0.7f) : Mathf.Lerp(peak, 1f, (k - 0.7f) / 0.3f));
Place(bub.rectTransform, tail.rectTransform, u);
yield return null;
}
bub.rectTransform.localScale = Vector3.one;
float cps = Mathf.Max(1f, C("bubble_char_per_sec"));
float shown = 0f;
while (shown < l.line.Length && !skip && taps == 0)
{
shown += cps * Time.unscaledDeltaTime;
body.text = l.line.Substring(0, Mathf.Min(l.line.Length, Mathf.FloorToInt(shown)));
Place(bub.rectTransform, tail.rectTransform, u);
yield return null;
}
body.text = l.line;
if (taps > 0) taps = 0; // 탭 1 = 전부 표시 · 다음 탭 = 닫기
float hold = C("bubble_hold_sec");
for (float t = 0f; t < hold && !skip && taps == 0; t += Time.unscaledDeltaTime)
{
Place(bub.rectTransform, tail.rectTransform, u);
yield return null;
}
var cg = bub.gameObject.AddComponent<CanvasGroup>();
float fade = C("bubble_fade_sec");
for (float t = 0f; t < fade && !skip; t += Time.unscaledDeltaTime)
{
cg.alpha = 1f - t / fade;
yield return null;
}
Destroy(bub.gameObject);
yield return Say(fx, root, cc.Cam, () => Head(u), u.DisplayName, BossTag, l.line, st);
}
/// <summary>말풍선 = 보스 머리 위 · 화면 밖이면 안쪽으로 밀어 넣고 꼬리만 보스를 따라감.</summary>
void Place(RectTransform bub, RectTransform tail, Unit u)
/// <summary>
/// 보스 등장 주고받기(boss_talk.csv · 2026-11-18 PD 「보스 등장 대사 구성 · 주고받기」) — n_order 순 · 같은 order 의 줄은 대안(화자가 전장에 있는 첫 줄).
/// 화자 = 보스 그림 id · 영웅 id · ally(아군 첫 유닛) · 화자로 카메라를 옮기고 어둡게 한 것을 풀고 말풍선.
/// </summary>
IEnumerator Talk()
{
var cam = cc.Cam;
Vector2 head = u.Position + new Vector2(0f, u.Radius * 1.6f);
Vector2 screen = RectTransformUtility.WorldToScreenPoint(cam, head);
Vector2 local;
RectTransformUtility.ScreenPointToLocalPointInRectangle(root, screen, cam, out local);
var half = root.rect.size * 0.5f;
var size = bub.sizeDelta;
float x = Mathf.Clamp(local.x, -half.x + size.x * 0.5f + 20f, half.x - size.x * 0.5f - 20f);
float y = Mathf.Clamp(local.y + 40f, -half.y + 40f, half.y - size.y - 40f);
var p = new Vector2(x, y);
if (bub.anchoredPosition != p) bub.anchoredPosition = p;
var tp = new Vector2(Mathf.Clamp(local.x - x, -size.x * 0.5f + 40f, size.x * 0.5f - 40f), 4f);
if (tail.anchoredPosition != tp) tail.anchoredPosition = tp;
int i = 0;
while (i < talks.Count && !skip)
{
int ord = talks[i].order;
ScenarioData.TalkLine pick = null;
Unit who = null;
for (; i < talks.Count && talks[i].order == ord; i++)
{
if (pick != null) continue;
var u = Speaker(talks[i].speaker);
if (u == null) continue;
pick = talks[i];
who = u;
}
if (pick == null) continue;
Undim(who);
yield return Focus(who.Position, C("talk_move_sec"), false);
if (!skip) yield return Say(fx, root, cc.Cam, () => Head(who), who.DisplayName, who.Faction == Faction.Enemy ? BossTag : AllyTag, pick.text, st);
}
}
Unit Speaker(string id)
{
if (id == "ally")
{
foreach (var u in battle.AliveUnits(Faction.Player))
if (!u.Npc) return u;
return null;
}
foreach (var u in battle.AliveUnits(Faction.Enemy))
if (u.ArtId == id || (u.HeroId.Length > 0 && u.HeroId == id)) return u;
foreach (var u in battle.AliveUnits(Faction.Player))
if (!u.Npc && (u.HeroId == id || u.ArtId == id)) return u;
return null;
}
void Undim(Unit u)
{
foreach (var sr in u.GetComponentsInChildren<SpriteRenderer>())
{
Color c;
if (!dimmed.TryGetValue(sr, out c)) continue;
sr.color = c;
dimmed.Remove(sr);
}
}
IEnumerator Return()

View File

@ -9,6 +9,8 @@ namespace TKS
/// SOT = 조직 레포 `공유/기획팀_산출물/삼국지슬링샷/tables/` → 사본 `Assets/Resources/Scenario/*.csv`(utf-8-sig · 고친 뒤 기획 tables 도 같이).
/// stage_story.csv = n_chapter,n_stage,s_desc_ko,Memo · boss_intro.csv = n_chapter,n_stage,n_order,s_boss_id,s_title_ko,s_line_ko,Memo ·
/// boss_intro_config.csv = s_key,f_value,Memo — 값은 전부 표에서 읽는다(C45 · 코드에 값 없음).
/// 2026-11-18 추가: boss_talk.csv(보스 등장 주고받기) · scenario_event.csv(시나리오 이벤트 명령) · scenario_actor.csv(연출 이름표) ·
/// scenario_emote.csv(머리 위 표시) · scenario_event_config.csv(이벤트 연출 값).
/// </summary>
public static class ScenarioData
{
@ -24,10 +26,61 @@ namespace TKS
public string line;
}
/// <summary>보스 등장 주고받기 한 줄(boss_talk.csv · 2026-11-18 PD 「보스 등장 대사 구성」) — 같은 n_order 의 줄은 대안(앞 줄의 화자가 전장에 없으면 다음 줄).</summary>
public class TalkLine
{
public int chapter;
public int stage;
public int order;
/// <summary>보스 그림 id(ArtId) · 영웅 id(HeroId) · ally(아군 첫 유닛).</summary>
public string speaker;
public string text;
}
/// <summary>시나리오 이벤트 명령 한 줄(scenario_event.csv · 2026-11-18 PD 「연의전기 시나리오 이벤트」 · 요청서 §4).</summary>
public class EventRow
{
public string id;
public string battle;
public int chapter;
public int stage;
public string trigger;
public int turn;
public int order;
public string cmd;
public string actor;
public string target;
public float x = float.NaN;
public float y = float.NaN;
public float sec = float.NaN;
public string arg;
public string text;
public bool HasPos
{
get { return !float.IsNaN(x) && !float.IsNaN(y); }
}
}
public class Emote
{
public string glyph;
public Color color;
}
/// <summary>표가 약속한 명령 · 발동(요청서 §4) — 이 밖의 값은 데이터 검사 실패.</summary>
public static readonly string[] EventCommands = { "fade", "caption", "bg", "hide", "show", "extra", "move", "face", "say", "emote", "focus", "attack", "hit", "faint", "wake", "shake", "wait", "tap" };
public static readonly string[] EventTriggers = { "stage_start", "turn_start", "win" };
static bool loaded;
static readonly Dictionary<long, string> desc = new Dictionary<long, string>();
static readonly List<BossLine> bosses = new List<BossLine>();
static readonly List<TalkLine> talks = new List<TalkLine>();
static readonly List<EventRow> events = new List<EventRow>();
static readonly Dictionary<string, string> actorNames = new Dictionary<string, string>();
static readonly Dictionary<string, Emote> emotes = new Dictionary<string, Emote>();
static readonly Dictionary<string, float> cfg = new Dictionary<string, float>();
static readonly Dictionary<string, float> evCfg = new Dictionary<string, float>();
static readonly HashSet<string> missingReported = new HashSet<string>();
/// <summary>읽기 오류(형식 · 빠진 칸 · 없는 키) — 데이터 검사 테스트가 0 인지 본다.</summary>
@ -45,7 +98,12 @@ namespace TKS
loaded = true;
desc.Clear();
bosses.Clear();
talks.Clear();
events.Clear();
actorNames.Clear();
emotes.Clear();
cfg.Clear();
evCfg.Clear();
Errors.Clear();
missingReported.Clear();
@ -73,9 +131,91 @@ namespace TKS
if (float.TryParse(Get(r, "f_value"), NumberStyles.Float, CultureInfo.InvariantCulture, out v)) cfg[Get(r, "s_key")] = v;
else Errors.Add("boss_intro_config.csv 행 " + Get(r, "#") + ": f_value 숫자 아님");
}
foreach (var r in Rows("scenario_event_config"))
{
float v;
if (float.TryParse(Get(r, "f_value"), NumberStyles.Float, CultureInfo.InvariantCulture, out v)) evCfg[Get(r, "s_key")] = v;
else Errors.Add("scenario_event_config.csv 행 " + Get(r, "#") + ": f_value 숫자 아님");
}
int maxChars = cfg.ContainsKey("bubble_max_chars") ? Mathf.RoundToInt(cfg["bubble_max_chars"]) : 0;
foreach (var r in Rows("boss_talk"))
{
var t = new TalkLine
{
chapter = Int(r, "n_chapter", "boss_talk"),
stage = Int(r, "n_stage", "boss_talk"),
order = Int(r, "n_order", "boss_talk"),
speaker = Get(r, "s_speaker"),
text = Get(r, "s_text_ko"),
};
if (t.speaker.Length == 0) Errors.Add("boss_talk.csv 행 " + Get(r, "#") + ": s_speaker 빈칸");
if (maxChars > 0 && t.text.Length > maxChars) Errors.Add("boss_talk.csv 행 " + Get(r, "#") + ": 대사 " + t.text.Length + "자 > bubble_max_chars " + maxChars);
talks.Add(t);
}
// 같은 n_order 의 대안 줄은 표에 적힌 순서를 지킨다(안정 정렬)
var sortedTalks = new List<TalkLine>(talks);
talks.Clear();
talks.AddRange(System.Linq.Enumerable.OrderBy(sortedTalks, t => t.chapter * 1000000L + t.stage * 1000L + t.order));
foreach (var r in Rows("scenario_event"))
{
var e = new EventRow
{
id = Get(r, "s_event_id"),
battle = Get(r, "s_battle_id"),
chapter = Int(r, "n_chapter", "scenario_event"),
stage = Int(r, "n_stage", "scenario_event"),
trigger = Get(r, "e_trigger"),
turn = OptInt(Get(r, "n_turn")),
order = Int(r, "n_order", "scenario_event"),
cmd = Get(r, "e_cmd"),
actor = Get(r, "s_actor"),
target = Get(r, "s_target"),
x = OptFloat(Get(r, "f_x")),
y = OptFloat(Get(r, "f_y")),
sec = OptFloat(Get(r, "f_sec")),
arg = Get(r, "s_arg"),
text = Get(r, "s_text_ko"),
};
string at = "scenario_event.csv 행 " + Get(r, "#") + "(" + e.id + " " + e.order + "): ";
if (System.Array.IndexOf(EventCommands, e.cmd) < 0) Errors.Add(at + "모르는 명령 " + e.cmd);
if (System.Array.IndexOf(EventTriggers, e.trigger) < 0) Errors.Add(at + "모르는 발동 " + e.trigger);
if (e.cmd == "say" && maxChars > 0 && e.text.Length > maxChars) Errors.Add(at + "대사 " + e.text.Length + "자 > bubble_max_chars " + maxChars);
if ((e.cmd == "say" || e.cmd == "move" || e.cmd == "extra" || e.cmd == "faint" || e.cmd == "wake" || e.cmd == "attack" || e.cmd == "emote" || e.cmd == "face") && e.actor.Length == 0) Errors.Add(at + e.cmd + " 에 s_actor 빈칸");
events.Add(e);
}
events.Sort((a, b) => string.CompareOrdinal(a.id, b.id) != 0 ? string.CompareOrdinal(a.id, b.id) : a.order.CompareTo(b.order));
foreach (var r in Rows("scenario_actor"))
actorNames[ActorKey(Int(r, "n_chapter", "scenario_actor"), Int(r, "n_stage", "scenario_actor"), Get(r, "s_actor"))] = Get(r, "s_name_ko");
foreach (var r in Rows("scenario_emote"))
{
Color c;
if (!ColorUtility.TryParseHtmlString(Get(r, "s_color"), out c))
{
Errors.Add("scenario_emote.csv 행 " + Get(r, "#") + ": s_color 색 아님");
c = Color.white;
}
emotes[Get(r, "s_id")] = new Emote { glyph = Get(r, "s_glyph"), color = c };
}
foreach (var e in Errors) Debug.LogError("[TKS] 시나리오 표 " + e);
}
static string ActorKey(int chapter, int stage, string actor)
{
return chapter + "-" + stage + ":" + actor;
}
static float OptFloat(string s)
{
float v;
return s.Length > 0 && float.TryParse(s, NumberStyles.Float, CultureInfo.InvariantCulture, out v) ? v : float.NaN;
}
static int OptInt(string s)
{
int v;
return s.Length > 0 && int.TryParse(s, NumberStyles.Integer, CultureInfo.InvariantCulture, out v) ? v : 0;
}
static List<Dictionary<string, string>> Rows(string file)
{
var ta = Resources.Load<TextAsset>(Root + file);
@ -158,5 +298,80 @@ namespace TKS
Load();
return cfg.ContainsKey(key);
}
/// <summary>보스 등장 주고받기 줄(n_order 순 · 같은 order = 대안 · 없으면 빈 목록).</summary>
public static List<TalkLine> Talks(int chapter, int stage)
{
Load();
return talks.FindAll(t => t.chapter == chapter && t.stage == stage);
}
public static IList<TalkLine> AllTalks
{
get
{
Load();
return talks;
}
}
/// <summary>그 판 · 그 발동의 이벤트 묶음(s_event_id 별 · n_order 순). turn_start 는 n_turn 이 같은 것만.</summary>
public static List<List<EventRow>> Events(int chapter, int stage, string trigger, int turn)
{
Load();
var outList = new List<List<EventRow>>();
List<EventRow> cur = null;
foreach (var e in events)
{
if (e.chapter != chapter || e.stage != stage || e.trigger != trigger) continue;
if (trigger == "turn_start" && e.turn != turn) continue;
if (cur == null || cur[0].id != e.id)
{
cur = new List<EventRow>();
outList.Add(cur);
}
cur.Add(e);
}
return outList;
}
public static IList<EventRow> AllEvents
{
get
{
Load();
return events;
}
}
/// <summary>연출 배우의 이름표(scenario_actor.csv) — 없으면 "".</summary>
public static string ActorName(int chapter, int stage, string actor)
{
Load();
string s;
return actorNames.TryGetValue(ActorKey(chapter, stage, actor), out s) ? s : "";
}
/// <summary>머리 위 표시(scenario_emote.csv · 그림 대신 글자) — 없으면 null.</summary>
public static Emote EmoteOf(string id)
{
Load();
Emote e;
return emotes.TryGetValue(id ?? "", out e) ? e : null;
}
/// <summary>이벤트 연출 값(scenario_event_config.csv) — 키가 없으면 콘솔 오류 1회 + 0.</summary>
public static float EvCfg(string key)
{
Load();
float v;
if (evCfg.TryGetValue(key, out v)) return v;
if (missingReported.Add("ev:" + key))
{
Errors.Add("scenario_event_config.csv 에 키 없음: " + key);
Debug.LogError("[TKS] scenario_event_config.csv 에 키 없음: " + key);
}
return 0f;
}
}
}

View File

@ -0,0 +1,680 @@
using System;
using System.Collections;
using System.Collections.Generic;
using TKS.OutGame;
using UnityEngine;
using UnityEngine.UI;
using static TKS.ScenarioUi;
namespace TKS
{
/// <summary>
/// 시나리오 이벤트 연출(2026-11-18 PD 「연의전기의 각 시나리오 이벤트를 기획 및 제작 · 1장 도원결의부터」 · 요청서 `연의전기_이벤트_요청서.md` §4).
/// 표 = scenario_event.csv(한 줄 = 명령 하나 · s_event_id 묶음 · n_order 순 차례 실행) · 이름표 = scenario_actor.csv · 머리 위 표시 = scenario_emote.csv ·
/// 값 = scenario_event_config.csv(C45 · 코드에 값 없음) · 말풍선 = ScenarioUi.Say(보스 등장과 같은 PD 확정 시안).
/// 발동 = stage_start(판이 놓인 직후 · 학습 안내 전 · Setup = 조작 잠금) · win(승리 직후 · 결과·결말 카드 전) · 처음 깰 때만(다시 하기 = 건너뜀) · 가상 실행·연무장 모드 제외.
/// 배우 = slot&lt;N&gt;(학습 판 배치 표 n_slot) · 영웅 id(그 판의 아군·구출 대상) · extra 로 만든 이름(연출 전용 · 끝나면 사라짐).
/// 건너뛰기 = 남은 명령을 기다림 없이 끝 상태로 적용(자리 · 숨김 · 바닥 · 기절) → stage_start 는 끝에 판 유닛을 시작 자리·보임으로 되돌림(요청서 약속 3).
/// </summary>
public class ScenarioEvent : MonoBehaviour
{
static ScenarioEvent current;
/// <summary>연출 중인가(테스트·캡처 확인용).</summary>
public static bool Running
{
get { return current != null; }
}
class Actor
{
public string key;
public Unit unit;
public GameObject extra;
public FrameAnimator anim;
public SpriteRenderer shape;
public string name;
public Color tag;
public Vector2 Pos
{
get { return unit != null ? unit.Position : (Vector2)extra.transform.position; }
set
{
if (unit != null) unit.Position = value;
else extra.transform.position = new Vector3(value.x, value.y, 0f);
}
}
public Vector2 Head
{
get
{
if (unit != null) return ScenarioUi.Head(unit);
return Pos + new Vector2(0f, anim != null ? anim.TopHeight : 0.8f);
}
}
/// <summary>쓰러뜨릴 그림(유닛 = 아트 묶음 · 도형 유닛 = View · 연출 인물 = 그림).</summary>
public Transform Body
{
get
{
if (unit != null) return unit.View == null ? unit.transform : (unit.View.Anim != null ? unit.View.Anim.transform : unit.View.transform);
return anim != null ? anim.transform : extra.transform;
}
}
public GameObject Visual
{
get { return unit != null ? (unit.View != null ? unit.View.gameObject : unit.gameObject) : extra; }
}
public void Face(Vector2 dir)
{
if (unit != null)
{
if (unit.View != null) unit.View.SetFacing(dir);
return;
}
if (anim != null && Mathf.Abs(dir.x) > 0.01f) anim.Renderer.flipX = dir.x < 0f;
}
}
BattleManager battle;
CameraController cc;
BalanceConfig.StageDef stage;
string trigger;
Action onDone;
List<List<ScenarioData.EventRow>> groups;
readonly TalkState st = new TalkState();
readonly Dictionary<string, Actor> actors = new Dictionary<string, Actor>();
readonly Dictionary<Unit, Vector2> startPos = new Dictionary<Unit, Vector2>();
// 기절 상태 = 연출 사이에 이어짐(stage_start 의 keep 기절 → 그 판 전투 동안 유지 → win 연출의 wake 가 풂) · 유닛이 사라지면 키가 null
static readonly Dictionary<Transform, Quaternion> fainted = new Dictionary<Transform, Quaternion>();
static readonly Dictionary<SpriteRenderer, Color> faintTint = new Dictionary<SpriteRenderer, Color>();
static readonly HashSet<Transform> faintKeep = new HashSet<Transform>();
readonly List<GameObject> temp = new List<GameObject>();
Vector3 camStart;
float viewStart;
RectTransform root, fx;
Image fade;
Image captionBand;
Text captionText;
Button skipBtn;
static readonly Color AllyTag = new Color(0.16f, 0.36f, 0.72f);
static readonly Color EnemyTag = new Color(0.75f, 0.16f, 0.12f);
static readonly Color ExtraTag = new Color(0.47f, 0.33f, 0.18f);
static float C(string k)
{
return ScenarioData.EvCfg(k);
}
bool skip
{
get { return st.Skip; }
}
/// <summary>켜짐 규칙 = 학습 판과 같음(Auto = 메모리 세이브인 자동 테스트·검증 캡처에서는 꺼짐 · 1-1 을 일반 전투로 쓰는 기존 테스트 보호 · 연출 확인 = ForceOn).</summary>
public static TutorialMode Mode = TutorialMode.Auto;
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.SubsystemRegistration)]
static void ResetStatics()
{
Mode = TutorialMode.Auto;
current = null;
fainted.Clear();
faintTint.Clear();
faintKeep.Clear();
}
public static bool Enabled
{
get { return Mode == TutorialMode.ForceOn || (Mode == TutorialMode.Auto && !SaveStore.MemoryOnly); }
}
/// <summary>이 판 · 이 발동에 틀 연출이 있는가(켜짐 · 표 행 있음 · 처음 깸 · 가상 실행·연무장 아님 · slot 배우가 있으면 학습 판 배치가 켜져 있을 때만).</summary>
public static bool Wants(BattleManager bm, BalanceConfig.StageDef stage, string trigger, bool cleared, int turn = 0)
{
if (!Enabled || Sim.Active || bm == null || stage == null || bm.Mode != null || cleared) return false;
var g = ScenarioData.Events(stage.chapter, stage.stage, trigger, turn);
if (g.Count == 0) return false;
foreach (var list in g)
foreach (var e in list)
if ((e.actor.StartsWith("slot") || e.target.StartsWith("slot")) && bm.Tutorial == null) return false;
return true;
}
public static void Begin(BattleManager bm, BalanceConfig.StageDef stage, string trigger, Action onDone, int turn = 0)
{
Abort();
var cam = FindFirstObjectByType<CameraController>();
if (cam == null || cam.Cam == null)
{
onDone?.Invoke();
return;
}
var go = new GameObject("ScenarioEventUI");
var ev = go.AddComponent<ScenarioEvent>();
current = ev;
ev.battle = bm;
ev.cc = cam;
ev.stage = stage;
ev.trigger = trigger;
ev.onDone = onDone;
ev.groups = ScenarioData.Events(stage.chapter, stage.stage, trigger, turn);
ev.Build();
ev.StartCoroutine(ev.Run());
}
/// <summary>지금 실행 중인 줄(테스트·캡처 확인용 · 끝나면 int.MaxValue).</summary>
public static string CurrentId = "";
public static int CurrentOrder;
/// <summary>테스트·캡처: 화면 누름 1회.</summary>
public static void TapForTest()
{
if (current != null) current.st.Taps++;
}
/// <summary>테스트: 건너뛰기 버튼.</summary>
public static void SkipForTest()
{
if (current != null) current.st.Skip = true;
}
/// <summary>진행 중 연출을 바로 치움(전투 재시작 · 월드맵 복귀).</summary>
public static void Abort()
{
if (current == null) return;
current.Cleanup(false);
Destroy(current.gameObject);
current = null;
}
// ---------- 화면 ----------
void Build()
{
UiLayer.Root(gameObject, cc.Cam, 460, 0.38f, UiLayer.Reference, UiRate.Event);
root = (RectTransform)transform;
var catcher = Full("Tap", root, null, new Color(0f, 0f, 0f, 0f));
catcher.raycastTarget = true;
catcher.gameObject.AddComponent<Button>().onClick.AddListener(() => st.Taps++);
fx = UiLayer.Group("Fx", root, UiRate.Frame);
fade = Full("Fade", fx, null, new Color(0f, 0f, 0f, 0f));
// 위아래 검은 띠(연출 화면 · 재화 바·전투 HUD 를 가림 · 보스 등장과 같은 방식)
float bar = UiLayer.Reference.y * C("letterbox_ratio");
Img("BarTop", fx, null, Color.black, new Vector2(0f, 1f), new Vector2(1f, 1f), new Vector2(0.5f, 1f), Vector2.zero, new Vector2(0f, bar));
Img("BarBottom", fx, null, Color.black, new Vector2(0f, 0f), new Vector2(1f, 0f), new Vector2(0.5f, 0f), Vector2.zero, new Vector2(0f, bar));
float bandH = C("caption_band_height");
captionBand = Img("Caption", fx, null, new Color(0f, 0f, 0f, 0f), new Vector2(0f, 1f), new Vector2(1f, 1f), new Vector2(0.5f, 1f), new Vector2(0f, -C("caption_band_top")), new Vector2(0f, bandH));
captionText = Txt(captionBand.transform, "", Mathf.RoundToInt(C("caption_font_size")), new Color(1f, 0.95f, 0.85f, 0f), TextAnchor.MiddleCenter, Vector2.zero, new Vector2(UiLayer.Reference.x - 80f, bandH), UISkin.TitleFont);
var sb = Img("Skip", root, null, new Color(0f, 0f, 0f, 0.6f), new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(-40f, -60f), new Vector2(190f, 80f));
sb.raycastTarget = true;
skipBtn = sb.gameObject.AddComponent<Button>();
skipBtn.onClick.AddListener(() => st.Skip = true);
Txt(sb.transform, "건너뛰기 >>", 34, Color.white, TextAnchor.MiddleCenter, Vector2.zero, new Vector2(190f, 80f), UISkin.TitleFont);
sb.gameObject.SetActive(false);
}
// ---------- 흐름 ----------
readonly List<Canvas> hudHidden = new List<Canvas>();
/// <summary>연출 동안 전투 HUD(안내 줄 · 아래 패널 · 작은 지도)를 그리지 않음 — 끝나면 되돌림.</summary>
void HideHud(bool hide)
{
if (hide)
{
var hud = FindFirstObjectByType<BattleHUD>();
if (hud == null) return;
foreach (var c in hud.GetComponentsInChildren<Canvas>())
if (c.enabled)
{
c.enabled = false;
hudHidden.Add(c);
}
return;
}
foreach (var c in hudHidden)
if (c != null) c.enabled = true;
hudHidden.Clear();
}
IEnumerator Run()
{
camStart = cc.transform.position;
viewStart = cc.ViewHeight;
HideHud(true);
foreach (var u in battle.AliveUnits(Faction.Player)) startPos[u] = u.Position;
foreach (var u in battle.AliveUnits(Faction.Enemy)) startPos[u] = u.Position;
StartCoroutine(SkipButtonLater());
foreach (var list in groups)
foreach (var e in list)
{
CurrentId = e.id;
CurrentOrder = e.order;
yield return Do(e);
}
CurrentOrder = int.MaxValue;
yield return Return();
Cleanup(true);
var done = onDone;
onDone = null;
if (current == this) current = null;
Destroy(gameObject);
done?.Invoke();
}
IEnumerator SkipButtonLater()
{
float t = 0f, show = C("skip_show_after_sec");
while (t < show) { t += Time.unscaledDeltaTime; yield return null; }
if (skipBtn != null) skipBtn.gameObject.SetActive(true);
}
float Sec(ScenarioData.EventRow e, string key)
{
return float.IsNaN(e.sec) ? C(key) : Mathf.Max(0f, e.sec);
}
IEnumerator Do(ScenarioData.EventRow e)
{
switch (e.cmd)
{
case "fade": yield return Fade(e.arg == "out", Sec(e, "fade_sec")); break;
case "caption": yield return Caption(e.text, Sec(e, "caption_sec")); break;
case "bg": if (battle.Board != null) battle.Board.SetEventArt(e.arg); break;
case "hide": yield return Show(Get(e.actor), false, e, Sec(e, "show_sec")); break;
case "show": yield return Show(Get(e.actor), true, e, Sec(e, "show_sec")); break;
case "extra": MakeExtra(e); break;
case "move": yield return Move(Get(e.actor), e); break;
case "face":
{
var a = Get(e.actor);
if (a != null) a.Face(new Vector2(e.arg == "left" ? -1f : 1f, 0f));
break;
}
case "say":
{
var a = Get(e.actor);
if (a != null && !skip) yield return Say(fx, root, cc.Cam, () => a.Head, a.name, a.tag, e.text, st);
break;
}
case "emote": yield return EmoteAt(Get(e.actor), e.arg, false); break;
case "focus": yield return Focus(e); break;
case "attack": yield return Attack(Get(e.actor), Get(e.target), Sec(e, "attack_sec")); break;
case "hit":
{
var a = Get(string.IsNullOrEmpty(e.target) ? e.actor : e.target);
if (a != null && !skip)
{
if (a.unit != null && a.unit.View != null) a.unit.View.OnHit();
yield return Wait(C("hit_sec"));
}
break;
}
case "faint": Faint(Get(e.actor), true, e.arg == "keep"); if (!skip) yield return Wait(C("faint_sec")); break;
case "wake": Faint(Get(e.actor), false, false); break;
case "shake":
if (!skip)
{
float k = string.IsNullOrEmpty(e.arg) ? 1f : Num(e.arg, 1f);
cc.Shake(Sec(e, "shake_sec"), C("shake_base") * k);
}
break;
case "wait": yield return Wait(Sec(e, "wait_sec")); break;
case "tap":
st.Taps = 0;
while (!skip && st.Taps == 0) yield return null;
st.Taps = 0;
break;
}
}
static float Num(string s, float def)
{
float v;
return float.TryParse(s, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out v) ? v : def;
}
// ---------- 배우 ----------
Actor Get(string key)
{
if (string.IsNullOrEmpty(key)) return null;
Actor a;
if (actors.TryGetValue(key, out a)) return a;
Unit u = null;
if (key.StartsWith("slot"))
{
int slot;
if (battle.Tutorial != null && int.TryParse(key.Substring(4), out slot)) u = battle.Tutorial.UnitAt(slot);
}
else
{
foreach (var f in new[] { Faction.Player, Faction.Enemy })
foreach (var x in battle.AliveUnits(f))
if (u == null && (x.HeroId == key || x.ArtId == key)) u = x;
}
if (u == null)
{
Debug.LogWarning("[TKS] 시나리오 이벤트: 배우 없음 " + key + " (" + stage.chapter + "-" + stage.stage + ")");
return null;
}
string nm = ScenarioData.ActorName(stage.chapter, stage.stage, key);
a = new Actor { key = key, unit = u, name = nm.Length > 0 ? nm : u.DisplayName, tag = u.Faction == Faction.Enemy ? EnemyTag : AllyTag };
actors[key] = a;
return a;
}
void MakeExtra(ScenarioData.EventRow e)
{
var go = new GameObject("Ev_" + e.actor);
temp.Add(go);
var pos = e.HasPos ? new Vector2(e.x, e.y) : Vector2.zero;
go.transform.position = new Vector3(pos.x, pos.y, 0f);
var a = new Actor { key = e.actor, extra = go, tag = ExtraTag };
string nm = ScenarioData.ActorName(stage.chapter, stage.stage, e.actor);
a.name = nm.Length > 0 ? nm : e.actor;
var art = UnitArt.Load(e.arg);
if (art != null)
{
var ago = new GameObject("Art");
ago.transform.SetParent(go.transform, false);
a.anim = ago.AddComponent<FrameAnimator>();
a.anim.Setup(art, battle.Config.unitArtHeight, 0, battle.Config.mountedArtMaxTop);
a.anim.SetIdle("front_idle");
a.anim.PlayIdle();
}
else
{
Debug.LogWarning("[TKS] 시나리오 이벤트: 그림 없음 " + e.arg + " → 도형");
a.shape = ProceduralSprites.NewSprite(go.transform, "Body", ProceduralSprites.Circle, ExtraTag, C("extra_shape_size"), 0);
}
actors[e.actor] = a;
}
IEnumerator Show(Actor a, bool on, ScenarioData.EventRow e, float dur)
{
if (a == null) yield break;
if (on && e.HasPos) a.Pos = new Vector2(e.x, e.y);
var vis = a.Visual;
if (vis == null) yield break;
var rends = vis.GetComponentsInChildren<SpriteRenderer>(true);
if (on) vis.SetActive(true);
if (dur > 0f && !skip)
{
var baseA = new float[rends.Length];
for (int i = 0; i < rends.Length; i++) baseA[i] = rends[i].color.a;
for (float t = 0f; t < dur && !skip; t += Time.unscaledDeltaTime)
{
float k = on ? t / dur : 1f - t / dur;
for (int i = 0; i < rends.Length; i++)
{
var c = rends[i].color;
rends[i].color = new Color(c.r, c.g, c.b, baseA[i] * k);
}
yield return null;
}
for (int i = 0; i < rends.Length; i++)
{
var c = rends[i].color;
rends[i].color = new Color(c.r, c.g, c.b, baseA[i]);
}
}
if (!on) vis.SetActive(false);
}
IEnumerator Move(Actor a, ScenarioData.EventRow e)
{
if (a == null || !e.HasPos) yield break;
Vector2 p0 = a.Pos, p1 = new Vector2(e.x, e.y);
var d = p1 - p0;
if (d.sqrMagnitude > 0.0001f) a.Face(d);
float dur = float.IsNaN(e.sec) ? d.magnitude / Mathf.Max(0.01f, C("move_speed")) : Mathf.Max(0f, e.sec);
for (float t = 0f; t < dur && !skip; t += Time.unscaledDeltaTime)
{
a.Pos = Vector2.Lerp(p0, p1, Ease(t / dur));
yield return null;
}
a.Pos = p1;
}
IEnumerator Attack(Actor a, Actor b, float dur)
{
if (a == null || b == null || skip) yield break;
Vector2 p0 = a.Pos;
var d = b.Pos - p0;
float reach = (a.unit != null ? a.unit.Radius : 0.4f) + (b.unit != null ? b.unit.Radius : 0.4f);
Vector2 hitAt = d.magnitude > reach ? b.Pos - d.normalized * reach * C("attack_reach_ratio") : p0;
a.Face(d);
if (a.unit != null && a.unit.View != null) a.unit.View.PlayAttack();
float go = dur * C("attack_dash_ratio");
for (float t = 0f; t < go && !skip; t += Time.unscaledDeltaTime)
{
a.Pos = Vector2.Lerp(p0, hitAt, Ease(t / go));
yield return null;
}
a.Pos = hitAt;
yield return Wait(dur - go * 2f);
for (float t = 0f; t < go && !skip; t += Time.unscaledDeltaTime)
{
a.Pos = Vector2.Lerp(hitAt, p0, Ease(t / go));
yield return null;
}
a.Pos = p0;
}
void Faint(Actor a, bool on, bool keep)
{
if (a == null) return;
var body = a.Body;
if (on)
{
if (!fainted.ContainsKey(body)) fainted[body] = body.localRotation;
body.localRotation = Quaternion.Euler(0f, 0f, C("faint_angle"));
float dark = C("faint_dark");
foreach (var sr in body.GetComponentsInChildren<SpriteRenderer>())
{
if (faintTint.ContainsKey(sr)) continue;
faintTint[sr] = sr.color;
var c = sr.color;
sr.color = new Color(c.r * (1f - dark), c.g * (1f - dark), c.b * (1f - dark), c.a);
}
if (keep) faintKeep.Add(body);
var stars = Glyph(a, "dizzy", true);
if (stars != null)
{
stars.name = "FaintStars";
if (!keep) temp.Add(stars);
}
return;
}
Unfaint(body);
var holder = a.unit != null ? a.unit.transform : a.extra.transform;
var old = holder.Find("FaintStars");
if (old != null) Destroy(old.gameObject);
}
static void Unfaint(Transform body)
{
Quaternion r;
if (fainted.TryGetValue(body, out r)) body.localRotation = r;
fainted.Remove(body);
faintKeep.Remove(body);
var keys = new List<SpriteRenderer>(faintTint.Keys);
foreach (var sr in keys)
{
if (sr == null)
{
faintTint.Remove(sr);
continue;
}
if (!sr.transform.IsChildOf(body)) continue;
sr.color = faintTint[sr];
faintTint.Remove(sr);
}
}
// ---------- 머리 위 표시 ----------
GameObject Glyph(Actor a, string id, bool persistent)
{
var em = ScenarioData.EmoteOf(id);
if (a == null || em == null) return null;
var parent = a.unit != null ? a.unit.transform : a.extra.transform;
var tm = TextUtil.CreateWorldText(parent, em.glyph, C("emote_world_height"), em.color, 6);
tm.transform.position = (Vector3)(a.Head + new Vector2(0f, C("emote_offset"))) + new Vector3(0f, 0f, 0f);
if (!persistent) temp.Add(tm.gameObject);
return tm.gameObject;
}
IEnumerator EmoteAt(Actor a, string id, bool persistent)
{
if (a == null || skip) yield break;
var g = Glyph(a, id, persistent);
if (g == null) yield break;
StartCoroutine(EmoteLife(g, C("emote_sec")));
yield return Wait(C("emote_wait_sec"));
}
IEnumerator EmoteLife(GameObject g, float life)
{
var p0 = g.transform.localPosition;
float hop = C("emote_hop");
for (float t = 0f; t < life && g != null; t += Time.unscaledDeltaTime)
{
g.transform.localPosition = p0 + new Vector3(0f, hop * Mathf.Sin(Mathf.Clamp01(t / 0.25f) * Mathf.PI), 0f);
yield return null;
}
if (g != null) Destroy(g);
}
// ---------- 카메라 · 화면 ----------
IEnumerator Focus(ScenarioData.EventRow e)
{
Vector2 target;
var a = Get(e.actor);
if (a != null) target = a.Pos;
else if (e.HasPos) target = new Vector2(e.x, e.y);
else target = camStart;
float zoom = string.IsNullOrEmpty(e.arg) ? 1f : Mathf.Max(0.1f, Num(e.arg, 1f));
float h1 = viewStart / zoom;
float dur = Sec(e, "focus_sec");
Vector2 p0 = cc.transform.position;
float h0 = cc.ViewHeight;
for (float t = 0f; t < dur && !skip; t += Time.unscaledDeltaTime)
{
float k = Ease(t / dur);
cc.SetViewHeight(Mathf.Lerp(h0, h1, k));
cc.SnapTo(Vector2.Lerp(p0, target, k));
yield return null;
}
cc.SetViewHeight(h1);
cc.SnapTo(target);
}
IEnumerator Fade(bool toBlack, float dur)
{
float a0 = fade.color.a, a1 = toBlack ? 1f : 0f;
for (float t = 0f; t < dur && !skip; t += Time.unscaledDeltaTime)
{
fade.color = new Color(0f, 0f, 0f, Mathf.Lerp(a0, a1, t / dur));
yield return null;
}
fade.color = new Color(0f, 0f, 0f, skip ? 0f : a1);
}
IEnumerator Caption(string text, float hold)
{
if (skip) yield break;
captionText.text = text;
float fIn = C("caption_fade_sec"), bandA = C("caption_band_alpha");
for (float t = 0f; t < fIn && !skip; t += Time.unscaledDeltaTime)
{
SetCaption(bandA, t / fIn);
yield return null;
}
SetCaption(bandA, 1f);
st.Taps = 0;
for (float t = 0f; t < hold && !skip && st.Taps == 0; t += Time.unscaledDeltaTime) yield return null;
st.Taps = 0;
for (float t = 0f; t < fIn && !skip; t += Time.unscaledDeltaTime)
{
SetCaption(bandA, 1f - t / fIn);
yield return null;
}
SetCaption(bandA, 0f);
}
void SetCaption(float bandA, float k)
{
captionBand.color = new Color(0f, 0f, 0f, bandA * k);
var c = captionText.color;
captionText.color = new Color(c.r, c.g, c.b, k);
}
IEnumerator Wait(float sec)
{
for (float t = 0f; t < sec && !skip; t += Time.unscaledDeltaTime) yield return null;
}
/// <summary>카메라를 판 기본 화면으로 · 검은 덮개 걷기.</summary>
IEnumerator Return()
{
float dur = skip ? 0f : C("return_sec");
Vector2 p0 = cc.transform.position;
float h0 = cc.ViewHeight, a0 = fade.color.a;
bool keepBlack = trigger == "win" && a0 > 0.5f; // 승리 연출이 검게 끝나면 결과 화면 전까지 검게
for (float t = 0f; t < dur; t += Time.unscaledDeltaTime)
{
float k = Ease(t / dur);
cc.SetViewHeight(Mathf.Lerp(h0, viewStart, k));
cc.SnapTo(Vector2.Lerp(p0, camStart, k));
if (!keepBlack) fade.color = new Color(0f, 0f, 0f, a0 * (1f - k));
yield return null;
}
cc.SetViewHeight(viewStart);
cc.SnapTo(camStart);
}
/// <summary>연출이 남긴 것 치우기 — 연출 인물 · 표시 · (keep 아닌) 기절 · stage_start 면 판 유닛을 시작 자리·보임으로(요청서 약속 3).</summary>
void Cleanup(bool finished)
{
HideHud(false);
foreach (var g in temp)
if (g != null) Destroy(g);
temp.Clear();
// keep 아닌 기절(또는 중단) = 되돌림 · keep = 그 판 전투 동안 유지(다음 연출의 wake 가 풂)
foreach (var body in new List<Transform>(fainted.Keys))
{
if (body == null)
{
fainted.Remove(body);
continue;
}
if (finished && faintKeep.Contains(body)) continue;
Unfaint(body);
}
faintKeep.RemoveWhere(b => b == null);
if (trigger == "stage_start")
foreach (var kv in startPos)
{
if (kv.Key == null) continue;
kv.Key.Position = kv.Value;
if (kv.Key.View != null) kv.Key.View.gameObject.SetActive(true);
}
}
void OnDestroy()
{
if (current == this) current = null;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 6681ec7137cae1d48afefae4bccac220

View File

@ -0,0 +1,173 @@
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
namespace TKS
{
/// <summary>연출이 같이 쓰는 누름·건너뛰기 상태(보스 등장 · 시나리오 이벤트).</summary>
public sealed class TalkState
{
public bool Skip;
public int Taps;
}
/// <summary>
/// 시나리오 연출 공용 UI 조각(보스 등장 BossIntro · 시나리오 이벤트 ScenarioEvent · 2026-11-18 공용화).
/// 말풍선 값 = boss_intro_config.csv bubble_*(PD 확정 말풍선 시안) · 그림 = Resources/Scenario/*.png(없으면 색 면).
/// </summary>
public static class ScenarioUi
{
public static Sprite Spr(string name)
{
return Resources.Load<Sprite>(ScenarioData.Root + name);
}
public 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;
}
public 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<Image>();
img.sprite = sp;
img.color = col;
img.raycastTarget = false;
return img;
}
public 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);
}
public 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<Text>();
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;
}
public static void Stroke(Text t, Color col, float d)
{
var o = t.gameObject.AddComponent<Outline>();
o.effectColor = col;
o.effectDistance = new Vector2(d, -d);
var o2 = t.gameObject.AddComponent<Outline>();
o2.effectColor = col;
o2.effectDistance = new Vector2(-d, d);
}
public static float Ease(float k)
{
k = Mathf.Clamp01(k);
return k * k * (3f - 2f * k);
}
/// <summary>유닛 머리 끝(월드) — 그림이면 발(−0.55 R) + 그림 키 · 도형이면 반지름 1.6 배.</summary>
public static Vector2 Head(Unit u)
{
if (u == null) return Vector2.zero;
if (u.View != null && u.View.HasArt) return u.Position + new Vector2(0f, -u.Radius * 0.55f + u.ArtHeight);
return u.Position + new Vector2(0f, u.Radius * 1.6f);
}
/// <summary>월드 좌표 → root 캔버스 안 좌표.</summary>
public static Vector2 ToLocal(RectTransform root, Camera cam, Vector2 world)
{
Vector2 screen = RectTransformUtility.WorldToScreenPoint(cam, world);
Vector2 local;
RectTransformUtility.ScreenPointToLocalPointInRectangle(root, screen, cam, out local);
return local;
}
/// <summary>
/// 말풍선 한 번 — 튀어나옴 → 타자 효과(누르면 전부) → 유지(누르면 닫힘) → 사라짐. head = 꼬리가 가리킬 월드 좌표(매 프레임 따라감 · 화면 밖이면 안쪽으로 밀고 꼬리만 따라감).
/// </summary>
public static IEnumerator Say(RectTransform layer, RectTransform root, Camera cam, Func<Vector2> head, string name, Color tagColor, string text, TalkState st)
{
if (string.IsNullOrEmpty(text) || st.Skip) yield break;
float fs = ScenarioData.Cfg("bubble_font_size");
var bub = Img("Bubble", layer, Spr("bubble"), Color.white, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0f), Vector2.zero, new Vector2(640f, fs * 2f * 1.35f + 80f));
bub.type = Image.Type.Sliced;
var tail = Img("Tail", bub.transform, Spr("bubble_tail"), Color.white, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 1f), new Vector2(0f, 4f), new Vector2(54f, 40f));
if (!string.IsNullOrEmpty(name))
{
var tag = Img("NameTag", bub.transform, Spr("name_tag"), tagColor, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(0f, 0.5f), new Vector2(24f, 0f), new Vector2(0f, 52f));
tag.type = Image.Type.Sliced;
var tagText = Txt(tag.transform, name, 30, Color.white, TextAnchor.MiddleCenter, Vector2.zero, new Vector2(200f, 52f), UISkin.TitleFont);
tag.rectTransform.sizeDelta = new Vector2(tagText.preferredWidth + 44f, 52f);
tagText.rectTransform.sizeDelta = tag.rectTransform.sizeDelta;
}
var body = Txt(bub.transform, "", Mathf.RoundToInt(fs), new Color(0.24f, 0.13f, 0.07f), TextAnchor.MiddleCenter, new Vector2(0f, -4f), new Vector2(580f, fs * 2f * 1.35f + 20f), UISkin.TitleFont);
float popT = ScenarioData.Cfg("bubble_pop_sec"), from = ScenarioData.Cfg("bubble_pop_from"), peak = ScenarioData.Cfg("bubble_pop_peak");
st.Taps = 0;
for (float t = 0f; t < popT && !st.Skip; t += Time.unscaledDeltaTime)
{
float k = t / popT;
bub.rectTransform.localScale = Vector3.one * (k < 0.7f ? Mathf.Lerp(from, peak, k / 0.7f) : Mathf.Lerp(peak, 1f, (k - 0.7f) / 0.3f));
Place(root, cam, bub.rectTransform, tail.rectTransform, head());
yield return null;
}
bub.rectTransform.localScale = Vector3.one;
float cps = Mathf.Max(1f, ScenarioData.Cfg("bubble_char_per_sec"));
float shown = 0f;
while (shown < text.Length && !st.Skip && st.Taps == 0)
{
shown += cps * Time.unscaledDeltaTime;
body.text = text.Substring(0, Mathf.Min(text.Length, Mathf.FloorToInt(shown)));
Place(root, cam, bub.rectTransform, tail.rectTransform, head());
yield return null;
}
body.text = text;
if (st.Taps > 0) st.Taps = 0; // 탭 1 = 전부 표시 · 다음 탭 = 닫기
float hold = ScenarioData.Cfg("bubble_hold_sec");
for (float t = 0f; t < hold && !st.Skip && st.Taps == 0; t += Time.unscaledDeltaTime)
{
Place(root, cam, bub.rectTransform, tail.rectTransform, head());
yield return null;
}
st.Taps = 0;
var cg = bub.gameObject.AddComponent<CanvasGroup>();
float fade = ScenarioData.Cfg("bubble_fade_sec");
for (float t = 0f; t < fade && !st.Skip; t += Time.unscaledDeltaTime)
{
cg.alpha = 1f - t / fade;
yield return null;
}
UnityEngine.Object.Destroy(bub.gameObject);
}
/// <summary>말풍선 = 머리 위 · 화면 밖이면 안쪽으로 밀어 넣고 꼬리만 머리를 따라감.</summary>
static void Place(RectTransform root, Camera cam, RectTransform bub, RectTransform tail, Vector2 head)
{
var local = ToLocal(root, cam, head);
var half = root.rect.size * 0.5f;
var size = bub.sizeDelta;
float x = Mathf.Clamp(local.x, -half.x + size.x * 0.5f + 20f, half.x - size.x * 0.5f - 20f);
float y = Mathf.Clamp(local.y + 40f, -half.y + 40f, half.y - size.y - 40f);
var p = new Vector2(x, y);
if (bub.anchoredPosition != p) bub.anchoredPosition = p;
var tp = new Vector2(Mathf.Clamp(local.x - x, -size.x * 0.5f + 40f, size.x * 0.5f - 40f), 4f);
if (tail.anchoredPosition != tp) tail.anchoredPosition = tp;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 65c485a652208174b89c4b74c1c3fb67

View File

@ -0,0 +1,207 @@
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
using TKS.OutGame;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
namespace TKS.Tests
{
/// <summary>
/// 시나리오 이벤트(2026-11-18 PD 「연의전기 시나리오 이벤트 · 1장 도원결의부터」) + 보스 등장 주고받기(boss_talk.csv) 확인.
/// 연출은 메모리 세이브에서 꺼진다(ScenarioEvent.Mode Auto) — 여기서만 ForceOn(학습 판도 ForceOn). 값은 표에서 읽는다(C45).
/// </summary>
public class ScenarioEventTests
{
BattleManager bm;
BalanceConfig cfg;
[UnitySetUp]
public IEnumerator SetUp()
{
WorldProgress.Reset();
SaveStore.UseMemory(true);
SceneManager.LoadScene("Battle");
yield return null;
yield return null;
bm = BattleManager.Instance;
Assert.IsNotNull(bm);
cfg = bm.Config;
TutorialRules.Mode = TutorialMode.ForceOn;
ScenarioEvent.Mode = TutorialMode.ForceOn;
Time.timeScale = 1f;
}
[UnityTearDown]
public IEnumerator TearDown()
{
ScenarioEvent.Abort();
TutorialRules.Mode = TutorialMode.Auto;
ScenarioEvent.Mode = TutorialMode.Auto;
Time.timeScale = 1f;
yield return null;
}
int Index(int chapter, int stage)
{
for (int i = 0; i < cfg.stages.Length; i++)
if (cfg.stages[i].chapter == chapter && cfg.stages[i].stage == stage) return i;
Assert.Fail(chapter + "-" + stage + " 없음");
return -1;
}
IEnumerator UntilEventEnds(float timeout)
{
for (float t = 0f; ScenarioEvent.Running && t < timeout; t += Time.unscaledDeltaTime) yield return null;
Assert.IsFalse(ScenarioEvent.Running, "연출이 끝나지 않음");
}
[Test]
public void Tables_ReadWithoutErrors_TalkAlwaysHasSpeaker()
{
ScenarioData.Reload();
Assert.AreEqual(0, ScenarioData.Errors.Count, string.Join("\n", ScenarioData.Errors.ToArray()));
Assert.Greater(ScenarioData.AllEvents.Count, 0, "scenario_event.csv 비어 있음");
// 주고받기: 같은 (판, 순서) 묶음의 마지막 줄 = ally 또는 그 판의 보스 → 언제나 누군가 말한다
var groups = new Dictionary<string, List<ScenarioData.TalkLine>>();
foreach (var t in ScenarioData.AllTalks)
{
string k = t.chapter + "-" + t.stage + ":" + t.order;
if (!groups.ContainsKey(k)) groups[k] = new List<ScenarioData.TalkLine>();
groups[k].Add(t);
}
foreach (var kv in groups)
{
var last = kv.Value[kv.Value.Count - 1];
bool boss = false;
foreach (var b in ScenarioData.Bosses(last.chapter, last.stage))
if (b.id == last.speaker) boss = true;
Assert.IsTrue(last.speaker == "ally" || boss, kv.Key + " 마지막 화자 = " + last.speaker + "(ally·보스 아님)");
}
// 보스가 있는 판은 모두 주고받기가 있다
foreach (var s in cfg.stages)
if (ScenarioData.Bosses(s.chapter, s.stage).Count > 0)
Assert.Greater(ScenarioData.Talks(s.chapter, s.stage).Count, 0, s.chapter + "-" + s.stage + " 주고받기 없음");
}
[UnityTest]
public IEnumerator Stage1_1_Start_Skip_EndsAtLayoutWithZhangfeiFainted()
{
bm.StartStage(Index(1, 1));
yield return null;
Assert.IsTrue(ScenarioEvent.Running, "1-1 시작 연출");
Assert.AreEqual(BattlePhase.Setup, bm.Phase, "연출 동안 조작 잠금");
yield return new WaitForSecondsRealtime(0.3f);
ScenarioEvent.SkipForTest();
yield return UntilEventEnds(5f);
yield return null;
Assert.AreEqual(BattlePhase.PlayerTurn, bm.Phase, "연출 뒤 아군 차례");
foreach (var r in bm.Tutorial.Layout)
{
var u = bm.Tutorial.UnitAt(r.slot);
if (u == null) continue;
Assert.Less(Vector2.Distance(u.Position, r.pos), 0.05f, "슬롯 " + r.slot + " 시작 자리");
Assert.IsTrue(u.View.gameObject.activeSelf, "슬롯 " + r.slot + " 보임");
}
var zf = bm.Tutorial.UnitAt(3);
Assert.IsNotNull(zf);
Assert.Greater(Quaternion.Angle(zf.View.Anim != null ? zf.View.Anim.transform.localRotation : zf.View.transform.localRotation, Quaternion.identity), 10f, "장비 기절 유지(keep)");
}
[UnityTest]
public IEnumerator Stage1_1_Win_PlaysEventThenStageClear()
{
bm.StartStage(Index(1, 1));
yield return null;
ScenarioEvent.SkipForTest();
yield return UntilEventEnds(5f);
foreach (var e in bm.AliveUnits(Faction.Enemy)) e.TakeDamage(e.MaxHp * 10);
bm.CheckBattleEnd();
yield return null;
Assert.IsTrue(ScenarioEvent.Running, "1-1 승리 연출");
Assert.AreEqual(BattlePhase.Setup, bm.Phase, "승리 연출 동안 결과 대기");
yield return new WaitForSecondsRealtime(0.3f);
ScenarioEvent.SkipForTest();
yield return UntilEventEnds(5f);
Assert.AreEqual(BattlePhase.StageClear, bm.Phase, "연출 뒤 승리");
var zf = bm.Tutorial.UnitAt(3);
Assert.Less(Quaternion.Angle(zf.View.Anim != null ? zf.View.Anim.transform.localRotation : zf.View.transform.localRotation, Quaternion.identity), 1f, "장비 일어남(wake)");
}
/// <summary>
/// 연출 화면 캡처(Explicit) → Logs/scenario_capture/ — 1-1 시작(말다툼 · 기습 · 기절 · 유비 등장) · 1-1 승리(관우 등장) · 1-3 승리(맹세) · 1-5 보스 주고받기.
/// 화면 누름은 0.3 초마다 자동(말풍선 = 다 찍히면 다음).
/// </summary>
[UnityTest, Explicit]
public IEnumerator Capture_EventScreens()
{
string dir = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(Application.dataPath), "Logs", "scenario_capture");
System.IO.Directory.CreateDirectory(dir);
var cam = Camera.main;
System.Func<string, IEnumerator> shot = name => CaptureUtil.Capture(cam, 540, 960, System.IO.Path.Combine(dir, name + ".png"));
// 실제 흐름처럼 본영 화면을 끈다(출정 = 월드맵이 본영을 끄고 → 전투 시작 때 월드맵을 닫음)
var og = OutGameRoot.Instance;
if (og != null)
{
og.OpenWorldMap();
if (og.Map != null) og.Map.Hide();
}
var hud = Object.FindFirstObjectByType<BattleHUD>(FindObjectsInactive.Include);
if (hud != null) hud.gameObject.SetActive(true);
// 1-1 시작
bm.StartStage(Index(1, 1));
yield return null;
var want = new[] { 11, 17, 29, 41, 43, 47, 52 };
yield return Follow(want, "1-1_start", shot);
yield return new WaitForSecondsRealtime(0.8f);
yield return shot("1-1_start_end_battle");
// 1-1 승리
foreach (var e in bm.AliveUnits(Faction.Enemy)) e.TakeDamage(e.MaxHp * 10);
bm.CheckBattleEnd();
yield return Follow(new[] { 6, 16, 21 }, "1-1_win", shot);
// 1-2 시작
bm.StartStage(Index(1, 2));
yield return null;
yield return Follow(new[] { 14, 22, 30, 35 }, "1-2_start", shot);
// 1-3 승리(맹세)
bm.StartStage(Index(1, 3));
yield return null;
ScenarioEvent.SkipForTest();
yield return UntilEventEnds(5f);
foreach (var e in bm.AliveUnits(Faction.Enemy)) e.TakeDamage(e.MaxHp * 10);
bm.CheckBattleEnd();
yield return Follow(new[] { 10, 14, 19 }, "1-3_win", shot);
// 1-5 보스 등장 + 주고받기
bm.StartStage(Index(1, 5));
for (float t = 0f; t < 20f && bm.Phase == BattlePhase.Setup; t += 0.5f)
{
yield return new WaitForSecondsRealtime(0.5f);
if (t > 2.4f && t < 9f && Mathf.Abs(t % 1.5f) < 0.01f) yield return shot("1-5_boss_" + t.ToString("0.0"));
}
}
/// <summary>연출을 자동 누름으로 진행하며 want 의 n_order 줄에 닿으면 찍는다(말풍선이 다 찍힐 시간을 둠).</summary>
IEnumerator Follow(int[] want, string prefix, System.Func<string, IEnumerator> shot)
{
int next = 0;
for (float t = 0f; ScenarioEvent.Running && t < 120f; t += 0.3f)
{
if (next < want.Length && ScenarioEvent.CurrentOrder >= want[next])
{
yield return new WaitForSecondsRealtime(0.9f);
yield return shot(prefix + "_" + want[next].ToString("00"));
next++;
continue;
}
yield return new WaitForSecondsRealtime(0.3f);
ScenarioEvent.TapForTest();
}
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: d93bc7ef738ee224fa08f994dc238eec