diff --git a/doc/README.md b/doc/README.md index 5718b43..4a79041 100644 --- a/doc/README.md +++ b/doc/README.md @@ -256,11 +256,49 @@ num is how many characters are involved, but also can just check chara_id_{1,2,3 unsure what condition_type is. values of 2 and 3 always have two or three characters, and values of 4 (jp only) always have three, but 0 and 1 can have any number. +there's no requirement for stories like having a horse at all, much less an affinity level. gallery_chara_id is the character whose conversation it is; chara_id_{1,2,3} are the characters involved. gallery_chara_id is always one of the three, but it can be any one of the three. disp_order then is the conversation number within their gallery. +getting all conversation data: +```sql +WITH chara_name AS ( + SELECT "index" AS id, "text" AS name + FROM text_data + WHERE category = 6 +), convo_loc_names AS ( + SELECT 110 AS pos_id, 'right side front' AS name UNION ALL + SELECT 120 AS pos_id, 'right side front' AS name UNION ALL + SELECT 130 AS pos_id, 'right side front' AS name UNION ALL + SELECT 210 AS pos_id, 'left side table' AS name UNION ALL + SELECT 220 AS pos_id, 'left side table' AS name UNION ALL + SELECT 310 AS pos_id, 'center back seat' AS name UNION ALL + SELECT 410 AS pos_id, 'center posters' AS name UNION ALL + SELECT 420 AS pos_id, 'center posters' AS name UNION ALL + SELECT 430 AS pos_id, 'center posters' AS name UNION ALL + SELECT 510 AS pos_id, 'left side school map' AS name UNION ALL + SELECT 520 AS pos_id, 'left side school map' AS name UNION ALL + SELECT 530 AS pos_id, 'left side school map' AS name +) +SELECT + n.name, + s.disp_order, + l.name, + c1.name, + c2.name, + c3.name, + s.condition_type +FROM home_story_trigger s + LEFT JOIN chara_name n ON s.gallery_chara_id = n.id + LEFT JOIN chara_name c1 ON s.chara_id_1 = c1.id + LEFT JOIN chara_name c2 ON s.chara_id_2 = c2.id + LEFT JOIN chara_name c3 ON s.chara_id_3 = c3.id + LEFT JOIN convo_loc_names l ON s.pos_id = l.pos_id +ORDER BY s.gallery_chara_id, s.disp_order +``` + # update diffs complete list of tables with inserts in both the 2026-01-15 update adding fine motion, manhattan cafe ssr, inari one sr and the 2026-01-22 update adding tamamo cross and main story 5: