diff --git a/content/chapter_event/X0001Event.S b/content/chapter_event/X0001Event.S index 079a6e43..89892974 100644 --- a/content/chapter_event/X0001Event.S +++ b/content/chapter_event/X0001Event.S @@ -7,6 +7,7 @@ #include "background_id.h" #include "music_id.h" + #include "event_text_id.h" .section .rodata .align 2 .global X0001Event @@ -24,12 +25,18 @@ MiscBasedEvents: DefeatAll(EndingScene) END_MAIN BeginningScene: + ShowBG(BG001_Brave) + MUSC BGM_EVENT_PLAIN_01 + TEX1 EvTx_X0001_MID_SCENARIO_OPENING LOU1 EnemyUnits ENUN LOU1 AllyUnits ENUN + MUSC BGM_MAP_FES_01 + TEX1 EvTx_X0001_MID_SCENARIO_MAP_BEGIN ENDB EndingScene: + TEX1 EvTx_X0001_MID_SCENARIO_MAP_END MNCH X0001Next ENDA AllyUnits: diff --git a/content/chapter_event/XX001Event.S b/content/chapter_event/XX001Event.S index cb27e676..b355d736 100644 --- a/content/chapter_event/XX001Event.S +++ b/content/chapter_event/XX001Event.S @@ -7,6 +7,7 @@ #include "background_id.h" #include "music_id.h" + #include "event_text_id.h" .section .rodata .align 2 .global XX001Event @@ -28,8 +29,14 @@ BeginningScene: ENUN LOU1 AllyUnits ENUN + MUSC BGM_EVENT_SERIOUS_02 + TEX1 EvTx_XX001_MID_SCENARIO_MAP_BEGIN ENDB EndingScene: + TEX1 EvTx_XX001_MID_SCENARIO_MAP_END + ShowBG(BG005_Castle) + MUSC BGM_EVENT_SERIOUS_03 + TEX1 EvTx_XX001_MID_SCENARIO_ENDING MNCH XX001Next ENDA AllyUnits: diff --git a/content/texts_cn.c b/content/texts_cn.c index 0ed2a1a0..8c4cffee 100644 --- a/content/texts_cn.c +++ b/content/texts_cn.c @@ -5,8 +5,8 @@ const char * const textsCN[] = { #include "../locale/CNZH/FE7.txt" - #include "../locale/CNZH/misc.txt" #include "../locale/CNZH/scenario.txt" + #include "../locale/CNZH/misc.txt" #include "../locale/CNZH/unit.txt" #include "../locale/CNZH/skill.txt" #include "../locale/CNZH/stage.txt" diff --git a/content/texts_en.c b/content/texts_en.c index 8aec847c..8dcc6d2f 100644 --- a/content/texts_en.c +++ b/content/texts_en.c @@ -5,8 +5,8 @@ const char * const textsEN[] = { #include "../locale/USEN/FE7.txt" - #include "../locale/USEN/misc.txt" #include "../locale/USEN/scenario.txt" + #include "../locale/USEN/misc.txt" #include "../locale/USEN/unit.txt" #include "../locale/USEN/skill.txt" #include "../locale/USEN/stage.txt" diff --git a/content/texts_jp.c b/content/texts_jp.c index 92444290..1c387bea 100644 --- a/content/texts_jp.c +++ b/content/texts_jp.c @@ -5,8 +5,8 @@ const char * const textsJP[] = { [TID_START] = NULL, - #include "../locale/JPJA/misc.txt" #include "../locale/JPJA/scenario.txt" + #include "../locale/JPJA/misc.txt" #include "../locale/JPJA/unit.txt" #include "../locale/JPJA/skill.txt" #include "../locale/JPJA/stage.txt" diff --git a/include/event_text_id.h b/include/event_text_id.h new file mode 100644 index 00000000..8a19b980 --- /dev/null +++ b/include/event_text_id.h @@ -0,0 +1,379 @@ +#pragma once + +#define EvTx_Base 0x1236 + +// awk -F "," '{print "#define EvTx_"$1" EvTx_Base + "NR}' locale/key/scenario.txt +#define EvTx_X0001_MID_SCENARIO_MAP_BEGIN EvTx_Base + 1 +#define EvTx_X0001_MID_SCENARIO_MAP_END EvTx_Base + 2 +#define EvTx_X0001_MID_SCENARIO_OPENING EvTx_Base + 3 +#define EvTx_X0002_MID_SCENARIO_MAP_BEGIN EvTx_Base + 4 +#define EvTx_X0002_MID_SCENARIO_MAP_END EvTx_Base + 5 +#define EvTx_X0003_MID_SCENARIO_MAP_BEGIN EvTx_Base + 6 +#define EvTx_X0003_MID_SCENARIO_MAP_END EvTx_Base + 7 +#define EvTx_X0004_MID_SCENARIO_MAP_BEGIN EvTx_Base + 8 +#define EvTx_X0004_MID_SCENARIO_MAP_END EvTx_Base + 9 +#define EvTx_X0005_MID_SCENARIO_MAP_BEGIN EvTx_Base + 10 +#define EvTx_X0005_MID_SCENARIO_MAP_END EvTx_Base + 11 +#define EvTx_X0006_MID_SCENARIO_MAP_BEGIN EvTx_Base + 12 +#define EvTx_X0006_MID_SCENARIO_MAP_END EvTx_Base + 13 +#define EvTx_X0021_MID_SCENARIO_MAP_BEGIN EvTx_Base + 14 +#define EvTx_X0021_MID_SCENARIO_MAP_END EvTx_Base + 15 +#define EvTx_X0021_MID_SCENARIO_OPENING EvTx_Base + 16 +#define EvTx_X0022_MID_SCENARIO_MAP_BEGIN EvTx_Base + 17 +#define EvTx_X0022_MID_SCENARIO_MAP_END EvTx_Base + 18 +#define EvTx_X0023_MID_SCENARIO_ENDING EvTx_Base + 19 +#define EvTx_X0023_MID_SCENARIO_MAP_BEGIN EvTx_Base + 20 +#define EvTx_X0023_MID_SCENARIO_MAP_END EvTx_Base + 21 +#define EvTx_X0031_MID_SCENARIO_MAP_BEGIN EvTx_Base + 22 +#define EvTx_X0031_MID_SCENARIO_MAP_END EvTx_Base + 23 +#define EvTx_X0031_MID_SCENARIO_OPENING EvTx_Base + 24 +#define EvTx_X0032_MID_SCENARIO_MAP_BEGIN EvTx_Base + 25 +#define EvTx_X0032_MID_SCENARIO_MAP_END EvTx_Base + 26 +#define EvTx_X0033_MID_SCENARIO_MAP_BEGIN EvTx_Base + 27 +#define EvTx_X0033_MID_SCENARIO_MAP_END EvTx_Base + 28 +#define EvTx_X0041_MID_SCENARIO_MAP_BEGIN EvTx_Base + 29 +#define EvTx_X0041_MID_SCENARIO_MAP_END EvTx_Base + 30 +#define EvTx_X0041_MID_SCENARIO_OPENING EvTx_Base + 31 +#define EvTx_X0042_MID_SCENARIO_MAP_BEGIN EvTx_Base + 32 +#define EvTx_X0042_MID_SCENARIO_MAP_END EvTx_Base + 33 +#define EvTx_X0043_MID_SCENARIO_ENDING EvTx_Base + 34 +#define EvTx_X0043_MID_SCENARIO_MAP_BEGIN EvTx_Base + 35 +#define EvTx_X0043_MID_SCENARIO_MAP_END EvTx_Base + 36 +#define EvTx_X0051_MID_SCENARIO_MAP_BEGIN EvTx_Base + 37 +#define EvTx_X0051_MID_SCENARIO_MAP_END EvTx_Base + 38 +#define EvTx_X0051_MID_SCENARIO_OPENING EvTx_Base + 39 +#define EvTx_X0052_MID_SCENARIO_MAP_BEGIN EvTx_Base + 40 +#define EvTx_X0052_MID_SCENARIO_MAP_END EvTx_Base + 41 +#define EvTx_X0053_MID_SCENARIO_MAP_BEGIN EvTx_Base + 42 +#define EvTx_X0053_MID_SCENARIO_MAP_END EvTx_Base + 43 +#define EvTx_X0061_MID_SCENARIO_MAP_BEGIN EvTx_Base + 44 +#define EvTx_X0061_MID_SCENARIO_MAP_END EvTx_Base + 45 +#define EvTx_X0061_MID_SCENARIO_OPENING EvTx_Base + 46 +#define EvTx_X0062_MID_SCENARIO_MAP_BEGIN EvTx_Base + 47 +#define EvTx_X0062_MID_SCENARIO_MAP_END EvTx_Base + 48 +#define EvTx_X0063_MID_SCENARIO_ENDING EvTx_Base + 49 +#define EvTx_X0063_MID_SCENARIO_MAP_BEGIN EvTx_Base + 50 +#define EvTx_X0063_MID_SCENARIO_MAP_END EvTx_Base + 51 +#define EvTx_X0071_MID_SCENARIO_MAP_BEGIN EvTx_Base + 52 +#define EvTx_X0071_MID_SCENARIO_MAP_END EvTx_Base + 53 +#define EvTx_X0071_MID_SCENARIO_OPENING EvTx_Base + 54 +#define EvTx_X0072_MID_SCENARIO_MAP_BEGIN EvTx_Base + 55 +#define EvTx_X0072_MID_SCENARIO_MAP_END EvTx_Base + 56 +#define EvTx_X0073_MID_SCENARIO_MAP_BEGIN EvTx_Base + 57 +#define EvTx_X0073_MID_SCENARIO_MAP_END EvTx_Base + 58 +#define EvTx_X0081_MID_SCENARIO_MAP_BEGIN EvTx_Base + 59 +#define EvTx_X0081_MID_SCENARIO_MAP_END EvTx_Base + 60 +#define EvTx_X0081_MID_SCENARIO_OPENING EvTx_Base + 61 +#define EvTx_X0082_MID_SCENARIO_MAP_BEGIN EvTx_Base + 62 +#define EvTx_X0082_MID_SCENARIO_MAP_END EvTx_Base + 63 +#define EvTx_X0083_MID_SCENARIO_MAP_BEGIN EvTx_Base + 64 +#define EvTx_X0083_MID_SCENARIO_MAP_END EvTx_Base + 65 +#define EvTx_X0091_MID_SCENARIO_MAP_BEGIN EvTx_Base + 66 +#define EvTx_X0091_MID_SCENARIO_MAP_END EvTx_Base + 67 +#define EvTx_X0092_MID_SCENARIO_MAP_BEGIN EvTx_Base + 68 +#define EvTx_X0092_MID_SCENARIO_MAP_END EvTx_Base + 69 +#define EvTx_X0093_MID_SCENARIO_ENDING EvTx_Base + 70 +#define EvTx_X0093_MID_SCENARIO_MAP_BEGIN EvTx_Base + 71 +#define EvTx_X0093_MID_SCENARIO_MAP_END EvTx_Base + 72 +#define EvTx_X0101_MID_SCENARIO_MAP_BEGIN EvTx_Base + 73 +#define EvTx_X0101_MID_SCENARIO_MAP_END EvTx_Base + 74 +#define EvTx_X0101_MID_SCENARIO_OPENING EvTx_Base + 75 +#define EvTx_X0102_MID_SCENARIO_MAP_BEGIN EvTx_Base + 76 +#define EvTx_X0102_MID_SCENARIO_MAP_END EvTx_Base + 77 +#define EvTx_X0103_MID_SCENARIO_MAP_BEGIN EvTx_Base + 78 +#define EvTx_X0103_MID_SCENARIO_MAP_END EvTx_Base + 79 +#define EvTx_X0111_MID_SCENARIO_MAP_BEGIN EvTx_Base + 80 +#define EvTx_X0111_MID_SCENARIO_MAP_END EvTx_Base + 81 +#define EvTx_X0111_MID_SCENARIO_OPENING EvTx_Base + 82 +#define EvTx_X0112_MID_SCENARIO_MAP_BEGIN EvTx_Base + 83 +#define EvTx_X0112_MID_SCENARIO_MAP_END EvTx_Base + 84 +#define EvTx_X0113_MID_SCENARIO_MAP_BEGIN EvTx_Base + 85 +#define EvTx_X0113_MID_SCENARIO_MAP_END EvTx_Base + 86 +#define EvTx_X0121_MID_SCENARIO_MAP_BEGIN EvTx_Base + 87 +#define EvTx_X0121_MID_SCENARIO_MAP_END EvTx_Base + 88 +#define EvTx_X0122_MID_SCENARIO_MAP_BEGIN EvTx_Base + 89 +#define EvTx_X0122_MID_SCENARIO_MAP_END EvTx_Base + 90 +#define EvTx_X0123_MID_SCENARIO_ENDING EvTx_Base + 91 +#define EvTx_X0123_MID_SCENARIO_MAP_BEGIN EvTx_Base + 92 +#define EvTx_X0123_MID_SCENARIO_MAP_END EvTx_Base + 93 +#define EvTx_X0131_MID_SCENARIO_MAP_BEGIN EvTx_Base + 94 +#define EvTx_X0131_MID_SCENARIO_MAP_END EvTx_Base + 95 +#define EvTx_X0132_MID_SCENARIO_MAP_BEGIN EvTx_Base + 96 +#define EvTx_X0132_MID_SCENARIO_MAP_END EvTx_Base + 97 +#define EvTx_X0133_MID_SCENARIO_MAP_BEGIN EvTx_Base + 98 +#define EvTx_X0133_MID_SCENARIO_MAP_END EvTx_Base + 99 +#define EvTx_X0141_MID_SCENARIO_MAP_BEGIN EvTx_Base + 100 +#define EvTx_X0141_MID_SCENARIO_MAP_END EvTx_Base + 101 +#define EvTx_X0141_MID_SCENARIO_OPENING EvTx_Base + 102 +#define EvTx_X0142_MID_SCENARIO_MAP_BEGIN EvTx_Base + 103 +#define EvTx_X0142_MID_SCENARIO_MAP_END EvTx_Base + 104 +#define EvTx_X0143_MID_SCENARIO_MAP_BEGIN EvTx_Base + 105 +#define EvTx_X0143_MID_SCENARIO_MAP_END EvTx_Base + 106 +#define EvTx_X0151_MID_SCENARIO_MAP_BEGIN EvTx_Base + 107 +#define EvTx_X0151_MID_SCENARIO_MAP_END EvTx_Base + 108 +#define EvTx_X0151_MID_SCENARIO_OPENING EvTx_Base + 109 +#define EvTx_X0152_MID_SCENARIO_MAP_BEGIN EvTx_Base + 110 +#define EvTx_X0152_MID_SCENARIO_MAP_END EvTx_Base + 111 +#define EvTx_X0153_MID_SCENARIO_MAP_BEGIN EvTx_Base + 112 +#define EvTx_X0153_MID_SCENARIO_MAP_END EvTx_Base + 113 +#define EvTx_X0161_MID_SCENARIO_MAP_BEGIN EvTx_Base + 114 +#define EvTx_X0161_MID_SCENARIO_MAP_END EvTx_Base + 115 +#define EvTx_X0161_MID_SCENARIO_OPENING EvTx_Base + 116 +#define EvTx_X0162_MID_SCENARIO_MAP_BEGIN EvTx_Base + 117 +#define EvTx_X0162_MID_SCENARIO_MAP_END EvTx_Base + 118 +#define EvTx_X0163_MID_SCENARIO_MAP_BEGIN EvTx_Base + 119 +#define EvTx_X0163_MID_SCENARIO_MAP_END EvTx_Base + 120 +#define EvTx_X0171_MID_SCENARIO_MAP_BEGIN EvTx_Base + 121 +#define EvTx_X0171_MID_SCENARIO_MAP_END EvTx_Base + 122 +#define EvTx_X0171_MID_SCENARIO_OPENING EvTx_Base + 123 +#define EvTx_X0172_MID_SCENARIO_MAP_BEGIN EvTx_Base + 124 +#define EvTx_X0172_MID_SCENARIO_MAP_END EvTx_Base + 125 +#define EvTx_X0173_MID_SCENARIO_MAP_BEGIN EvTx_Base + 126 +#define EvTx_X0173_MID_SCENARIO_MAP_END EvTx_Base + 127 +#define EvTx_X0181_MID_SCENARIO_MAP_BEGIN EvTx_Base + 128 +#define EvTx_X0181_MID_SCENARIO_MAP_END EvTx_Base + 129 +#define EvTx_X0181_MID_SCENARIO_OPENING EvTx_Base + 130 +#define EvTx_X0182_MID_SCENARIO_MAP_BEGIN EvTx_Base + 131 +#define EvTx_X0182_MID_SCENARIO_MAP_END EvTx_Base + 132 +#define EvTx_X0183_MID_SCENARIO_MAP_BEGIN EvTx_Base + 133 +#define EvTx_X0183_MID_SCENARIO_MAP_END EvTx_Base + 134 +#define EvTx_X0191_MID_SCENARIO_MAP_BEGIN EvTx_Base + 135 +#define EvTx_X0191_MID_SCENARIO_MAP_END EvTx_Base + 136 +#define EvTx_X0191_MID_SCENARIO_OPENING EvTx_Base + 137 +#define EvTx_X0192_MID_SCENARIO_MAP_BEGIN EvTx_Base + 138 +#define EvTx_X0192_MID_SCENARIO_MAP_END EvTx_Base + 139 +#define EvTx_X0193_MID_SCENARIO_MAP_BEGIN EvTx_Base + 140 +#define EvTx_X0193_MID_SCENARIO_MAP_END EvTx_Base + 141 +#define EvTx_X0201_MID_SCENARIO_MAP_BEGIN EvTx_Base + 142 +#define EvTx_X0201_MID_SCENARIO_MAP_END EvTx_Base + 143 +#define EvTx_X0201_MID_SCENARIO_OPENING EvTx_Base + 144 +#define EvTx_X0202_MID_SCENARIO_MAP_BEGIN EvTx_Base + 145 +#define EvTx_X0202_MID_SCENARIO_MAP_END EvTx_Base + 146 +#define EvTx_X0203_MID_SCENARIO_ENDING EvTx_Base + 147 +#define EvTx_X0203_MID_SCENARIO_MAP_BEGIN EvTx_Base + 148 +#define EvTx_X0203_MID_SCENARIO_MAP_END EvTx_Base + 149 +#define EvTx_X0211_MID_SCENARIO_MAP_BEGIN EvTx_Base + 150 +#define EvTx_X0211_MID_SCENARIO_MAP_END EvTx_Base + 151 +#define EvTx_X0211_MID_SCENARIO_OPENING EvTx_Base + 152 +#define EvTx_X0212_MID_SCENARIO_MAP_BEGIN EvTx_Base + 153 +#define EvTx_X0212_MID_SCENARIO_MAP_END EvTx_Base + 154 +#define EvTx_X0213_MID_SCENARIO_ENDING EvTx_Base + 155 +#define EvTx_X0213_MID_SCENARIO_MAP_BEGIN EvTx_Base + 156 +#define EvTx_X0213_MID_SCENARIO_MAP_END EvTx_Base + 157 +#define EvTx_X0221_MID_SCENARIO_MAP_BEGIN EvTx_Base + 158 +#define EvTx_X0221_MID_SCENARIO_MAP_END EvTx_Base + 159 +#define EvTx_X0221_MID_SCENARIO_OPENING EvTx_Base + 160 +#define EvTx_X0222_MID_SCENARIO_MAP_BEGIN EvTx_Base + 161 +#define EvTx_X0222_MID_SCENARIO_MAP_END EvTx_Base + 162 +#define EvTx_X0223_MID_SCENARIO_MAP_BEGIN EvTx_Base + 163 +#define EvTx_X0223_MID_SCENARIO_MAP_END EvTx_Base + 164 +#define EvTx_X0231_MID_SCENARIO_MAP_BEGIN EvTx_Base + 165 +#define EvTx_X0231_MID_SCENARIO_MAP_END EvTx_Base + 166 +#define EvTx_X0231_MID_SCENARIO_OPENING EvTx_Base + 167 +#define EvTx_X0232_MID_SCENARIO_MAP_BEGIN EvTx_Base + 168 +#define EvTx_X0232_MID_SCENARIO_MAP_END EvTx_Base + 169 +#define EvTx_X0233_MID_SCENARIO_MAP_BEGIN EvTx_Base + 170 +#define EvTx_X0233_MID_SCENARIO_MAP_END EvTx_Base + 171 +#define EvTx_X0241_MID_SCENARIO_MAP_BEGIN EvTx_Base + 172 +#define EvTx_X0241_MID_SCENARIO_MAP_END EvTx_Base + 173 +#define EvTx_X0241_MID_SCENARIO_OPENING EvTx_Base + 174 +#define EvTx_X0242_MID_SCENARIO_MAP_BEGIN EvTx_Base + 175 +#define EvTx_X0242_MID_SCENARIO_MAP_END EvTx_Base + 176 +#define EvTx_X0243_MID_SCENARIO_MAP_BEGIN EvTx_Base + 177 +#define EvTx_X0243_MID_SCENARIO_MAP_END EvTx_Base + 178 +#define EvTx_X0251_MID_SCENARIO_MAP_BEGIN EvTx_Base + 179 +#define EvTx_X0251_MID_SCENARIO_MAP_END EvTx_Base + 180 +#define EvTx_X0251_MID_SCENARIO_OPENING EvTx_Base + 181 +#define EvTx_X0252_MID_SCENARIO_MAP_BEGIN EvTx_Base + 182 +#define EvTx_X0252_MID_SCENARIO_MAP_END EvTx_Base + 183 +#define EvTx_X0253_MID_SCENARIO_MAP_BEGIN EvTx_Base + 184 +#define EvTx_X0253_MID_SCENARIO_MAP_END EvTx_Base + 185 +#define EvTx_X0261_MID_SCENARIO_MAP_BEGIN EvTx_Base + 186 +#define EvTx_X0261_MID_SCENARIO_MAP_END EvTx_Base + 187 +#define EvTx_X0261_MID_SCENARIO_OPENING EvTx_Base + 188 +#define EvTx_X0262_MID_SCENARIO_MAP_BEGIN EvTx_Base + 189 +#define EvTx_X0262_MID_SCENARIO_MAP_END EvTx_Base + 190 +#define EvTx_X0262_MID_SCENARIO_OPENING EvTx_Base + 191 +#define EvTx_X0263_MID_SCENARIO_ENDING EvTx_Base + 192 +#define EvTx_X0263_MID_SCENARIO_MAP_BEGIN EvTx_Base + 193 +#define EvTx_X0263_MID_SCENARIO_MAP_END EvTx_Base + 194 +#define EvTx_X0263_MID_SCENARIO_OPENING EvTx_Base + 195 +#define EvTx_X0271_MID_SCENARIO_MAP_BEGIN EvTx_Base + 196 +#define EvTx_X0271_MID_SCENARIO_MAP_END EvTx_Base + 197 +#define EvTx_X0271_MID_SCENARIO_OPENING EvTx_Base + 198 +#define EvTx_X0272_MID_SCENARIO_MAP_BEGIN EvTx_Base + 199 +#define EvTx_X0272_MID_SCENARIO_MAP_END EvTx_Base + 200 +#define EvTx_X0273_MID_SCENARIO_MAP_BEGIN EvTx_Base + 201 +#define EvTx_X0273_MID_SCENARIO_MAP_END EvTx_Base + 202 +#define EvTx_X0281_MID_SCENARIO_MAP_BEGIN EvTx_Base + 203 +#define EvTx_X0281_MID_SCENARIO_MAP_END EvTx_Base + 204 +#define EvTx_X0281_MID_SCENARIO_OPENING EvTx_Base + 205 +#define EvTx_X0282_MID_SCENARIO_MAP_BEGIN EvTx_Base + 206 +#define EvTx_X0282_MID_SCENARIO_MAP_END EvTx_Base + 207 +#define EvTx_X0283_MID_SCENARIO_MAP_BEGIN EvTx_Base + 208 +#define EvTx_X0283_MID_SCENARIO_MAP_END EvTx_Base + 209 +#define EvTx_X0291_MID_SCENARIO_MAP_BEGIN EvTx_Base + 210 +#define EvTx_X0291_MID_SCENARIO_MAP_END EvTx_Base + 211 +#define EvTx_X0291_MID_SCENARIO_OPENING EvTx_Base + 212 +#define EvTx_X0292_MID_SCENARIO_MAP_BEGIN EvTx_Base + 213 +#define EvTx_X0292_MID_SCENARIO_MAP_END EvTx_Base + 214 +#define EvTx_X0293_MID_SCENARIO_MAP_BEGIN EvTx_Base + 215 +#define EvTx_X0293_MID_SCENARIO_MAP_END EvTx_Base + 216 +#define EvTx_X0301_MID_SCENARIO_MAP_BEGIN EvTx_Base + 217 +#define EvTx_X0301_MID_SCENARIO_MAP_END EvTx_Base + 218 +#define EvTx_X0301_MID_SCENARIO_OPENING EvTx_Base + 219 +#define EvTx_X0302_MID_SCENARIO_MAP_BEGIN EvTx_Base + 220 +#define EvTx_X0302_MID_SCENARIO_MAP_END EvTx_Base + 221 +#define EvTx_X0303_MID_SCENARIO_MAP_BEGIN EvTx_Base + 222 +#define EvTx_X0303_MID_SCENARIO_MAP_END EvTx_Base + 223 +#define EvTx_X0311_MID_SCENARIO_MAP_BEGIN EvTx_Base + 224 +#define EvTx_X0311_MID_SCENARIO_MAP_END EvTx_Base + 225 +#define EvTx_X0311_MID_SCENARIO_OPENING EvTx_Base + 226 +#define EvTx_X0312_MID_SCENARIO_MAP_BEGIN EvTx_Base + 227 +#define EvTx_X0312_MID_SCENARIO_MAP_END EvTx_Base + 228 +#define EvTx_X0313_MID_SCENARIO_MAP_BEGIN EvTx_Base + 229 +#define EvTx_X0313_MID_SCENARIO_MAP_END EvTx_Base + 230 +#define EvTx_X0321_MID_SCENARIO_MAP_BEGIN EvTx_Base + 231 +#define EvTx_X0321_MID_SCENARIO_MAP_END EvTx_Base + 232 +#define EvTx_X0321_MID_SCENARIO_OPENING EvTx_Base + 233 +#define EvTx_X0322_MID_SCENARIO_MAP_BEGIN EvTx_Base + 234 +#define EvTx_X0322_MID_SCENARIO_MAP_END EvTx_Base + 235 +#define EvTx_X0323_MID_SCENARIO_MAP_BEGIN EvTx_Base + 236 +#define EvTx_X0323_MID_SCENARIO_MAP_END EvTx_Base + 237 +#define EvTx_X0331_MID_SCENARIO_MAP_BEGIN EvTx_Base + 238 +#define EvTx_X0331_MID_SCENARIO_MAP_END EvTx_Base + 239 +#define EvTx_X0331_MID_SCENARIO_OPENING EvTx_Base + 240 +#define EvTx_X0332_MID_SCENARIO_MAP_BEGIN EvTx_Base + 241 +#define EvTx_X0332_MID_SCENARIO_MAP_END EvTx_Base + 242 +#define EvTx_X0333_MID_SCENARIO_MAP_BEGIN EvTx_Base + 243 +#define EvTx_X0333_MID_SCENARIO_MAP_END EvTx_Base + 244 +#define EvTx_X0341_MID_SCENARIO_MAP_BEGIN EvTx_Base + 245 +#define EvTx_X0341_MID_SCENARIO_MAP_END EvTx_Base + 246 +#define EvTx_X0341_MID_SCENARIO_OPENING EvTx_Base + 247 +#define EvTx_X0342_MID_SCENARIO_MAP_BEGIN EvTx_Base + 248 +#define EvTx_X0342_MID_SCENARIO_MAP_END EvTx_Base + 249 +#define EvTx_X0343_MID_SCENARIO_MAP_BEGIN EvTx_Base + 250 +#define EvTx_X0343_MID_SCENARIO_MAP_END EvTx_Base + 251 +#define EvTx_X0351_MID_SCENARIO_MAP_BEGIN EvTx_Base + 252 +#define EvTx_X0351_MID_SCENARIO_MAP_END EvTx_Base + 253 +#define EvTx_X0351_MID_SCENARIO_OPENING EvTx_Base + 254 +#define EvTx_X0352_MID_SCENARIO_MAP_BEGIN EvTx_Base + 255 +#define EvTx_X0352_MID_SCENARIO_MAP_END EvTx_Base + 256 +#define EvTx_X0353_MID_SCENARIO_MAP_BEGIN EvTx_Base + 257 +#define EvTx_X0353_MID_SCENARIO_MAP_END EvTx_Base + 258 +#define EvTx_X0361_MID_SCENARIO_MAP_BEGIN EvTx_Base + 259 +#define EvTx_X0361_MID_SCENARIO_MAP_END EvTx_Base + 260 +#define EvTx_X0361_MID_SCENARIO_OPENING EvTx_Base + 261 +#define EvTx_X0362_MID_SCENARIO_MAP_BEGIN EvTx_Base + 262 +#define EvTx_X0362_MID_SCENARIO_MAP_END EvTx_Base + 263 +#define EvTx_X0363_MID_SCENARIO_MAP_BEGIN EvTx_Base + 264 +#define EvTx_X0363_MID_SCENARIO_MAP_END EvTx_Base + 265 +#define EvTx_X0371_MID_SCENARIO_MAP_BEGIN EvTx_Base + 266 +#define EvTx_X0371_MID_SCENARIO_MAP_END EvTx_Base + 267 +#define EvTx_X0371_MID_SCENARIO_OPENING EvTx_Base + 268 +#define EvTx_X0372_MID_SCENARIO_MAP_BEGIN EvTx_Base + 269 +#define EvTx_X0372_MID_SCENARIO_MAP_END EvTx_Base + 270 +#define EvTx_X0373_MID_SCENARIO_MAP_BEGIN EvTx_Base + 271 +#define EvTx_X0373_MID_SCENARIO_MAP_END EvTx_Base + 272 +#define EvTx_X0381_MID_SCENARIO_MAP_BEGIN EvTx_Base + 273 +#define EvTx_X0381_MID_SCENARIO_MAP_END EvTx_Base + 274 +#define EvTx_X0381_MID_SCENARIO_OPENING EvTx_Base + 275 +#define EvTx_X0382_MID_SCENARIO_MAP_BEGIN EvTx_Base + 276 +#define EvTx_X0382_MID_SCENARIO_MAP_END EvTx_Base + 277 +#define EvTx_X0383_MID_SCENARIO_MAP_BEGIN EvTx_Base + 278 +#define EvTx_X0383_MID_SCENARIO_MAP_END EvTx_Base + 279 +#define EvTx_X0391_MID_SCENARIO_MAP_BEGIN EvTx_Base + 280 +#define EvTx_X0391_MID_SCENARIO_MAP_END EvTx_Base + 281 +#define EvTx_X0391_MID_SCENARIO_OPENING EvTx_Base + 282 +#define EvTx_X0392_MID_SCENARIO_MAP_BEGIN EvTx_Base + 283 +#define EvTx_X0392_MID_SCENARIO_MAP_END EvTx_Base + 284 +#define EvTx_X0393_MID_SCENARIO_MAP_BEGIN EvTx_Base + 285 +#define EvTx_X0393_MID_SCENARIO_MAP_END EvTx_Base + 286 +#define EvTx_X0401_MID_SCENARIO_MAP_BEGIN EvTx_Base + 287 +#define EvTx_X0401_MID_SCENARIO_MAP_END EvTx_Base + 288 +#define EvTx_X0401_MID_SCENARIO_OPENING EvTx_Base + 289 +#define EvTx_X0402_MID_SCENARIO_MAP_BEGIN EvTx_Base + 290 +#define EvTx_X0402_MID_SCENARIO_MAP_END EvTx_Base + 291 +#define EvTx_X0403_MID_SCENARIO_MAP_BEGIN EvTx_Base + 292 +#define EvTx_X0403_MID_SCENARIO_MAP_END EvTx_Base + 293 +#define EvTx_X0411_MID_SCENARIO_MAP_BEGIN EvTx_Base + 294 +#define EvTx_X0411_MID_SCENARIO_MAP_END EvTx_Base + 295 +#define EvTx_X0411_MID_SCENARIO_OPENING EvTx_Base + 296 +#define EvTx_X0412_MID_SCENARIO_MAP_BEGIN EvTx_Base + 297 +#define EvTx_X0412_MID_SCENARIO_MAP_END EvTx_Base + 298 +#define EvTx_X0413_MID_SCENARIO_MAP_BEGIN EvTx_Base + 299 +#define EvTx_X0413_MID_SCENARIO_MAP_END EvTx_Base + 300 +#define EvTx_X0421_MID_SCENARIO_MAP_BEGIN EvTx_Base + 301 +#define EvTx_X0421_MID_SCENARIO_MAP_END EvTx_Base + 302 +#define EvTx_X0421_MID_SCENARIO_OPENING EvTx_Base + 303 +#define EvTx_X0422_MID_SCENARIO_MAP_BEGIN EvTx_Base + 304 +#define EvTx_X0422_MID_SCENARIO_MAP_END EvTx_Base + 305 +#define EvTx_X0423_MID_SCENARIO_MAP_BEGIN EvTx_Base + 306 +#define EvTx_X0423_MID_SCENARIO_MAP_END EvTx_Base + 307 +#define EvTx_X0431_MID_SCENARIO_MAP_BEGIN EvTx_Base + 308 +#define EvTx_X0431_MID_SCENARIO_MAP_END EvTx_Base + 309 +#define EvTx_X0431_MID_SCENARIO_OPENING EvTx_Base + 310 +#define EvTx_X0432_MID_SCENARIO_MAP_BEGIN EvTx_Base + 311 +#define EvTx_X0432_MID_SCENARIO_MAP_END EvTx_Base + 312 +#define EvTx_X0433_MID_SCENARIO_MAP_BEGIN EvTx_Base + 313 +#define EvTx_X0433_MID_SCENARIO_MAP_END EvTx_Base + 314 +#define EvTx_X0441_MID_SCENARIO_ENDING EvTx_Base + 315 +#define EvTx_X0441_MID_SCENARIO_MAP_BEGIN EvTx_Base + 316 +#define EvTx_X0441_MID_SCENARIO_MAP_END EvTx_Base + 317 +#define EvTx_X0441_MID_SCENARIO_OPENING EvTx_Base + 318 +#define EvTx_X0442_MID_SCENARIO_MAP_BEGIN EvTx_Base + 319 +#define EvTx_X0442_MID_SCENARIO_MAP_END EvTx_Base + 320 +#define EvTx_X0443_MID_SCENARIO_MAP_BEGIN EvTx_Base + 321 +#define EvTx_X0443_MID_SCENARIO_MAP_END EvTx_Base + 322 +#define EvTx_X0451_MID_SCENARIO_MAP_BEGIN EvTx_Base + 323 +#define EvTx_X0451_MID_SCENARIO_MAP_END EvTx_Base + 324 +#define EvTx_X0451_MID_SCENARIO_OPENING EvTx_Base + 325 +#define EvTx_X0452_MID_SCENARIO_MAP_BEGIN EvTx_Base + 326 +#define EvTx_X0452_MID_SCENARIO_MAP_END EvTx_Base + 327 +#define EvTx_X0453_MID_SCENARIO_MAP_BEGIN EvTx_Base + 328 +#define EvTx_X0453_MID_SCENARIO_MAP_END EvTx_Base + 329 +#define EvTx_X0461_MID_SCENARIO_MAP_BEGIN EvTx_Base + 330 +#define EvTx_X0461_MID_SCENARIO_MAP_END EvTx_Base + 331 +#define EvTx_X0461_MID_SCENARIO_OPENING EvTx_Base + 332 +#define EvTx_X0462_MID_SCENARIO_MAP_BEGIN EvTx_Base + 333 +#define EvTx_X0462_MID_SCENARIO_MAP_END EvTx_Base + 334 +#define EvTx_X0463_MID_SCENARIO_MAP_BEGIN EvTx_Base + 335 +#define EvTx_X0463_MID_SCENARIO_MAP_END EvTx_Base + 336 +#define EvTx_X0471_MID_SCENARIO_MAP_BEGIN EvTx_Base + 337 +#define EvTx_X0471_MID_SCENARIO_MAP_END EvTx_Base + 338 +#define EvTx_X0471_MID_SCENARIO_OPENING EvTx_Base + 339 +#define EvTx_X0472_MID_SCENARIO_MAP_BEGIN EvTx_Base + 340 +#define EvTx_X0472_MID_SCENARIO_MAP_END EvTx_Base + 341 +#define EvTx_X0473_MID_SCENARIO_MAP_BEGIN EvTx_Base + 342 +#define EvTx_X0473_MID_SCENARIO_MAP_END EvTx_Base + 343 +#define EvTx_X0481_MID_SCENARIO_MAP_BEGIN EvTx_Base + 344 +#define EvTx_X0481_MID_SCENARIO_MAP_END EvTx_Base + 345 +#define EvTx_X0481_MID_SCENARIO_OPENING EvTx_Base + 346 +#define EvTx_X0482_MID_SCENARIO_MAP_BEGIN EvTx_Base + 347 +#define EvTx_X0482_MID_SCENARIO_MAP_END EvTx_Base + 348 +#define EvTx_X0483_MID_SCENARIO_MAP_BEGIN EvTx_Base + 349 +#define EvTx_X0483_MID_SCENARIO_MAP_END EvTx_Base + 350 +#define EvTx_X0491_MID_SCENARIO_MAP_BEGIN EvTx_Base + 351 +#define EvTx_X0491_MID_SCENARIO_MAP_END EvTx_Base + 352 +#define EvTx_X0491_MID_SCENARIO_OPENING EvTx_Base + 353 +#define EvTx_X0492_MID_SCENARIO_MAP_BEGIN EvTx_Base + 354 +#define EvTx_X0492_MID_SCENARIO_MAP_END EvTx_Base + 355 +#define EvTx_X0493_MID_SCENARIO_MAP_BEGIN EvTx_Base + 356 +#define EvTx_X0493_MID_SCENARIO_MAP_END EvTx_Base + 357 +#define EvTx_XX001_MID_SCENARIO_ENDING EvTx_Base + 358 +#define EvTx_XX001_MID_SCENARIO_MAP_BEGIN EvTx_Base + 359 +#define EvTx_XX001_MID_SCENARIO_MAP_END EvTx_Base + 360 +#define EvTx_XX002_MID_SCENARIO_ENDING EvTx_Base + 361 +#define EvTx_XX002_MID_SCENARIO_MAP_BEGIN EvTx_Base + 362 +#define EvTx_XX002_MID_SCENARIO_MAP_END EvTx_Base + 363 +#define EvTx_XX002_MID_SCENARIO_OPENING EvTx_Base + 364 +#define EvTx_XX003_MID_SCENARIO_MAP_BEGIN EvTx_Base + 365 +#define EvTx_XX003_MID_SCENARIO_MAP_END EvTx_Base + 366 +#define EvTx_XX003_MID_SCENARIO_OPENING EvTx_Base + 367 +#define EvTx_XX004_MID_SCENARIO_MAP_BEGIN EvTx_Base + 368 +#define EvTx_XX004_MID_SCENARIO_MAP_END EvTx_Base + 369 +#define EvTx_XX004_MID_SCENARIO_OPENING EvTx_Base + 370 +#define EvTx_XX005_MID_SCENARIO_ENDING EvTx_Base + 371 +#define EvTx_XX005_MID_SCENARIO_MAP_BEGIN EvTx_Base + 372 +#define EvTx_XX005_MID_SCENARIO_MAP_END EvTx_Base + 373 +#define EvTx_XX005_MID_SCENARIO_OPENING EvTx_Base + 374 diff --git a/include/music_id.h b/include/music_id.h index 17841311..b1d50b85 100644 --- a/include/music_id.h +++ b/include/music_id.h @@ -1008,6 +1008,30 @@ #define BGM_MNS_FE08_04 1004 #define BGM_MNS_FE15_01_1 1005 #define BGM_MNS_FE15_01_2 1006 +#define BGM_MNS_FE15_01 BGM_MNS_FE15_01_1 #define BGM_MNS_FE16_02 1007 #define BGM_MNS_FE07_03 SONG065 +#define BGM_MENU_TITLE SONG090 + +#define BGM_NULL 0 + +#define BGM_AMB_USERNAME BGM_NULL +#define BGM_EVENT_PLAIN_02 BGM_EVENT_PLAIN_01 +#define BGM_EVENT_PLAIN_03 BGM_EVENT_PLAIN_01 +#define BGM_EVENT_PLAIN_03_2 BGM_EVENT_PLAIN_03 +#define BGM_EVENT_SERIOUS_01 SONG050 +#define BGM_EVENT_SERIOUS_02 SONG082 +#define BGM_EVENT_SERIOUS_03 SONG081 +#define BGM_EVENT_SERIOUS_04 SONG074 +#define BGM_MAP_FE14_05 BGM_NULL +#define BGM_MNS_FE14_07 BGM_NULL +#define BGM_MAP_FE14_14 BGM_MNS_FE14_07 +#define BGM_MAP_FES_02 BGM_NULL +#define BGM_MAP_FES_03 BGM_NULL +#define BGM_MAP_FES_04 BGM_NULL +#define BGM_MENU_TENRO BGM_NULL +#define BGM_MAP_FE04_08 BGM_NULL +#define BGM_MNS_FE04_02 BGM_MAP_FE04_08 +#define BGM_MNS_FE10_01 BGM_NULL +#define BGM_MNS_FE14_06 BGM_NULL diff --git a/include/text_id.h b/include/text_id.h index e8523ee9..86ab85b4 100644 --- a/include/text_id.h +++ b/include/text_id.h @@ -3,8 +3,8 @@ enum TEXT_ID { TID_START = 0x1236, - #include "../locale/key/misc.txt" #include "../locale/key/scenario.txt" + #include "../locale/key/misc.txt" #include "../locale/key/unit.txt" #include "../locale/key/skill.txt" #include "../locale/key/stage.txt" diff --git a/tool/chapter/make_event.py b/tool/chapter/make_event.py index 166bbb98..65f9a0df 100755 --- a/tool/chapter/make_event.py +++ b/tool/chapter/make_event.py @@ -9,6 +9,655 @@ from pathlib import Path from pytiled_parser.tiled_object import TiledObject +texts = ( + "X0001_MID_SCENARIO_MAP_BEGIN", + "X0001_MID_SCENARIO_MAP_END", + "X0001_MID_SCENARIO_OPENING", + "X0002_MID_SCENARIO_MAP_BEGIN", + "X0002_MID_SCENARIO_MAP_END", + "X0003_MID_SCENARIO_MAP_BEGIN", + "X0003_MID_SCENARIO_MAP_END", + "X0004_MID_SCENARIO_MAP_BEGIN", + "X0004_MID_SCENARIO_MAP_END", + "X0005_MID_SCENARIO_MAP_BEGIN", + "X0005_MID_SCENARIO_MAP_END", + "X0006_MID_SCENARIO_MAP_BEGIN", + "X0006_MID_SCENARIO_MAP_END", + "X0021_MID_SCENARIO_MAP_BEGIN", + "X0021_MID_SCENARIO_MAP_END", + "X0021_MID_SCENARIO_OPENING", + "X0022_MID_SCENARIO_MAP_BEGIN", + "X0022_MID_SCENARIO_MAP_END", + "X0023_MID_SCENARIO_ENDING", + "X0023_MID_SCENARIO_MAP_BEGIN", + "X0023_MID_SCENARIO_MAP_END", + "X0031_MID_SCENARIO_MAP_BEGIN", + "X0031_MID_SCENARIO_MAP_END", + "X0031_MID_SCENARIO_OPENING", + "X0032_MID_SCENARIO_MAP_BEGIN", + "X0032_MID_SCENARIO_MAP_END", + "X0033_MID_SCENARIO_MAP_BEGIN", + "X0033_MID_SCENARIO_MAP_END", + "X0041_MID_SCENARIO_MAP_BEGIN", + "X0041_MID_SCENARIO_MAP_END", + "X0041_MID_SCENARIO_OPENING", + "X0042_MID_SCENARIO_MAP_BEGIN", + "X0042_MID_SCENARIO_MAP_END", + "X0043_MID_SCENARIO_ENDING", + "X0043_MID_SCENARIO_MAP_BEGIN", + "X0043_MID_SCENARIO_MAP_END", + "X0051_MID_SCENARIO_MAP_BEGIN", + "X0051_MID_SCENARIO_MAP_END", + "X0051_MID_SCENARIO_OPENING", + "X0052_MID_SCENARIO_MAP_BEGIN", + "X0052_MID_SCENARIO_MAP_END", + "X0053_MID_SCENARIO_MAP_BEGIN", + "X0053_MID_SCENARIO_MAP_END", + "X0061_MID_SCENARIO_MAP_BEGIN", + "X0061_MID_SCENARIO_MAP_END", + "X0061_MID_SCENARIO_OPENING", + "X0062_MID_SCENARIO_MAP_BEGIN", + "X0062_MID_SCENARIO_MAP_END", + "X0063_MID_SCENARIO_ENDING", + "X0063_MID_SCENARIO_MAP_BEGIN", + "X0063_MID_SCENARIO_MAP_END", + "X0071_MID_SCENARIO_MAP_BEGIN", + "X0071_MID_SCENARIO_MAP_END", + "X0071_MID_SCENARIO_OPENING", + "X0072_MID_SCENARIO_MAP_BEGIN", + "X0072_MID_SCENARIO_MAP_END", + "X0073_MID_SCENARIO_MAP_BEGIN", + "X0073_MID_SCENARIO_MAP_END", + "X0081_MID_SCENARIO_MAP_BEGIN", + "X0081_MID_SCENARIO_MAP_END", + "X0081_MID_SCENARIO_OPENING", + "X0082_MID_SCENARIO_MAP_BEGIN", + "X0082_MID_SCENARIO_MAP_END", + "X0083_MID_SCENARIO_MAP_BEGIN", + "X0083_MID_SCENARIO_MAP_END", + "X0091_MID_SCENARIO_MAP_BEGIN", + "X0091_MID_SCENARIO_MAP_END", + "X0092_MID_SCENARIO_MAP_BEGIN", + "X0092_MID_SCENARIO_MAP_END", + "X0093_MID_SCENARIO_ENDING", + "X0093_MID_SCENARIO_MAP_BEGIN", + "X0093_MID_SCENARIO_MAP_END", + "X0101_MID_SCENARIO_MAP_BEGIN", + "X0101_MID_SCENARIO_MAP_END", + "X0101_MID_SCENARIO_OPENING", + "X0102_MID_SCENARIO_MAP_BEGIN", + "X0102_MID_SCENARIO_MAP_END", + "X0103_MID_SCENARIO_MAP_BEGIN", + "X0103_MID_SCENARIO_MAP_END", + "X0111_MID_SCENARIO_MAP_BEGIN", + "X0111_MID_SCENARIO_MAP_END", + "X0111_MID_SCENARIO_OPENING", + "X0112_MID_SCENARIO_MAP_BEGIN", + "X0112_MID_SCENARIO_MAP_END", + "X0113_MID_SCENARIO_MAP_BEGIN", + "X0113_MID_SCENARIO_MAP_END", + "X0121_MID_SCENARIO_MAP_BEGIN", + "X0121_MID_SCENARIO_MAP_END", + "X0122_MID_SCENARIO_MAP_BEGIN", + "X0122_MID_SCENARIO_MAP_END", + "X0123_MID_SCENARIO_ENDING", + "X0123_MID_SCENARIO_MAP_BEGIN", + "X0123_MID_SCENARIO_MAP_END", + "X0131_MID_SCENARIO_MAP_BEGIN", + "X0131_MID_SCENARIO_MAP_END", + "X0132_MID_SCENARIO_MAP_BEGIN", + "X0132_MID_SCENARIO_MAP_END", + "X0133_MID_SCENARIO_MAP_BEGIN", + "X0133_MID_SCENARIO_MAP_END", + "X0141_MID_SCENARIO_MAP_BEGIN", + "X0141_MID_SCENARIO_MAP_END", + "X0141_MID_SCENARIO_OPENING", + "X0142_MID_SCENARIO_MAP_BEGIN", + "X0142_MID_SCENARIO_MAP_END", + "X0143_MID_SCENARIO_MAP_BEGIN", + "X0143_MID_SCENARIO_MAP_END", + "X0151_MID_SCENARIO_MAP_BEGIN", + "X0151_MID_SCENARIO_MAP_END", + "X0151_MID_SCENARIO_OPENING", + "X0152_MID_SCENARIO_MAP_BEGIN", + "X0152_MID_SCENARIO_MAP_END", + "X0153_MID_SCENARIO_MAP_BEGIN", + "X0153_MID_SCENARIO_MAP_END", + "X0161_MID_SCENARIO_MAP_BEGIN", + "X0161_MID_SCENARIO_MAP_END", + "X0161_MID_SCENARIO_OPENING", + "X0162_MID_SCENARIO_MAP_BEGIN", + "X0162_MID_SCENARIO_MAP_END", + "X0163_MID_SCENARIO_MAP_BEGIN", + "X0163_MID_SCENARIO_MAP_END", + "X0171_MID_SCENARIO_MAP_BEGIN", + "X0171_MID_SCENARIO_MAP_END", + "X0171_MID_SCENARIO_OPENING", + "X0172_MID_SCENARIO_MAP_BEGIN", + "X0172_MID_SCENARIO_MAP_END", + "X0173_MID_SCENARIO_MAP_BEGIN", + "X0173_MID_SCENARIO_MAP_END", + "X0181_MID_SCENARIO_MAP_BEGIN", + "X0181_MID_SCENARIO_MAP_END", + "X0181_MID_SCENARIO_OPENING", + "X0182_MID_SCENARIO_MAP_BEGIN", + "X0182_MID_SCENARIO_MAP_END", + "X0183_MID_SCENARIO_MAP_BEGIN", + "X0183_MID_SCENARIO_MAP_END", + "X0191_MID_SCENARIO_MAP_BEGIN", + "X0191_MID_SCENARIO_MAP_END", + "X0191_MID_SCENARIO_OPENING", + "X0192_MID_SCENARIO_MAP_BEGIN", + "X0192_MID_SCENARIO_MAP_END", + "X0193_MID_SCENARIO_MAP_BEGIN", + "X0193_MID_SCENARIO_MAP_END", + "X0201_MID_SCENARIO_MAP_BEGIN", + "X0201_MID_SCENARIO_MAP_END", + "X0201_MID_SCENARIO_OPENING", + "X0202_MID_SCENARIO_MAP_BEGIN", + "X0202_MID_SCENARIO_MAP_END", + "X0203_MID_SCENARIO_ENDING", + "X0203_MID_SCENARIO_MAP_BEGIN", + "X0203_MID_SCENARIO_MAP_END", + "X0211_MID_SCENARIO_MAP_BEGIN", + "X0211_MID_SCENARIO_MAP_END", + "X0211_MID_SCENARIO_OPENING", + "X0212_MID_SCENARIO_MAP_BEGIN", + "X0212_MID_SCENARIO_MAP_END", + "X0213_MID_SCENARIO_ENDING", + "X0213_MID_SCENARIO_MAP_BEGIN", + "X0213_MID_SCENARIO_MAP_END", + "X0221_MID_SCENARIO_MAP_BEGIN", + "X0221_MID_SCENARIO_MAP_END", + "X0221_MID_SCENARIO_OPENING", + "X0222_MID_SCENARIO_MAP_BEGIN", + "X0222_MID_SCENARIO_MAP_END", + "X0223_MID_SCENARIO_MAP_BEGIN", + "X0223_MID_SCENARIO_MAP_END", + "X0231_MID_SCENARIO_MAP_BEGIN", + "X0231_MID_SCENARIO_MAP_END", + "X0231_MID_SCENARIO_OPENING", + "X0232_MID_SCENARIO_MAP_BEGIN", + "X0232_MID_SCENARIO_MAP_END", + "X0233_MID_SCENARIO_MAP_BEGIN", + "X0233_MID_SCENARIO_MAP_END", + "X0241_MID_SCENARIO_MAP_BEGIN", + "X0241_MID_SCENARIO_MAP_END", + "X0241_MID_SCENARIO_OPENING", + "X0242_MID_SCENARIO_MAP_BEGIN", + "X0242_MID_SCENARIO_MAP_END", + "X0243_MID_SCENARIO_MAP_BEGIN", + "X0243_MID_SCENARIO_MAP_END", + "X0251_MID_SCENARIO_MAP_BEGIN", + "X0251_MID_SCENARIO_MAP_END", + "X0251_MID_SCENARIO_OPENING", + "X0252_MID_SCENARIO_MAP_BEGIN", + "X0252_MID_SCENARIO_MAP_END", + "X0253_MID_SCENARIO_MAP_BEGIN", + "X0253_MID_SCENARIO_MAP_END", + "X0261_MID_SCENARIO_MAP_BEGIN", + "X0261_MID_SCENARIO_MAP_END", + "X0261_MID_SCENARIO_OPENING", + "X0262_MID_SCENARIO_MAP_BEGIN", + "X0262_MID_SCENARIO_MAP_END", + "X0262_MID_SCENARIO_OPENING", + "X0263_MID_SCENARIO_ENDING", + "X0263_MID_SCENARIO_MAP_BEGIN", + "X0263_MID_SCENARIO_MAP_END", + "X0263_MID_SCENARIO_OPENING", + "X0271_MID_SCENARIO_MAP_BEGIN", + "X0271_MID_SCENARIO_MAP_END", + "X0271_MID_SCENARIO_OPENING", + "X0272_MID_SCENARIO_MAP_BEGIN", + "X0272_MID_SCENARIO_MAP_END", + "X0273_MID_SCENARIO_MAP_BEGIN", + "X0273_MID_SCENARIO_MAP_END", + "X0281_MID_SCENARIO_MAP_BEGIN", + "X0281_MID_SCENARIO_MAP_END", + "X0281_MID_SCENARIO_OPENING", + "X0282_MID_SCENARIO_MAP_BEGIN", + "X0282_MID_SCENARIO_MAP_END", + "X0283_MID_SCENARIO_MAP_BEGIN", + "X0283_MID_SCENARIO_MAP_END", + "X0291_MID_SCENARIO_MAP_BEGIN", + "X0291_MID_SCENARIO_MAP_END", + "X0291_MID_SCENARIO_OPENING", + "X0292_MID_SCENARIO_MAP_BEGIN", + "X0292_MID_SCENARIO_MAP_END", + "X0293_MID_SCENARIO_MAP_BEGIN", + "X0293_MID_SCENARIO_MAP_END", + "X0301_MID_SCENARIO_MAP_BEGIN", + "X0301_MID_SCENARIO_MAP_END", + "X0301_MID_SCENARIO_OPENING", + "X0302_MID_SCENARIO_MAP_BEGIN", + "X0302_MID_SCENARIO_MAP_END", + "X0303_MID_SCENARIO_MAP_BEGIN", + "X0303_MID_SCENARIO_MAP_END", + "X0311_MID_SCENARIO_MAP_BEGIN", + "X0311_MID_SCENARIO_MAP_END", + "X0311_MID_SCENARIO_OPENING", + "X0312_MID_SCENARIO_MAP_BEGIN", + "X0312_MID_SCENARIO_MAP_END", + "X0313_MID_SCENARIO_MAP_BEGIN", + "X0313_MID_SCENARIO_MAP_END", + "X0321_MID_SCENARIO_MAP_BEGIN", + "X0321_MID_SCENARIO_MAP_END", + "X0321_MID_SCENARIO_OPENING", + "X0322_MID_SCENARIO_MAP_BEGIN", + "X0322_MID_SCENARIO_MAP_END", + "X0323_MID_SCENARIO_MAP_BEGIN", + "X0323_MID_SCENARIO_MAP_END", + "X0331_MID_SCENARIO_MAP_BEGIN", + "X0331_MID_SCENARIO_MAP_END", + "X0331_MID_SCENARIO_OPENING", + "X0332_MID_SCENARIO_MAP_BEGIN", + "X0332_MID_SCENARIO_MAP_END", + "X0333_MID_SCENARIO_MAP_BEGIN", + "X0333_MID_SCENARIO_MAP_END", + "X0341_MID_SCENARIO_MAP_BEGIN", + "X0341_MID_SCENARIO_MAP_END", + "X0341_MID_SCENARIO_OPENING", + "X0342_MID_SCENARIO_MAP_BEGIN", + "X0342_MID_SCENARIO_MAP_END", + "X0343_MID_SCENARIO_MAP_BEGIN", + "X0343_MID_SCENARIO_MAP_END", + "X0351_MID_SCENARIO_MAP_BEGIN", + "X0351_MID_SCENARIO_MAP_END", + "X0351_MID_SCENARIO_OPENING", + "X0352_MID_SCENARIO_MAP_BEGIN", + "X0352_MID_SCENARIO_MAP_END", + "X0353_MID_SCENARIO_MAP_BEGIN", + "X0353_MID_SCENARIO_MAP_END", + "X0361_MID_SCENARIO_MAP_BEGIN", + "X0361_MID_SCENARIO_MAP_END", + "X0361_MID_SCENARIO_OPENING", + "X0362_MID_SCENARIO_MAP_BEGIN", + "X0362_MID_SCENARIO_MAP_END", + "X0363_MID_SCENARIO_MAP_BEGIN", + "X0363_MID_SCENARIO_MAP_END", + "X0371_MID_SCENARIO_MAP_BEGIN", + "X0371_MID_SCENARIO_MAP_END", + "X0371_MID_SCENARIO_OPENING", + "X0372_MID_SCENARIO_MAP_BEGIN", + "X0372_MID_SCENARIO_MAP_END", + "X0373_MID_SCENARIO_MAP_BEGIN", + "X0373_MID_SCENARIO_MAP_END", + "X0381_MID_SCENARIO_MAP_BEGIN", + "X0381_MID_SCENARIO_MAP_END", + "X0381_MID_SCENARIO_OPENING", + "X0382_MID_SCENARIO_MAP_BEGIN", + "X0382_MID_SCENARIO_MAP_END", + "X0383_MID_SCENARIO_MAP_BEGIN", + "X0383_MID_SCENARIO_MAP_END", + "X0391_MID_SCENARIO_MAP_BEGIN", + "X0391_MID_SCENARIO_MAP_END", + "X0391_MID_SCENARIO_OPENING", + "X0392_MID_SCENARIO_MAP_BEGIN", + "X0392_MID_SCENARIO_MAP_END", + "X0393_MID_SCENARIO_MAP_BEGIN", + "X0393_MID_SCENARIO_MAP_END", + "X0401_MID_SCENARIO_MAP_BEGIN", + "X0401_MID_SCENARIO_MAP_END", + "X0401_MID_SCENARIO_OPENING", + "X0402_MID_SCENARIO_MAP_BEGIN", + "X0402_MID_SCENARIO_MAP_END", + "X0403_MID_SCENARIO_MAP_BEGIN", + "X0403_MID_SCENARIO_MAP_END", + "X0411_MID_SCENARIO_MAP_BEGIN", + "X0411_MID_SCENARIO_MAP_END", + "X0411_MID_SCENARIO_OPENING", + "X0412_MID_SCENARIO_MAP_BEGIN", + "X0412_MID_SCENARIO_MAP_END", + "X0413_MID_SCENARIO_MAP_BEGIN", + "X0413_MID_SCENARIO_MAP_END", + "X0421_MID_SCENARIO_MAP_BEGIN", + "X0421_MID_SCENARIO_MAP_END", + "X0421_MID_SCENARIO_OPENING", + "X0422_MID_SCENARIO_MAP_BEGIN", + "X0422_MID_SCENARIO_MAP_END", + "X0423_MID_SCENARIO_MAP_BEGIN", + "X0423_MID_SCENARIO_MAP_END", + "X0431_MID_SCENARIO_MAP_BEGIN", + "X0431_MID_SCENARIO_MAP_END", + "X0431_MID_SCENARIO_OPENING", + "X0432_MID_SCENARIO_MAP_BEGIN", + "X0432_MID_SCENARIO_MAP_END", + "X0433_MID_SCENARIO_MAP_BEGIN", + "X0433_MID_SCENARIO_MAP_END", + "X0441_MID_SCENARIO_ENDING", + "X0441_MID_SCENARIO_MAP_BEGIN", + "X0441_MID_SCENARIO_MAP_END", + "X0441_MID_SCENARIO_OPENING", + "X0442_MID_SCENARIO_MAP_BEGIN", + "X0442_MID_SCENARIO_MAP_END", + "X0443_MID_SCENARIO_MAP_BEGIN", + "X0443_MID_SCENARIO_MAP_END", + "X0451_MID_SCENARIO_MAP_BEGIN", + "X0451_MID_SCENARIO_MAP_END", + "X0451_MID_SCENARIO_OPENING", + "X0452_MID_SCENARIO_MAP_BEGIN", + "X0452_MID_SCENARIO_MAP_END", + "X0453_MID_SCENARIO_MAP_BEGIN", + "X0453_MID_SCENARIO_MAP_END", + "X0461_MID_SCENARIO_MAP_BEGIN", + "X0461_MID_SCENARIO_MAP_END", + "X0461_MID_SCENARIO_OPENING", + "X0462_MID_SCENARIO_MAP_BEGIN", + "X0462_MID_SCENARIO_MAP_END", + "X0463_MID_SCENARIO_MAP_BEGIN", + "X0463_MID_SCENARIO_MAP_END", + "X0471_MID_SCENARIO_MAP_BEGIN", + "X0471_MID_SCENARIO_MAP_END", + "X0471_MID_SCENARIO_OPENING", + "X0472_MID_SCENARIO_MAP_BEGIN", + "X0472_MID_SCENARIO_MAP_END", + "X0473_MID_SCENARIO_MAP_BEGIN", + "X0473_MID_SCENARIO_MAP_END", + "X0481_MID_SCENARIO_MAP_BEGIN", + "X0481_MID_SCENARIO_MAP_END", + "X0481_MID_SCENARIO_OPENING", + "X0482_MID_SCENARIO_MAP_BEGIN", + "X0482_MID_SCENARIO_MAP_END", + "X0483_MID_SCENARIO_MAP_BEGIN", + "X0483_MID_SCENARIO_MAP_END", + "X0491_MID_SCENARIO_MAP_BEGIN", + "X0491_MID_SCENARIO_MAP_END", + "X0491_MID_SCENARIO_OPENING", + "X0492_MID_SCENARIO_MAP_BEGIN", + "X0492_MID_SCENARIO_MAP_END", + "X0493_MID_SCENARIO_MAP_BEGIN", + "X0493_MID_SCENARIO_MAP_END", + "XX001_MID_SCENARIO_ENDING", + "XX001_MID_SCENARIO_MAP_BEGIN", + "XX001_MID_SCENARIO_MAP_END", + "XX002_MID_SCENARIO_ENDING", + "XX002_MID_SCENARIO_MAP_BEGIN", + "XX002_MID_SCENARIO_MAP_END", + "XX002_MID_SCENARIO_OPENING", + "XX003_MID_SCENARIO_MAP_BEGIN", + "XX003_MID_SCENARIO_MAP_END", + "XX003_MID_SCENARIO_OPENING", + "XX004_MID_SCENARIO_MAP_BEGIN", + "XX004_MID_SCENARIO_MAP_END", + "XX004_MID_SCENARIO_OPENING", + "XX005_MID_SCENARIO_ENDING", + "XX005_MID_SCENARIO_MAP_BEGIN", + "XX005_MID_SCENARIO_MAP_END", + "XX005_MID_SCENARIO_OPENING", +) + +bgms = { + "X0001_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0001_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0002_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0003_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0004_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0005_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0006_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0021_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_01", + "X0022_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0023_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0031_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0031_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0032_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0033_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0041_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "X0041_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0042_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_01", + "X0043_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_01", + "X0043_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0051_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0051_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0052_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0053_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0061_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0062_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0063_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0071_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0071_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0072_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0073_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0081_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0081_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0082_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0083_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0091_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "X0092_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0093_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_04", + "X0093_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "X0101_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0102_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0103_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0111_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0111_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0112_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0113_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0121_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "X0122_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_04", + "X0123_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_01", + "X0123_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0131_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0132_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0133_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0141_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0142_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0143_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0151_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0151_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0152_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_01", + "X0153_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0161_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0161_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0162_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0163_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0171_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0171_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0172_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0173_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0181_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0181_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0182_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0183_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0191_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0191_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0192_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0193_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0201_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0201_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0202_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0203_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0211_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0211_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0212_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0213_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0221_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0222_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03", + "X0223_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_04", + "X0231_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "X0231_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0232_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0233_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0241_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0241_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0242_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0243_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0251_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_04", + "X0251_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0252_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0253_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0261_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_AMB_USERNAME", + "X0261_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_04", + "X0262_MID_SCENARIO_OPENING_BGM": "BGM_AMB_USERNAME", + "X0263_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_04", + "X0263_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_01", + "X0271_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0271_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0272_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_02", + "X0273_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0281_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0281_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0282_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0283_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_05", + "X0291_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0291_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0292_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0293_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0301_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0301_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0302_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0303_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0311_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0311_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_02", + "X0312_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0313_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0321_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0321_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_02", + "X0322_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0323_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0331_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0331_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0332_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0333_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0341_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0341_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0342_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0343_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0351_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0351_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0352_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0353_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0361_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0362_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0363_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0371_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0371_MID_SCENARIO_OPENING_BGM": "BGM_MENU_TITLE", + "X0372_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0373_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0381_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0381_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0382_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0383_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0391_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0391_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0392_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_03", + "X0393_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0401_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_14", + "X0401_MID_SCENARIO_OPENING_BGM": "BGM_MAP_FE14_05", + "X0402_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FE14_14", + "X0403_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0411_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "X0412_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_01", + "X0413_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0421_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0421_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE15_01", + "X0422_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0423_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0431_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0431_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE07_03", + "X0432_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0433_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0441_MID_SCENARIO_ENDING_BGM": "BGM_MENU_TENRO", + "X0441_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_MAP_FE01_01", + "X0441_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_02", + "X0442_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_MAP_FE01_01", + "X0443_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_MAP_FE01_01", + "X0451_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0451_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE10_01", + "X0452_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0453_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0461_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0461_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE08_04", + "X0462_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0463_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0471_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0471_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE16_02", + "X0472_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0473_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0481_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE04_01", + "X0482_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MNS_FE14_06", + "X0483_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "X0491_MID_SCENARIO_OPENING_BGM": "BGM_MNS_FE04_02", + "X0492_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_MAP_FES_04", + "X0493_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_PLAIN_03_2", + "XX001_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_03", + "XX001_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_02", + "XX002_MID_SCENARIO_ENDING_BGM": "BGM_EVENT_SERIOUS_03", + "XX002_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_SERIOUS_02", + "XX003_MID_SCENARIO_OPENING_BGM": "BGM_EVENT_PLAIN_01", + "XX004_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_01", + "XX005_MID_SCENARIO_ENDING_BGM": "BGM_MENU_TENRO", + "XX005_MID_SCENARIO_MAP_BEGIN_BGM": "BGM_EVENT_SERIOUS_04", + "XX005_MID_SCENARIO_OPENING_BGM": "BGM_MENU_TENRO", +} + +bgs = { + "X0001_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0004_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0021_MID_SCENARIO_OPENING_IMAGE": "005_Castle", + "X0023_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "X0031_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0041_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0043_MID_SCENARIO_ENDING_IMAGE": "002_PlainForest", + "X0051_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0061_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0063_MID_SCENARIO_ENDING_IMAGE": "001_Brave", + "X0071_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0081_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0093_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "X0101_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0111_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0123_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "X0141_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0151_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0161_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0171_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0181_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0191_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0201_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0203_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "X0211_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0213_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "X0221_MID_SCENARIO_OPENING_IMAGE": "022_ByakuyaSummer", + "X0231_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0241_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0251_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0261_MID_SCENARIO_OPENING_IMAGE": "022_DreameInvisibleKingdom", + "X0262_MID_SCENARIO_OPENING_IMAGE": "022_DreameInvisibleKingdom", + "X0263_MID_SCENARIO_ENDING_IMAGE": "022_DreameInvisibleKingdom", + "X0263_MID_SCENARIO_OPENING_IMAGE": "022_DreameInvisibleKingdom", + "X0271_MID_SCENARIO_OPENING_IMAGE": "013_ChristmasForest", + "X0281_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0291_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0301_MID_SCENARIO_OPENING_IMAGE": "024_Valentine", + "X0311_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0321_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0331_MID_SCENARIO_OPENING_IMAGE": "EvBg_BrideChurch_Outside", + "X0341_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0351_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0361_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0371_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0381_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0391_MID_SCENARIO_OPENING_IMAGE": "013_ChristmasForest", + "X0401_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0411_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0421_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "X0431_MID_SCENARIO_OPENING_IMAGE": "EvBg_Easter2", + "X0441_MID_SCENARIO_ENDING_IMAGE": "EvBg__Plain30th", + "X0441_MID_SCENARIO_OPENING_IMAGE": "EvBg__Plain30th", + "X0451_MID_SCENARIO_OPENING_IMAGE": "EvBg_CastleJPWedding", + "X0461_MID_SCENARIO_OPENING_IMAGE": "EvBg_Beach", + "X0471_MID_SCENARIO_OPENING_IMAGE": "EvBg_Beach", + "X0481_MID_SCENARIO_OPENING_IMAGE": "EvBg_TreasureIsland", + "X0491_MID_SCENARIO_OPENING_IMAGE": "EvBg_SeisenDancehall", + "XX001_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "XX002_MID_SCENARIO_ENDING_IMAGE": "005_Castle", + "XX002_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "XX003_MID_SCENARIO_OPENING_IMAGE": "001_Brave", + "XX004_MID_SCENARIO_OPENING_IMAGE": "026_MuspelTemple", + "XX005_MID_SCENARIO_ENDING_IMAGE": "EvBg_Chapter3_Hell", + "XX005_MID_SCENARIO_OPENING_IMAGE": "EvBg_Chapter3_Hell", +} + dragons = { 127: 69, 129: 84, @@ -19,6 +668,12 @@ class UnitSide(enum.Enum): ALLY = 1 ENEMY = 2 +class Scenario(enum.Enum): + OPENING = 1 + MAP_BEGIN = 2 + MAP_END = 3 + ENDING = 4 + def load_unit(object: TiledObject, side: UnitSide): character = object.name if len(character) == 0: @@ -56,6 +711,21 @@ def load_unit(object: TiledObject, side: UnitSide): AI[4] = 'GuardTile' print('\t{}_UNIT({}, {}, {}, {}, {}, {}, {}{})'.format(side.name, character, job, level, autoLevel, x, y, ', '.join(items), ', '.join(AI))) +def load_scenario(scenario: Scenario): + text = '{}_MID_SCENARIO_{}'.format(map_name, scenario.name) + bgm = text + '_BGM' + bg = text + '_IMAGE' + if bg in bgs: + bg = bgs[bg] + if bg[0].isdigit(): + bg = 'BG' + bg + print('\tShowBG({})'.format(bg)) + if bgm in bgms: + bgm = bgms[bgm] + print('\tMUSC ' + bgm) + if text in texts: + print('\tTEX1 EvTx_' + text) + map_name = get_filename(sys.argv[1]) map_file = Path(sys.argv[1]) map = pytiled_parser.parse_map(map_file) @@ -71,6 +741,7 @@ def load_unit(object: TiledObject, side: UnitSide): print('\t#include "AI.h"') print('\t#include "background_id.h"') print('\t#include "music_id.h"\n') +print('\t#include "event_text_id.h"') # header print('\t.section .rodata') @@ -95,13 +766,17 @@ def load_unit(object: TiledObject, side: UnitSide): print('\tEND_MAIN') print('BeginningScene:') +load_scenario(Scenario.OPENING) print('\tLOU1 EnemyUnits') print('\tENUN') print('\tLOU1 AllyUnits') print('\tENUN') +load_scenario(Scenario.MAP_BEGIN) print('\tENDB') print('EndingScene:') +load_scenario(Scenario.MAP_END) +load_scenario(Scenario.ENDING) print('\tMNCH ' + map_name + 'Next') print('\tENDA')