msg on bg script commands

This commit is contained in:
DizzyEggg 2025-06-19 10:59:07 +02:00
parent 03b05a4a31
commit 0b56ca5480
19 changed files with 164 additions and 159 deletions

View File

@ -49,6 +49,9 @@
#define MSG_INSTANT(msg) { 0x32, 0, -1, 0, 0, msg }
#define MSG_NPC(id, msg) { 0x34, 0, id, 0, 0, msg } // ID is portrait id of the npc. -1 means no portrait
#define MSG_LETTER(msg) { 0x35, 0, -1, 0, 0, msg }
#define MSG_ON_BG(msg) { 0x37, 0, -1, 0, 0, msg } // Prints raw text on bg without any windows. Used for the intro portal messages. To advance the text player needs to press a button.
#define MSG_ON_BG2(msg) { 0x38, 0, -1, 0, 0, msg } // Identical to the above, used literally once for just a newline.
#define MSG_ON_BG_AUTO(u, msg) { 0x39, 0, u, 0, 0, msg } // Similar to the above, but the message appears and fades automatically, without any player's input. Used for narration text. The short argument isn't really used, but needs to be greater than 0.
// 3a: yes/no choice (only used for saving)
// 3b: uber command (conditional jump)
// 3c: unknown textbox-related cjump

View File

@ -23,5 +23,8 @@ void ResetTextboxPortrait(s16 id_);
bool8 ScriptSetPortraitInfo(s32 portraitId_, s32 spriteId_, s32 placementId_);
bool8 ScriptSetPortraitPosDelta(s32 portraitId_, PixelPos *newPosDelta);
bool8 ScriptPrintText(s32 scriptMsgType, s32 speakerId_, const char *text);
bool8 ScriptPrintTextOnBg(const char *text);
bool8 ScriptPrintTextOnBg2(const char *text);
bool8 sub_809AF6C(s32 unused, const char *text);
#endif // GUARD_WONDER_MAIL_H

View File

@ -24,9 +24,9 @@ static const struct ScriptCommand s_gs164_g1_s0_station_sref_script[] = { /* 0x8
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(164),
{ 0x2d, 0x09, 0x0000, 0x00000021, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Thus began\n{CENTER_ALIGN}{NAME_0}'s") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}cruel and arduous\n{CENTER_ALIGN}journey as a fugitive.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Over forbidding mountains...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Thus began\n{CENTER_ALIGN}{NAME_0}'s")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}cruel and arduous\n{CENTER_ALIGN}journey as a fugitive.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Over forbidding mountains...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -23,7 +23,7 @@ static const struct ScriptCommand s_gs165_g1_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(165),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Across fields of fire...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Across fields of fire...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -33,8 +33,8 @@ static const struct ScriptCommand s_gs165_g1_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0000, 0x00000021, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But throughout it all,\n{CENTER_ALIGN}{NAME_0}'s team kept\n{CENTER_ALIGN}their heads held high.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Without a complaint,\n{CENTER_ALIGN}they marched on.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}But throughout it all,\n{CENTER_ALIGN}{NAME_0}'s team kept\n{CENTER_ALIGN}their heads held high.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Without a complaint,\n{CENTER_ALIGN}they marched on.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -42,14 +42,14 @@ static const struct ScriptCommand s_gs167_g2_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0000, 0x00000021, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And so, {NAME_0}'s\n{CENTER_ALIGN}harrowing journey continued.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Seeking refuge in\n{CENTER_ALIGN}even harsher places...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}They fled north.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}They crossed row upon\n{CENTER_ALIGN}row of mountains...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Forded fetid swamps...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Scaled frozen cliffs...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Till finally, {NAME_0}'s tiny team\n{CENTER_ALIGN}arrived in a world of snow...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}A frigid wasteland of\n{CENTER_ALIGN}driving blizzards.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And so, {NAME_0}'s\n{CENTER_ALIGN}harrowing journey continued.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Seeking refuge in\n{CENTER_ALIGN}even harsher places...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}They fled north.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}They crossed row upon\n{CENTER_ALIGN}row of mountains...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Forded fetid swamps...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Scaled frozen cliffs...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Till finally, {NAME_0}'s tiny team\n{CENTER_ALIGN}arrived in a world of snow...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}A frigid wasteland of\n{CENTER_ALIGN}driving blizzards.")),
BGM_FADEOUT(120),
{ 0xe0, 0x00, 0x0018, 0x00000000, 0x00000000, NULL },
TEXTBOX_CLEAR,

View File

@ -88,13 +88,13 @@ static const struct ScriptCommand s_gs175_g2_s0_eff1_script[] = { /* 0x822b3d0 *
TEXTBOX_AUTO_PRESS(190, 190),
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
WAIT(1),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("\n{CENTER_ALIGN}I don't want to leave...") },
MSG_ON_BG_AUTO(30, _("\n{CENTER_ALIGN}I don't want to leave...")),
WAIT(100),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("\n{CENTER_ALIGN}I want to stay longer...") },
MSG_ON_BG_AUTO(30, _("\n{CENTER_ALIGN}I want to stay longer...")),
WAIT(100),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("\n{CENTER_ALIGN}With my invaluable...") },
MSG_ON_BG_AUTO(30, _("\n{CENTER_ALIGN}With my invaluable...")),
WAIT(100),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("\n{CENTER_ALIGN}Irreplaceable friend...") },
MSG_ON_BG_AUTO(30, _("\n{CENTER_ALIGN}Irreplaceable friend...")),
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL },

View File

@ -98,15 +98,15 @@ static const struct ScriptCommand s_gs176_g1_s0_eff1_script[] = { /* 0x822bb50 *
WAIT(90),
TEXTBOX_AUTO_PRESS(180, 180),
WAIT(60),
{ 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Your friend is heartbroken...") },
MSG_ON_BG_AUTO(90, _("{CENTER_ALIGN}Your friend is heartbroken...")),
WAIT(80),
{ 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{CENTER_ALIGN}A true friend...\n{CENTER_ALIGN}A friend for life...") },
MSG_ON_BG_AUTO(90, _("{CENTER_ALIGN}A true friend...\n{CENTER_ALIGN}A friend for life...")),
WAIT(80),
{ 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{CENTER_ALIGN}You finally realize it now...") },
MSG_ON_BG_AUTO(90, _("{CENTER_ALIGN}You finally realize it now...")),
WAIT(80),
{ 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you wish...\n{CENTER_ALIGN}And wish very strongly...") },
MSG_ON_BG_AUTO(90, _("{CENTER_ALIGN}If you wish...\n{CENTER_ALIGN}And wish very strongly...")),
WAIT(80),
{ 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Perhaps you will meet again.") },
MSG_ON_BG_AUTO(90, _("{CENTER_ALIGN}Perhaps you will meet again.")),
TEXTBOX_CLEAR2,
WAIT(60),
{ 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL },

View File

@ -23,7 +23,7 @@ static const struct ScriptCommand s_gs177_g1_s0_station_sref_script[] = { /* 0x8
{ 0xe0, 0x00, 0x002d, 0x00000000, 0x00000000, NULL },
WAIT(240),
TEXTBOX_AUTO_PRESS(-1, -1),
{ 0x38, 0x00, -0x0001, 0x00000000, 0x00000000, _("\n") },
MSG_ON_BG2(_("\n")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x23, 0x01, 0x0078, 0x00000000, 0x00000000, NULL },
@ -31,11 +31,11 @@ static const struct ScriptCommand s_gs177_g1_s0_station_sref_script[] = { /* 0x8
{ 0x2d, 0x09, 0x0000, 0x00000001, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The story of {NAME_0} and\n{CENTER_ALIGN}{NAME_1} ends here.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But {TEAM_NAME} isn't done yet!\n{CENTER_ALIGN}There are many rescues to be done!") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}A new adventure begins!") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The legendary Pokémon are set\n{CENTER_ALIGN}to make their appearance!") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Don't go away!") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The story of {NAME_0} and\n{CENTER_ALIGN}{NAME_1} ends here.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}But {TEAM_NAME} isn't done yet!\n{CENTER_ALIGN}There are many rescues to be done!")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}A new adventure begins!")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The legendary Pokémon are set\n{CENTER_ALIGN}to make their appearance!")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Don't go away!")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -1549,9 +1549,9 @@ static const struct ScriptCommand s_gs9_g17_s0_station_sref_script[] = { /* 0x81
{ 0x2d, 0x09, 0x0000, 0x00000021, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL },
WAIT(60),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And that is how") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} and {NAME_1}\n{CENTER_ALIGN}began their careers together") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}as a rescue team.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And that is how")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}{NAME_0} and {NAME_1}\n{CENTER_ALIGN}began their careers together")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}as a rescue team.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -7331,7 +7331,7 @@ static const struct ScriptCommand s_gs9_g49_s0_station_sref_script[] = { /* 0x81
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next dawn...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next dawn...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -10463,9 +10463,9 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */
{ 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL },
{ 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL },
WAIT(30),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} was suddenly attacked\n{CENTER_ALIGN}by the {NAME_4} gang!") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}However...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {NAME_4} gang was weak.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}{NAME_0} was suddenly attacked\n{CENTER_ALIGN}by the {NAME_4} gang!")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}However...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The {NAME_4} gang was weak.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -11171,10 +11171,10 @@ static const struct ScriptCommand s_gs9_g76_s0_station_sref_script[] = { /* 0x81
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And so...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Construction work began on\n{CENTER_ALIGN}the rescue team base of") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}'s team\n{CENTER_ALIGN}{TEAM_NAME}.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Several days later...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And so...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Construction work began on\n{CENTER_ALIGN}the rescue team base of")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}{NAME_0}'s team\n{CENTER_ALIGN}{TEAM_NAME}.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Several days later...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -11746,9 +11746,9 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */
BGM_FADEOUT(60),
{ 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} was suddenly attacked\n{CENTER_ALIGN}by the {NAME_2} gang!") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}However...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {NAME_2} gang was weak.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}{NAME_0} was suddenly attacked\n{CENTER_ALIGN}by the {NAME_2} gang!")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}However...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The {NAME_2} gang was weak.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -11825,11 +11825,11 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */
{ 0x23, 0x01, 0x003c, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
WAIT(30),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And so...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Supplied with another peeled Chestnut,\n{CENTER_ALIGN}the {NAME_2} gang got motivated...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And returned to work on\n{CENTER_ALIGN}the rescue team base's renovation.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}As a result...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team base's completion\n{CENTER_ALIGN}moved a little closer.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And so...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Supplied with another peeled Chestnut,\n{CENTER_ALIGN}the {NAME_2} gang got motivated...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And returned to work on\n{CENTER_ALIGN}the rescue team base's renovation.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}As a result...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The rescue team base's completion\n{CENTER_ALIGN}moved a little closer.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -12000,11 +12000,11 @@ static const struct ScriptCommand s_gs9_g78_s0_station_sref_script[] = { /* 0x81
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE),
{ 0x2d, 0x09, 0x0000, 0x0000006f, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And so...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Supplied with another peeled Chestnut,\n{CENTER_ALIGN}the {NAME_0} gang got motivated...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And returned to work on\n{CENTER_ALIGN}the rescue team base's renovation.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And finally...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team base was completed!") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And so...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Supplied with another peeled Chestnut,\n{CENTER_ALIGN}the {NAME_0} gang got motivated...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And returned to work on\n{CENTER_ALIGN}the rescue team base's renovation.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And finally...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The rescue team base was completed!")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -12016,12 +12016,12 @@ static const struct ScriptCommand s_gs9_g78_s0_station_sref_script[] = { /* 0x81
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
WAIT(30),
{ 0x2d, 0x09, 0x0000, 0x0000006f, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}As a result of everyone's desperate\n{CENTER_ALIGN}efforts to stop the {NAME_0} gang...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team base was saved.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}As for the {NAME_4} gang, they\n{CENTER_ALIGN}promised to keep from rampaging...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}In return for more peeled Chestnuts,\n{CENTER_ALIGN}they returned to their forest.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And that is how...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The chaotic renovation of\n{CENTER_ALIGN}the rescue team base came to an end.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}As a result of everyone's desperate\n{CENTER_ALIGN}efforts to stop the {NAME_0} gang...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The rescue team base was saved.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}As for the {NAME_4} gang, they\n{CENTER_ALIGN}promised to keep from rampaging...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}In return for more peeled Chestnuts,\n{CENTER_ALIGN}they returned to their forest.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And that is how...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The chaotic renovation of\n{CENTER_ALIGN}the rescue team base came to an end.")),
TEXTBOX_CLEAR,
CANCEL_ENTITIES(-1, 0),
WAIT(1),
@ -13084,7 +13084,7 @@ static const struct ScriptCommand s_gs9_g81_s0_station_sref_script[] = { /* 0x81
SELECT_MAP(MAP_TEAM_BASE),
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -255,7 +255,7 @@ static const struct ScriptCommand s_gs12_g3_s0_station_sref_script[] = { /* 0x81
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -334,7 +334,7 @@ static const struct ScriptCommand s_gs12_g6_s0_station_sref_script[] = { /* 0x81
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -858,9 +858,9 @@ static const struct ScriptCommand s_gs12_g10_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}No...\n{CENTER_ALIGN}Morning, but only by time...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}A time so early in the morning\n{CENTER_ALIGN}that everyone is still in bed...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}No...\n{CENTER_ALIGN}Morning, but only by time...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}A time so early in the morning\n{CENTER_ALIGN}that everyone is still in bed...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -911,7 +911,7 @@ static const struct ScriptCommand s_gs12_g11_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Several hours later...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Several hours later...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -976,7 +976,7 @@ static const struct ScriptCommand s_gs12_g12_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1120,7 +1120,7 @@ static const struct ScriptCommand s_gs12_g13_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1220,7 +1220,7 @@ static const struct ScriptCommand s_gs12_g14_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1299,7 +1299,7 @@ static const struct ScriptCommand s_gs12_g15_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_ENTITIES(-1, 0),
BGM_SWITCH(1),
@ -1459,7 +1459,7 @@ static const struct ScriptCommand s_gs12_g18_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_ENTITIES(-1, 0),
BGM_SWITCH(1),
@ -1532,7 +1532,7 @@ static const struct ScriptCommand s_gs12_g20_s0_station_sref_script[] = { /* 0x8
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_ENTITIES(-1, 0),
{ 0x22, 0x01, 0x003c, 0x00000000, 0x00000000, NULL },
@ -1660,7 +1660,7 @@ static const struct ScriptCommand s_gs12_g21_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_ENTITIES(-1, 0),
BGM_SWITCH(1),
@ -1695,7 +1695,7 @@ static const struct ScriptCommand s_gs12_g22_s0_station_sref_script[] = { /* 0x8
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1731,7 +1731,7 @@ static const struct ScriptCommand s_gs12_g23_s0_station_sref_script[] = { /* 0x8
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1767,7 +1767,7 @@ static const struct ScriptCommand s_gs12_g24_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1831,7 +1831,7 @@ static const struct ScriptCommand s_gs12_g26_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1895,7 +1895,7 @@ static const struct ScriptCommand s_gs12_g28_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -1959,7 +1959,7 @@ static const struct ScriptCommand s_gs12_g30_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2023,7 +2023,7 @@ static const struct ScriptCommand s_gs12_g32_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2054,7 +2054,7 @@ static const struct ScriptCommand s_gs12_g33_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2145,7 +2145,7 @@ static const struct ScriptCommand s_gs12_g35_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2176,7 +2176,7 @@ static const struct ScriptCommand s_gs12_g36_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2260,7 +2260,7 @@ static const struct ScriptCommand s_gs12_g38_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2310,7 +2310,7 @@ static const struct ScriptCommand s_gs12_g39_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2393,7 +2393,7 @@ static const struct ScriptCommand s_gs12_g40_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2428,7 +2428,7 @@ static const struct ScriptCommand s_gs12_g41_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2554,7 +2554,7 @@ static const struct ScriptCommand s_gs12_g43_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The next morning...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -2622,14 +2622,14 @@ static const struct ScriptCommand s_gs12_g45_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(MAP_TEAM_BASE_INSIDE),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Due to {NAME_0} and\n{CENTER_ALIGN}{NAME_1}'s heroic actions...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}the falling star was destroyed...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}and peace returned to\n{CENTER_ALIGN}the world of Pokémon.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But that did not put an end\n{CENTER_ALIGN}to the natural calamities.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Natural disasters still occurred,\n{CENTER_ALIGN}but much less often.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Needless to say,\n{CENTER_ALIGN}{TEAM_NAME}'s rescue activities") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}continued as if nothing had changed.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Several mornings later...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Due to {NAME_0} and\n{CENTER_ALIGN}{NAME_1}'s heroic actions...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}the falling star was destroyed...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}and peace returned to\n{CENTER_ALIGN}the world of Pokémon.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}But that did not put an end\n{CENTER_ALIGN}to the natural calamities.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Natural disasters still occurred,\n{CENTER_ALIGN}but much less often.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Needless to say,\n{CENTER_ALIGN}{TEAM_NAME}'s rescue activities")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}continued as if nothing had changed.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Several mornings later...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -41,11 +41,11 @@ static const struct ScriptCommand s_gs178_g1_s0_station_sref_script[] = { /* 0x8
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(178),
WAIT(100),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Where am I?") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Am I dreaming this?") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I feel a pleasant breeze.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}...I hear a voice from somewhere...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I wonder who it is?") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Where am I?")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Am I dreaming this?")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}I feel a pleasant breeze.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}...I hear a voice from somewhere...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}I wonder who it is?")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -27,11 +27,11 @@ static const struct ScriptCommand s_gs200_g1_s0_station_sref_script[] = { /* 0x8
BGM_FADEOUT(60),
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
WAIT(30),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And so...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}After getting through the Frosty\n{CENTER_ALIGN}Forest, {NAME_0}'s team...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Headed further north...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The more they advanced...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The harsher the conditions became...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And so...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}After getting through the Frosty\n{CENTER_ALIGN}Forest, {NAME_0}'s team...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Headed further north...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The more they advanced...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The harsher the conditions became...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -650,11 +650,11 @@ static const struct ScriptCommand s_gs203_g3_s0_station_sref_script[] = { /* 0x8
{ 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0002, 0x00000058, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0003, 0x00000067, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And thus...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Alakazam's team made their\n{CENTER_ALIGN}way underground to quell\n{CENTER_ALIGN}the awakened {NAME_3}.") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Meanwhile, cleared of all\n{CENTER_ALIGN}suspicion, {NAME_0}'s team...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Put an end to their long\n{CENTER_ALIGN}and arduous journey...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And returned to their\n{CENTER_ALIGN}welcoming rescue team base.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And thus...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Alakazam's team made their\n{CENTER_ALIGN}way underground to quell\n{CENTER_ALIGN}the awakened {NAME_3}.")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Meanwhile, cleared of all\n{CENTER_ALIGN}suspicion, {NAME_0}'s team...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Put an end to their long\n{CENTER_ALIGN}and arduous journey...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And returned to their\n{CENTER_ALIGN}welcoming rescue team base.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -32,8 +32,8 @@ static const struct ScriptCommand s_gs206_g1_s0_station_sref_script[] = { /* 0x8
{ 0x2d, 0x09, 0x0000, 0x00000001, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0001, 0x00000058, 0x00000000, NULL },
{ 0x2d, 0x09, 0x0002, 0x00000067, 0x00000000, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Having calmed {NAME_2},\n{CENTER_ALIGN}{NAME_0}'s team left the dungeon...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And returned to Pokémon Square\n{CENTER_ALIGN}together with {NAME_1}'s team.") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Having calmed {NAME_2},\n{CENTER_ALIGN}{NAME_0}'s team left the dungeon...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And returned to Pokémon Square\n{CENTER_ALIGN}together with {NAME_1}'s team.")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -24,8 +24,8 @@ static const struct ScriptCommand s_gs216_g1_s0_station_sref_script[] = { /* 0x8
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(216),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}One day...") },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}In a small cave\n{CENTER_ALIGN}in the distant west...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}One day...")),
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}In a small cave\n{CENTER_ALIGN}in the distant west...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -173,7 +173,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 *
{ 0x28, 0x01, 0x0001, 0x00000005, 0x00ffffff, NULL },
WAIT(10),
{ 0x27, 0x01, 0x0001, 0x00000005, 0x00ffffff, NULL },
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Created only to fight...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Created only to fight...")),
TEXTBOX_CLEAR,
WAIT(10),
BGM_STOP,
@ -189,7 +189,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 *
{ 0x27, 0x01, 0x0001, 0x00000005, 0x00ffffff, NULL },
{ 0x23, 0x01, 0x000a, 0x00000000, 0x00000000, NULL },
TEXTBOX_AUTO_PRESS(120, 120),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The most powerful of all Pokémon!") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}The most powerful of all Pokémon!")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -19,12 +19,12 @@ static const struct ScriptCommand s_gs223_g1_s0_station_sref_script[] = { /* 0x8
DEBUGINFO,
BGM_STOP,
SELECT_MAP(223),
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Welcome!") },
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}This is the portal that leads\n{CENTER_ALIGN}to the world of Pokémon!") },
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But before I can let you through,\n{CENTER_ALIGN}I have several questions for you.") },
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I want you to answer them sincerely.") },
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Are you ready?") },
{ 0x37, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}OK...{WAIT_PRESS}\n{CENTER_ALIGN}Let the interview begin!") },
MSG_ON_BG(_("{CENTER_ALIGN}Welcome!")),
MSG_ON_BG(_("{CENTER_ALIGN}This is the portal that leads\n{CENTER_ALIGN}to the world of Pokémon!")),
MSG_ON_BG(_("{CENTER_ALIGN}But before I can let you through,\n{CENTER_ALIGN}I have several questions for you.")),
MSG_ON_BG(_("{CENTER_ALIGN}I want you to answer them sincerely.")),
MSG_ON_BG(_("{CENTER_ALIGN}Are you ready?")),
MSG_ON_BG(_("{CENTER_ALIGN}OK...{WAIT_PRESS}\n{CENTER_ALIGN}Let the interview begin!")),
TEXTBOX_CLEAR,
SELECT_ENTITIES(-1, 0),
BGM_SWITCH(12),

View File

@ -5603,7 +5603,7 @@ static const struct ScriptCommand s_gs1_g23_s0_station_sref_script[] = { /* 0x81
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(1),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Meanwhile, back in\n{CENTER_ALIGN}Pokémon Square...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}Meanwhile, back in\n{CENTER_ALIGN}Pokémon Square...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
@ -10828,7 +10828,7 @@ static const struct ScriptCommand s_gs1_g31_s0_station_sref_script[] = { /* 0x81
{ 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
{ 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },
SELECT_MAP(1),
{ 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And in the square...") },
MSG_ON_BG_AUTO(30, _("{CENTER_ALIGN}And in the square...")),
TEXTBOX_CLEAR,
WAIT(1),
{ 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL },

View File

@ -84,9 +84,6 @@ void sub_80975A8(s16, bool8);
u32 sub_809A6E4();
u32 sub_809A6F8();
u32 sub_809A768();
bool8 sub_809AEEC(const char*);
bool8 sub_809AF2C(const char*);
bool8 sub_809AF6C(s16, const char*);
void sub_809AFC8(bool8, s32, s32, const char*);
u32 sub_809B028(const MenuItem *, s32 a1_, s32 a2, s32 a3, s32 a4_, const char *text);
bool8 sub_809B1C0(s32, s32, char[12]);
@ -1952,8 +1949,8 @@ s32 ExecuteScriptCommand(Action *action)
case 0x34: ret = ScriptPrintText(SCRIPT_TEXT_TYPE_NPC, curCmd.argShort, curCmd.argPtr); break;
case 0x35: ret = ScriptPrintText(SCRIPT_TEXT_TYPE_LETTER, curCmd.argShort, curCmd.argPtr); break;
case 0x36: ret = ScriptPrintText(SCRIPT_TEXT_TYPE_4, curCmd.argShort, curCmd.argPtr); break;
case 0x37: ret = sub_809AEEC(curCmd.argPtr); break;
case 0x38: ret = sub_809AF2C(curCmd.argPtr); break;
case 0x37: ret = ScriptPrintTextOnBg(curCmd.argPtr); break;
case 0x38: ret = ScriptPrintTextOnBg2(curCmd.argPtr); break;
}
if (ret) {
sub_80A87AC(0, 10);

View File

@ -73,6 +73,8 @@ struct unkStruct_3001B64_unk418
enum {
TEXTBOX_TYPE_NORMAL = 1,
TEXTBOX_TYPE_ON_BG_PRESS, // Prints text on a bg without window, waits for the player button press
TEXTBOX_TYPE_ON_BG_AUTO, // Prints text on a bg, waits 32 frames and then fades out the text
};
struct Textbox
@ -301,7 +303,7 @@ EWRAM_DATA u16 gUnknown_20399DE = 0;
static void ResetAllTextboxPortraits(void);
static bool8 ScriptPrintTextInternal(struct TextboxText *ptr, u32 flags_, s32 a2_, const char *text);
static u32 ResetTextboxType(u32 textboxType, bool8 unused);
static u32 SetTextboxType(u32 textboxType, bool8 unused);
static void ResetTextbox(void);
void TextboxInit(void)
@ -349,10 +351,10 @@ void TextboxResetAll(void)
ResetTextboxPortrait(index);
}
sTextbox->unk414 = 0;
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
}
static u32 ResetTextboxType(u32 textboxType, bool8 unused)
static u32 SetTextboxType(u32 textboxType, bool8 unused)
{
switch (textboxType) {
case 0:
@ -362,10 +364,10 @@ static u32 ResetTextboxType(u32 textboxType, bool8 unused)
case TEXTBOX_TYPE_NORMAL:
ResetTextbox();
break;
case 2:
case TEXTBOX_TYPE_ON_BG_PRESS:
ResetTextbox();
break;
case 3:
case TEXTBOX_TYPE_ON_BG_AUTO:
ResetTextbox();
break;
case 4:
@ -427,13 +429,13 @@ u32 sub_809A768(void)
bool8 ScriptClearTextbox(void)
{
switch (sTextbox->type) {
case 3:
case TEXTBOX_TYPE_ON_BG_AUTO:
return ScriptPrintTextInternal(&sTextbox->text,4,-1,0);
case 1:
case 2:
return ScriptPrintTextInternal(&sTextbox->text,0x84,-1,0);
case TEXTBOX_TYPE_NORMAL:
case TEXTBOX_TYPE_ON_BG_PRESS:
return ScriptPrintTextInternal(&sTextbox->text,TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS | 0x4,-1,0);
default:
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
return FALSE;
}
}
@ -441,12 +443,12 @@ bool8 ScriptClearTextbox(void)
bool8 ScriptClearTextbox2(void)
{
switch (sTextbox->type) {
case 3:
case 1:
case 2:
case TEXTBOX_TYPE_ON_BG_AUTO:
case TEXTBOX_TYPE_NORMAL:
case TEXTBOX_TYPE_ON_BG_PRESS:
return ScriptPrintTextInternal(&sTextbox->text,4,-1,0);
default:
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
return FALSE;
}
}
@ -801,13 +803,13 @@ bool8 ScriptPrintText(s32 scriptMsgType, s32 speakerId_, const char *text)
return ScriptClearTextbox2();
}
else {
ResetTextboxType(sScriptTextboxTypes[scriptMsgType], FALSE);
SetTextboxType(sScriptTextboxTypes[scriptMsgType], FALSE);
return ScriptPrintTextInternal(&sTextbox->text, sScriptFlagSets[scriptMsgType], speakerId, text);
}
}
// These 2 functions are identical.
bool8 sub_809AEEC(const char *text)
bool8 ScriptPrintTextOnBg(const char *text)
{
if (text == NULL) {
return ScriptClearTextbox();
@ -816,12 +818,12 @@ bool8 sub_809AEEC(const char *text)
return ScriptClearTextbox();
}
else {
ResetTextboxType(2, TRUE);
SetTextboxType(TEXTBOX_TYPE_ON_BG_PRESS, TRUE);
return ScriptPrintTextInternal(&sTextbox->text, TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS | TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS_2 | TEXTBOX_FLAG_UNUSED_x2, -1, text);
}
}
bool8 sub_809AF2C(const char *text)
bool8 ScriptPrintTextOnBg2(const char *text)
{
if (text == NULL) {
return ScriptClearTextbox();
@ -830,7 +832,7 @@ bool8 sub_809AF2C(const char *text)
return ScriptClearTextbox();
}
else {
ResetTextboxType(2, TRUE);
SetTextboxType(TEXTBOX_TYPE_ON_BG_PRESS, TRUE);
return ScriptPrintTextInternal(&sTextbox->text, TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS | TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS_2 | TEXTBOX_FLAG_UNUSED_x2, -1, text);
}
}
@ -844,7 +846,7 @@ bool8 sub_809AF6C(s32 unused, const char *text)
return ScriptClearTextbox();
}
else {
ResetTextboxType(3, TRUE);
SetTextboxType(TEXTBOX_TYPE_ON_BG_AUTO, TRUE);
return ScriptPrintTextInternal(&sTextbox->text, 0x65, -1, text);
}
}
@ -878,7 +880,7 @@ void sub_809B028(const MenuItem * menuItems, s32 a1_, s32 a2, s32 a3, s32 a4_, c
s32 a1 = (u8) a1_;
s32 a4 = (s16) a4_;
ResetTextboxType(sScriptTextboxTypes[a3], FALSE);
SetTextboxType(sScriptTextboxTypes[a3], FALSE);
sTextbox->unk414 = 1;
sTextbox->unk418 = NULL;
sTextbox->unk41C = menuItems;
@ -935,7 +937,7 @@ bool8 sub_809B1D4(s32 a0, u32 kind, s32 a2, u8 *a3)
break;
}
ResetTextboxType(4, FALSE);
SetTextboxType(4, FALSE);
sTextbox->unk414 = a0;
sTextbox->unk418 = NULL;
sTextbox->unk41C = NULL;
@ -978,7 +980,7 @@ static bool8 ScriptPrintTextInternal(struct TextboxText *textboxText, u32 flags_
if (flags & 4) {
sub_8014490();
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
}
return TRUE;
}
@ -993,7 +995,7 @@ static bool8 ScriptPrintTextInternal(struct TextboxText *textboxText, u32 flags_
}
}
if (sTextbox->type == 3) {
if (sTextbox->type == TEXTBOX_TYPE_ON_BG_AUTO) {
sprintfStatic(textboxText->buffer, _("%s#[I]{WAIT_FRAMES 0x20}{0x81}{0x40}{WAIT_PRESS}\n#[O]{WAIT_FRAMES 0x20}{0x81}{0x40}"), text); // #[I] and #[O] are text macros to be documented
text = textboxText->buffer;
}
@ -1001,8 +1003,8 @@ static bool8 ScriptPrintTextInternal(struct TextboxText *textboxText, u32 flags_
CreateMenuDialogueBoxAndPortrait(text, sub_809B428, -1, NULL, 0, 3, 0, GetSpeakerPortrait(speakerId),
((flags & TEXTBOX_FLAG_SPEAKER) ? STR_FORMAT_FLAG_SPEAKER_NAME | STR_FORMAT_FLAG_DIALOGUE_SOUND : 0)
| ((flags & TEXTBOX_FLAG_DIALOGUE_SOUND) ? STR_FORMAT_FLAG_DIALOGUE_SOUND : 0)
| ((sTextbox->type == 3) ? STR_FORMAT_FLAG_ONLY_TEXT : 0)
| ((sTextbox->type == 2) ? STR_FORMAT_FLAG_ONLY_TEXT : 0)
| ((sTextbox->type == TEXTBOX_TYPE_ON_BG_AUTO) ? STR_FORMAT_FLAG_ONLY_TEXT : 0)
| ((sTextbox->type == TEXTBOX_TYPE_ON_BG_PRESS) ? STR_FORMAT_FLAG_ONLY_TEXT : 0)
| ((flags & TEXTBOX_FLAG_INSTANT_TEXT) ? STR_FORMAT_FLAG_INSTANT_TEXT : 0)
| ((flags & TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS_2) ? STR_FORMAT_FLAG_WAIT_FOR_BUTTON_PRESS_2 : 0)
| ((flags & TEXTBOX_FLAG_WAIT_FOR_BUTTON_PRESS) ? STR_FORMAT_FLAG_WAIT_FOR_BUTTON_PRESS : 0)
@ -1063,7 +1065,7 @@ void sub_809B474(void)
case 1:
if (!sub_809B648()) {
sTextbox->unk420 = 3;
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
break;
}
@ -1074,7 +1076,7 @@ void sub_809B474(void)
if (!unkStructPtr->unk4()) {
sTextbox->unk430 = -1;
sTextbox->unk420 = 3;
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
break;
}
}
@ -1098,7 +1100,7 @@ void sub_809B474(void)
break;
}
sTextbox->unk420 = 3;
ResetTextboxType(0, TRUE);
SetTextboxType(0, TRUE);
break;
}
break;