diff --git a/include/data_script.h b/include/data_script.h index c8230d44e..c19726edc 100644 --- a/include/data_script.h +++ b/include/data_script.h @@ -44,7 +44,9 @@ #define PORTRAIT_POS(id, x, y) { 0x2f, 0, id, x, y, NULL } // Sets portrait delta position, which modifies the portrait's position on the screen. // 30..39: various text printing -#define MSG_NPC(id, msg) { 0x34, 0, id, 0, 0, msg } // ID is portrait id of the npc. -1 means no portrait +#define TEXTBOX_CLEAR { 0x30, 0, 0, 0, 0, NULL } +#define TEXTBOX_CLEAR2 { 0x31, 0, 0, 0, 0, NULL } // Used rarely, I don't think there's a functional difference between 0x30 and 0x31. +#define MSG_NPC(id, msg) { 0x34, 0, id, 0, 0, msg } // ID is portrait id of the npc. -1 means no portrait // 3a: yes/no choice (only used for saving) // 3b: uber command (conditional jump) // 3c: unknown textbox-related cjump diff --git a/include/textbox.h b/include/textbox.h index 0bbb9bb24..93f441538 100644 --- a/include/textbox.h +++ b/include/textbox.h @@ -14,7 +14,7 @@ enum void TextboxInit(void); void TextboxFree(void); - +void TextboxResetAll(void); void SetAutoPressTextboxFrames(s32 frames); void SetAutoPressTextboxMidEndMsgFrames(s32 endMsgFrames, s32 midMsgFrames); bool8 ScriptClearTextbox(void); diff --git a/src/data/ground/ground_data_a01p01_station.h b/src/data/ground/ground_data_a01p01_station.h index 7bf243e78..38823024b 100644 --- a/src/data/ground/ground_data_a01p01_station.h +++ b/src/data/ground/ground_data_a01p01_station.h @@ -43,14 +43,14 @@ static const struct ScriptCommand s_gs162_g1_s0_lives0_dlg0[] = { /* 0x820fe54 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Where...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Where am I?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Maybe...{WAIT_PRESS} Is this a dream...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Oh?{WAIT_PRESS} There's someone here.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Who is it...?{WAIT_PRESS} Someone I know...?") }, PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......{WAIT_PRESS}Hmm... I can't remember.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -92,12 +92,12 @@ static const struct ScriptCommand s_gs162_g2_s0_lives0_dlg0[] = { /* 0x8210190 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Again?{WAIT_PRESS} Am I dreaming again...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...It's that Pokémon again.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Huh?{WAIT_PRESS}\nThey're...talking to me...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...{WAIT_PRESS}I can't hear them clearly.\nWhat are they saying?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(453), { 0x97, 0x00, 0x0002, 0x00000001, 0x00000003, NULL }, @@ -110,7 +110,7 @@ static const struct ScriptCommand s_gs162_g2_s0_lives0_dlg0[] = { /* 0x8210190 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("For a dream, this feels strangely\nreal, but...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -143,21 +143,21 @@ static const struct ScriptCommand s_gs162_g3_s0_lives0_dlg0[] = { /* 0x8210568 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......Again...{WAIT_PRESS}\nIt's that dream again.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_LIVES(-1, 1), WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("That Pokémon... Who could it be...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Huh?{WAIT_PRESS} I'm hearing better this time...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...What?{WAIT_PRESS} Human?{WAIT_PRESS} My role?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000007), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("W-wait.\nPlease, tell me more.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......{WAIT_PRESS}\nI can't... Drifting off...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -252,9 +252,9 @@ static const struct ScriptCommand s_gs162_g4_s0_lives0_dlg0[] = { /* 0x8210c68 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......{WAIT_PRESS}Again.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_LIVES(-1, 1), WAIT(60), @@ -265,40 +265,40 @@ static const struct ScriptCommand s_gs162_g4_s0_lives0_dlg0[] = { /* 0x8210c68 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'll try talking to it.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Hello.{WAIT_PRESS} Please, tell me.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("You...{WAIT_PRESS}\nWho are you?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...{WAIT_PRESS}I am...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I am {NAME_2}.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Ga-{NAME_2}...?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" I'm so glad. Finally...{WAIT_PRESS}\nI finally got to meet you...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...?{WAIT_PRESS} Finally met me...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("You knew me from before?\nWhat about me?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" I am your...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh! Wait.{WAIT_PRESS} Just a little longer...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0000, 0x00000005), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I want to know more...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("No... It's fading...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -397,11 +397,11 @@ static const struct ScriptCommand s_gs162_g5_s0_lives0_dlg0[] = { /* 0x82116b8 * { 0x91, 0x0a, 0x0001, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I've been waiting for you.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Ga...{WAIT_PRESS}{NAME_2}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -436,87 +436,87 @@ static const struct ScriptCommand s_gs162_g6_s0_lives0_dlg0[] = { /* 0x82118a0 * WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......This............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......That dream...... Again......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......It's been a while......") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(477), SELECT_LIVES(-1, 1), WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......You're......{WAIT_PRESS} {NAME_2}...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Yes...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...{NAME_2}.{WAIT_PRESS}\nThere's so much I want to ask you.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Why do you appear in my dreams?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" As an agent of spirits...{WAIT_PRESS}\nI must watch over you...")), MSG_NPC(2, _(" Because that is my role\nnow.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...An agent of spirits?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.")), MSG_NPC(2, _(" I fell under the curse of\nNinetales in the place of a Trainer...")), MSG_NPC(2, _(" And became a presence\nwithout a physical form like this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Trainer...?{WAIT_PRESS}\nYou mean the human that was in the\nlegend about Ninetales?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("It's awful that your Trainer would abandon\nyou and run away.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Yes.{WAIT_PRESS} My Trainer was\na terrible person.")), MSG_NPC(2, _(" Mean and conniving...\nMy Trainer wasn't a nice person. Truly.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" But...{WAIT_PRESS}\nI don't hate my Trainer.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Huh? Don't hate your Trainer?{WAIT_PRESS}\nWhy not?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Well...{WAIT_PRESS}\nI wonder why myself.\nI don't quite understand...")), MSG_NPC(2, _(" My Trainer did some\nterrible things, but somehow, I can't\nbring myself to feel hatred...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" My Trainer had some quirks,\nbut there were good qualities too.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" And, when it happened,\nI was desperate...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("When it happened...?{WAIT_PRESS}\nYou mean Ninetales's curse?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.")), MSG_NPC(2, _(" I protected my Trainer\nfrom Ninetales's curse with my\nentire being.")), MSG_NPC(2, _(" If the Trainer is facing\ndanger...")), MSG_NPC(2, _(" It is our duty to protect\nthe Trainer with our lives...{WAIT_PRESS}\nWe {POKEMON_2} are that way.")), MSG_NPC(2, _(" I kept my Trainer safe...{WAIT_PRESS}\nThat alone was enough to make me happy.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...Protect the Trainer even at the risk\nof your own life...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...It's amazing what {POKEMON_2}\ndid.)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Oh, I must mention, I don't\nmind the form I have taken.")), MSG_NPC(2, _(" I live on this way with\npride in the role I have been given.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Role?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Yes.")), @@ -525,20 +525,20 @@ static const struct ScriptCommand s_gs162_g6_s0_lives0_dlg0[] = { /* 0x82118a0 * MSG_NPC(2, _(" You, too, have a role to\nfill...")), MSG_NPC(2, _(" You have...{WAIT_PRESS}\ncome here to perform a certain role...")), MSG_NPC(2, _(" And, for that role...{WAIT_PRESS}\nyou became a Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("What...?{WAIT_PRESS}\nWhat are you saying?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(453), { 0x97, 0x00, 0x0002, 0x00000001, 0x00000003, NULL }, WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Wah!\nE-earthquake?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("No! Wait!{WAIT_PRESS}\nI need to know more...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -695,7 +695,7 @@ static const struct ScriptCommand s_gs162_g7_s0_lives0_dlg0[] = { /* 0x8212e70 * PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" You have...{WAIT_PRESS}\ncome here to perform a certain role...")), MSG_NPC(1, _(" And, for that role...{WAIT_PRESS}\nyou became a Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -734,32 +734,32 @@ static const struct ScriptCommand s_gs162_g8_s0_lives0_dlg0[] = { /* 0x821303c * WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......I'm......{WAIT_PRESS}\nIn that dream again...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(477), SELECT_LIVES(-1, 1), WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}{NAME_1}...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" It's tomorrow, isn't it?{WAIT_PRESS}\nThat you take to that underground dungeon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Yes.{WAIT_PRESS} They make it sound like one\nterrible place...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I wonder if we'll be OK...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000041), MSG_NPC(1, _(" You will be fine.")), MSG_NPC(1, _(" I am certain that you\nwill succeed, {NAME_0}.")), MSG_NPC(1, _(" You have my support.\nPlease, go with strength.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000009), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I will. Thank you.") }, @@ -767,56 +767,56 @@ static const struct ScriptCommand s_gs162_g8_s0_lives0_dlg0[] = { /* 0x821303c * PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("By the way...{WAIT_PRESS}\nGardevoir, do you know?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("What it's like underground?{WAIT_PRESS}\nOr what Groudon is like?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000042), MSG_NPC(1, _(" No... I'm sorry to say...{WAIT_PRESS}\nI can't envision it...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...OK.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I thought maybe you knew something,\nthe way you said it.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" No. I only wanted to give\nyou encouragement...")), MSG_NPC(1, _(" I'm sorry...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000009), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("No, no.\nThat's fine, too.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'm happy you tried to cheer me up.\nThank you.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" But...{WAIT_PRESS}\nThere is one thing that I can foresee.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Huh?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Your role...{WAIT_PRESS}\nis coming to its end, little by little.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("My role...{WAIT_PRESS}\nis ending...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" You became a Pokémon in\norder to fulfill a certain role...")), MSG_NPC(1, _(" And that role brought\nyou here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Now, that role...{WAIT_PRESS}\nis finally drawing to its conclusion.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Gardevoir, tell me!") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("What is my role?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Why did I become a Pokémon?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" When the time comes...")), MSG_NPC(1, _(" I think I can tell you when\nthis adventure is finished.")), MSG_NPC(1, _(" Au revoir...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -1000,7 +1000,7 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * WAIT(60), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}Gardevoir...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(477), SELECT_LIVES(-1, 1), @@ -1008,7 +1008,7 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Gardevoir...{WAIT_PRESS}\nWill you tell me now?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Who or what I am...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Yes.")), @@ -1017,40 +1017,40 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * MSG_NPC(2, _(" I will tell you all there is\nto tell.")), MSG_NPC(2, _(" {NAME_0}, you have...")), MSG_NPC(2, _(" Come to save this world.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}\nCame to save the world of Pokémon?{WAIT_PRESS}\nI did...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.{WAIT_PRESS} We learned that\nthis world faced extinction.")), MSG_NPC(2, _(" And so we sought a hero.")), MSG_NPC(2, _(" But though we searched,\nnowhere could we find our hero.\nWe were becoming discouraged...")), MSG_NPC(2, _(" When we came across\na human.")), MSG_NPC(2, _(" {NAME_0}...{WAIT_PRESS}\nYou were that human.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Wa... {WAIT_PRESS}Wait a second!{WAIT_PRESS}\nHero? Me? That's too much!") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'm not anything special like that?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Yes.{WAIT_PRESS} That is also what you\nsaid the first time we met.")), MSG_NPC(2, _(" You said you were not\nstrong.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" But what we sought was\nnot power merely for display...")), MSG_NPC(2, _(" We sought true courage.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("True courage...?{WAIT_PRESS}\nThat...{WAIT_PRESS} I'm even less confident about that.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" That, too, is what\nyou said when we met.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" It was then that you said\nthis.")), @@ -1061,34 +1061,34 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * MSG_NPC(2, _(" To fulfill your role\nclear of heart and mind, you then chose\nto erase your memory as a human...")), MSG_NPC(2, _(" And became a Pokémon of\nyour own will to fight alongside your\nfriends.")), MSG_NPC(2, _(" That is how you came to\nbe in this world.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I...{WAIT_PRESS}\nI did that?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Your courage has been\nproven.")), MSG_NPC(2, _(" Without question, you bear\nthe role of saving the world.")), MSG_NPC(2, _(" And that role...{WAIT_PRESS}\nIt is soon coming to its end.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...{WAIT_PRESS}Stopping the meteor from\ncrashing into this world...?{WAIT_PRESS}\nThat's my role?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.{WAIT_PRESS}\nAnd when that is accomplished...")), MSG_NPC(2, _(" You can return to your\nhuman world.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh...{WAIT_PRESS}\nSo I can go back to being a human...") }, PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Wait!{WAIT_PRESS}\nBut that means...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.{WAIT_PRESS} It means...{WAIT_PRESS}\nParting ways with {NAME_1}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000005), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("{NAME_1}......{WAIT_PRESS}\nI have to leave?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" {NAME_1} feels great\nkinship with you, {NAME_0}.")), MSG_NPC(2, _(" So, {NAME_0}, if you\nwere to leave...")), @@ -1100,7 +1100,7 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * MSG_NPC(2, _(" But my friend has gone\naway.")), MSG_NPC(2, _(" It fills me with sadness\nstill, losing my friend...")), MSG_NPC(2, _(" ......{WAIT_PRESS}\nBut...{WAIT_PRESS} We will meet again...{WAIT_PRESS}\nThat is what I believe.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(485), { 0x28, 0x01, 0x0005, 0x00000018, 0x00ffffff, NULL }, @@ -1109,14 +1109,14 @@ static const struct ScriptCommand s_gs162_g9_s0_lives0_dlg0[] = { /* 0x821452c * WAIT(30), PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...!{WAIT_PRESS} W-what was that?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ............{WAIT_PRESS}Who was it?{WAIT_PRESS}\nSomeone appears to have been looking\ninto your dream.")), MSG_NPC(2, _(" But it is fine now.\nWhoever it was ran off.")), MSG_NPC(2, _(" ...All that remains in this\ndream is a feeling of sadness.")), MSG_NPC(2, _(" ...That Pokémon...\nI think ran off crying...")), MSG_NPC(2, _(" ............{WAIT_PRESS}\nIt will be morning soon.{WAIT_PRESS}\nAu revoir.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -1254,7 +1254,7 @@ static const struct ScriptCommand s_gs162_g10_s0_lives0_dlg0[] = { /* 0x8215da4 WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" You can return to your\nhuman world.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_a01p02_station.h b/src/data/ground/ground_data_a01p02_station.h index 683f6fbdf..347d7eed2 100644 --- a/src/data/ground/ground_data_a01p02_station.h +++ b/src/data/ground/ground_data_a01p02_station.h @@ -24,7 +24,7 @@ static const struct ScriptCommand s_gs163_g1_s0_station_sref_script[] = { /* 0x8 { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Urgggh...{WAIT_PRESS} I feel horrible...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), SELECT_ENTITIES(-1, -1), BGM_FADEIN(120, 29), @@ -48,7 +48,7 @@ static const struct ScriptCommand s_gs163_g1_s0_lives0_dlg0[] = { /* 0x8216594 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("This is a dream...{WAIT_PRESS} Isn't it...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...But why...?{WAIT_PRESS}\nWhy do I feel this terrible...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("This is...{WAIT_PRESS} The first time...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -79,7 +79,7 @@ static const struct ScriptCommand s_gs163_g2_s0_lives0_dlg0[] = { /* 0x8216758 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("..................") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......The pain......") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("......It's going away............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -111,7 +111,7 @@ static const struct ScriptCommand s_gs163_g3_s0_lives0_dlg0[] = { /* 0x8216954 * WAIT(30), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you fail to draw out {NAME_2}'s\n{CENTER_ALIGN}true feelings...") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The curse will never be broken.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -119,7 +119,7 @@ static const struct ScriptCommand s_gs163_g3_s0_lives0_dlg0[] = { /* 0x8216954 * PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000046), MSG_NPC(2, _(" Gegege!\nHey, {NAME_0}!")), MSG_NPC(2, _(" Don't you dare fool around!\nI'll make you pay for it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}You have but one chance.{WAIT_PRESS}\n{CENTER_ALIGN}{NAME_0},\n{CENTER_ALIGN}do your best.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Fine...{WAIT_PRESS} It is time.") }, @@ -239,7 +239,7 @@ static const struct ScriptCommand s_gs163_g3_s0_lives0_dlg0[] = { /* 0x8216954 * JUMP_LABEL(29), LABEL(10), /* = 0x0a */ { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I understand now...\n{CENTER_ALIGN}My questions are finished.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_a02p01_station.h b/src/data/ground/ground_data_a02p01_station.h index 856336902..a1e39ff53 100644 --- a/src/data/ground/ground_data_a02p01_station.h +++ b/src/data/ground/ground_data_a02p01_station.h @@ -27,7 +27,7 @@ static const struct ScriptCommand s_gs164_g1_s0_station_sref_script[] = { /* 0x8 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -51,7 +51,7 @@ static const struct ScriptCommand s_gs164_g1_s0_lives0_dlg0[] = { /* 0x821833c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Whoa!\nThese cracks go down deep!")), VARIANT_DEFAULT(_(" Wow!\nAren't these fissures amazing?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_a02p02_station.h b/src/data/ground/ground_data_a02p02_station.h index ccae5281b..a1f8e7736 100644 --- a/src/data/ground/ground_data_a02p02_station.h +++ b/src/data/ground/ground_data_a02p02_station.h @@ -24,7 +24,7 @@ static const struct ScriptCommand s_gs165_g1_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(165), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Across fields of fire...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -35,7 +35,7 @@ static const struct ScriptCommand s_gs165_g1_s0_station_sref_script[] = { /* 0x8 { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(120), @@ -63,7 +63,7 @@ static const struct ScriptCommand s_gs165_g1_s0_lives0_dlg0[] = { /* 0x8218834 * VARIANT(/* == */ 1, _(" The forest fires are still\nburning out of control...")), VARIANT_DEFAULT(_(" The environment is out\nof control here too...")), VARIANT_DEFAULT(_(" The forest fire is still\nraging...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0064, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_a02p03_station.h b/src/data/ground/ground_data_a02p03_station.h index 7967d7275..e01f2af25 100644 --- a/src/data/ground/ground_data_a02p03_station.h +++ b/src/data/ground/ground_data_a02p03_station.h @@ -41,12 +41,12 @@ static const struct ScriptCommand s_gs166_g1_s0_lives0_dlg0[] = { /* 0x8218cb0 * WAIT(20), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000002), MSG_NPC(1, _(" Gasp... Gasp...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Oh, no! Look!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(38), { 0x91, 0x04, 0x000b, 0x00000002, 0x00000000, NULL }, WAIT(20), @@ -82,13 +82,13 @@ static const struct ScriptCommand s_gs166_g2_s0_station_sref_script[] = { /* 0x8 { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Look at them go!\nThey're running for Mt. Blaze!") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Are they insane?\nMt. Blaze is doomed desolation!") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" No one's ever come this far\nbefore!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I don't wanna go anywhere like that.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" It can't be helped.\nOnly those brave enough will give chase!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(90), WAIT(120), { 0x3b, 0x39, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -106,7 +106,7 @@ static const struct ScriptCommand s_gs166_g2_s0_lives0_dlg0[] = { /* 0x821915c * WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" It... It's a mountain of fire!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" Look at all that lava\npouring from the crater...")), @@ -114,29 +114,29 @@ static const struct ScriptCommand s_gs166_g2_s0_lives0_dlg0[] = { /* 0x821915c * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" But they're catching up to\nus...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000001, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" What'll we do,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Look! There they are!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), { 0x91, 0x04, 0x000b, 0x00000006, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Get them!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" There's no choice now!")), MSG_NPC(1, _(" Let's go, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x00, 0x0028, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), diff --git a/src/data/ground/ground_data_a02p04_station.h b/src/data/ground/ground_data_a02p04_station.h index 065b157e0..19b6d90c2 100644 --- a/src/data/ground/ground_data_a02p04_station.h +++ b/src/data/ground/ground_data_a02p04_station.h @@ -52,7 +52,7 @@ static const struct ScriptCommand s_gs167_g2_s0_station_sref_script[] = { /* 0x8 { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}A frigid wasteland of\n{CENTER_ALIGN}driving blizzards.") }, BGM_FADEOUT(120), { 0xe0, 0x00, 0x0018, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -100,7 +100,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 3, _(" I'm tired.\nLet's get a little rest.")), VARIANT_DEFAULT(_(" Pant, pant...\nWe sure walked a lot.")), VARIANT_DEFAULT(_(" I'm bushed.\nLet's rest up.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -109,14 +109,14 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Haaah!\nThe view's great here.")), VARIANT_DEFAULT(_(" Mmm...\nThe view's fantastic.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, hey!\n{NAME_0}, you have to see this!")), VARIANT_DEFAULT(_(" Oh, look!\n{NAME_0}, look over there!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -124,7 +124,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 1, _(" We sure came a long way...")), VARIANT_DEFAULT(_(" See how small Mt. Blaze\nlooks from here?")), VARIANT_DEFAULT(_(" We've come a really long\nway, haven't we?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -146,7 +146,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT_DEFAULT(_(" I don't think too many\nPokémon can get through there.")), VARIANT_DEFAULT(_(" And then we gave it our\nall to get out here.")), VARIANT_DEFAULT(_(" Do you know what I'm\nthinking?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x2e, 0x15, 0x0001, -0x00000002, 0x00000000, NULL }, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" Maybe there aren't any more\nPokémon that can chase us all the way\nhere.")), @@ -156,7 +156,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * CHOICE(/* label */ 3, _("You're right. No one can get us, hahaha...")), LABEL(2), /* = 0x02 */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -167,7 +167,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 1, _(" Who might they be?")), VARIANT_DEFAULT(_(" Oh?{WAIT_PRESS} There's someone else?")), VARIANT_DEFAULT(_(" Well, who do you mean?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -175,7 +175,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 1, _(" Their team should be able\nto get here...")), VARIANT_DEFAULT(_(" ...{WAIT_PRESS}Oh, I get it.{WAIT_PRESS}\nThere's Alakazam.")), VARIANT_DEFAULT(_(" You're right.\nAlakazam's team should be able to get\nhere.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), LABEL(3), /* = 0x03 */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), @@ -183,14 +183,14 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I knew it!\nI knew you'd say that too, {NAME_0}!")), VARIANT_DEFAULT(_(" I thought so!\nYou think so too, {NAME_0}, right?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Yeah, you're right.\nThere can't be anyone else.\nHahahahaha.")), MSG_NPC(1, _(" All right!\nWe can say good-bye to living like\nfugitives.")), MSG_NPC(1, _(" We don't have to keep\nrunning away anymore!\nHahahahaha.")), MSG_NPC(1, _(" Hahahaha...{WAIT_PRESS} Haha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT_REP(0x0001, 0x00000002), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -200,7 +200,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT_DEFAULT(_(" ........................{WAIT_PRESS}\nIt's no good, {NAME_0}.")), VARIANT_DEFAULT(_(" We've forgotten some\ntough customers.")), VARIANT_DEFAULT(_(" It's Alakazam's team.{WAIT_PRESS}\nThey'll keep chasing us wherever we go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), LABEL(4), /* = 0x04 */ @@ -216,7 +216,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's knuckle down and keep\ngoing.")), VARIANT_DEFAULT(_(" Let's be positive and keep\nmoving.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -225,7 +225,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 1, _(" Huh?{WAIT_PRESS} What's the matter?\nAren't you coming, {NAME_0}?")), VARIANT(/* == */ 3, _(" Oh?{WAIT_PRESS} What's wrong?\nAren't we going, {NAME_0}?")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS} What's the matter?\nAren't you coming, {NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x0a, 0x000b, 0x00000007, 0x00000000, NULL }, WAIT(30), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -241,7 +241,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT_DEFAULT(_(" They're chasing us down.\nWe can't afford to rest.\n")), VARIANT_DEFAULT(_(" And...{WAIT_PRESS}\nI told you already.")), VARIANT_DEFAULT(_(" I said I would go with\nyou, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...Don't look that way\nat me!\nI'm good. I'm good!")), @@ -250,7 +250,7 @@ static const struct ScriptCommand s_gs167_g2_s0_lives0_dlg0[] = { /* 0x8219c28 * VARIANT(/* == */ 3, _(" Let's go, {NAME_0}!\nI'll always stick with you!")), VARIANT_DEFAULT(_(" ...Oh, come on.\nNo need for that long face.\nI'm fine.")), VARIANT_DEFAULT(_(" Let's go, {NAME_0}!\nI'll go wherever you go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, WAIT(15), diff --git a/src/data/ground/ground_data_a03p01_station.h b/src/data/ground/ground_data_a03p01_station.h index 41d40d63c..177b28c9c 100644 --- a/src/data/ground/ground_data_a03p01_station.h +++ b/src/data/ground/ground_data_a03p01_station.h @@ -57,13 +57,13 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000002), MSG_NPC(1, _(" ...Brr... It's cold!{WAIT_PRESS}")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(8), FANFARE_PLAY2(480), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000007), MSG_NPC(1, _(" Hachoo!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(8), { 0x91, 0x04, 0x0001, 0x00000007, 0x00000000, NULL }, WAIT(24), @@ -72,7 +72,7 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000005), MSG_NPC(1, _(" Yuck...{WAIT_PRESS}\nMy nose is running, and it's freezing.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, { 0x3b, 0x36, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -91,7 +91,7 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * VARIANT_DEFAULT(_(" See how deep the snow is.")), VARIANT_DEFAULT(_(" I haven't seen any other\nPokémon for a while, either.")), VARIANT_DEFAULT(_(" Maybe we're all alone here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x36, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), @@ -101,16 +101,16 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Huh? What's up?")), VARIANT_DEFAULT(_(" Oh? What's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Wh-what's that?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(40), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(90), @@ -118,19 +118,19 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_NPC(1, _(" ...{WAIT_PRESS}What was that?{WAIT_PRESS}\nIt looked like a Pokémon, but...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Was I seeing things?{WAIT_PRESS}\nNo, that can't be right.{WAIT_PRESS}\nI'm sure there was someone there...")), VARIANT_DEFAULT(_(" Did I imagine that?{WAIT_PRESS}\nNo, I don't think so.{WAIT_PRESS}\nI'm sure there was somebody there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" I wonder what they were\ndoing in this lonely place?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -138,7 +138,7 @@ static const struct ScriptCommand s_gs168_g1_s0_lives0_dlg0[] = { /* 0x821bbf8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Well, thinking about it\nisn't going to help.{WAIT_PRESS}\nLet's keep moving.")), VARIANT_DEFAULT(_(" I guess thinking about it\nwon't help us.{WAIT_PRESS}\nWe should keep moving.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -242,7 +242,7 @@ static const struct ScriptCommand s_gs168_g2_s0_lives0_dlg0[] = { /* 0x821ca1c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wow!")), VARIANT_DEFAULT(_(" Oh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -253,7 +253,7 @@ static const struct ScriptCommand s_gs168_g2_s0_lives0_dlg0[] = { /* 0x821ca1c * { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" See that?{WAIT_PRESS}\nThose trees are frozen!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_a03p02_station.h b/src/data/ground/ground_data_a03p02_station.h index 892536aed..132ccae0a 100644 --- a/src/data/ground/ground_data_a03p02_station.h +++ b/src/data/ground/ground_data_a03p02_station.h @@ -39,7 +39,7 @@ static const struct ScriptCommand s_gs169_g1_s0_lives0_dlg0[] = { /* 0x821cfa4 * MSG_NPC(1, _(" Wow!{WAIT_PRESS}\nThe snow is like frozen powder!")), PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" It looks pretty, but...{WAIT_PRESS}\nIt must be harsh there...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_a03p03_station.h b/src/data/ground/ground_data_a03p03_station.h index 1f113a60b..61e95ae35 100644 --- a/src/data/ground/ground_data_a03p03_station.h +++ b/src/data/ground/ground_data_a03p03_station.h @@ -44,7 +44,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(We've been running all this time out\nof desperation...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(What's in store for us ahead?)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Are we really doing the right thing?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0001, 0x00000002), PORTRAIT_POS(1, 0, 2), @@ -55,7 +55,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * VARIANT_DEFAULT(_(" Brr... This is too cold!{WAIT_PRESS}\nThere's nothing but snow now.")), VARIANT_DEFAULT(_(" The scenery's been\nthe same for a while...")), VARIANT_DEFAULT(_(" I wonder if we're really\nmaking progress...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...Hey, {NAME_0}?\nYou know what I'm thinking...?")), @@ -70,7 +70,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * VARIANT_DEFAULT(_(" I think we've come to\na place that's empty except for us...")), VARIANT_DEFAULT(_(" I have this feeling there's\nnothing ahead of here, even if we keep\nmoving...")), VARIANT_DEFAULT(_(" And I'm getting exhausted...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000005), ASK3_VAR( TRUE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" We two...\nWhat's going to happen to us?")), @@ -79,7 +79,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * CHOICE(/* label */ 3, _("Don't worry. We'll be fine!")), CHOICE(/* label */ 4, _("I don't know...")), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x3b, 0x36, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, @@ -110,10 +110,10 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * VARIANT(/* == */ 1, _(" I'll go wherever you go.")), VARIANT(/* == */ 3, _(" I'll go with you, always.")), VARIANT_DEFAULT(_(" I'll keep going wherever\nyou go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(5), LABEL(4), /* = 0x04 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x3b, 0x36, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, @@ -147,7 +147,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * VARIANT(/* == */ 1, _(" I'll go wherever you go.")), VARIANT(/* == */ 3, _(" I'll go with you, always.")), VARIANT_DEFAULT(_(" I'll keep going wherever\nyou go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(5), /* = 0x05 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -155,7 +155,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("({NAME_1} trusts me without any\ndoubt.)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(I can't afford to be indecisive.)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(I have to believe in myself more.)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_FADEOUT(30), FANFARE_PLAY2(476), @@ -170,7 +170,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * WAIT(60), PORTRAIT_REP(0x0000, 0x00000002), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...{WAIT_PRESS}Wh-what?{WAIT_PRESS} What was that?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(476), { 0x28, 0x01, 0x0007, 0x00000004, 0x00806040, NULL }, { 0x54, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -181,7 +181,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * { 0x54, 0x00, 0x0300, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...D-dizzy?{WAIT_PRESS} Or what?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -190,7 +190,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Huh?{WAIT_PRESS} What's the matter?\n{NAME_0}?")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS} Is something wrong?\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(476), { 0x28, 0x01, 0x0007, 0x00000004, 0x00806040, NULL }, { 0x54, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -203,12 +203,12 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Finally.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Finally, you have arrived...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Someone...{WAIT_PRESS}\nSomeone is talking to me...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("({NAME_1}...?{WAIT_PRESS} No.\nThis voice isn't {NAME_1}...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(This voice...{WAIT_PRESS}\nI've heard it somewhere...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(477), SELECT_ENTITIES(-1, 1), @@ -217,7 +217,7 @@ static const struct ScriptCommand s_gs170_g1_s0_lives0_dlg0[] = { /* 0x821d2f8 * WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Finally...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" You have arrived...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -289,11 +289,11 @@ static const struct ScriptCommand s_gs170_g2_s0_lives0_dlg0[] = { /* 0x821ee64 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" I am so glad.{WAIT_PRESS}\nFinally, we get to meet.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...You're...{WAIT_PRESS} What...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -304,7 +304,7 @@ static const struct ScriptCommand s_gs170_g2_s0_lives0_dlg0[] = { /* 0x821ee64 * VARIANT(/* == */ 1, _(" Talking to yourself like\nthat...")), VARIANT_DEFAULT(_(" {NAME_0}, is something\nthe matter?")), VARIANT_DEFAULT(_(" Why are you talking to\nyourself?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), CALL_SCRIPT(NOTICE_FUNC), @@ -314,29 +314,29 @@ static const struct ScriptCommand s_gs170_g2_s0_lives0_dlg0[] = { /* 0x821ee64 * WAIT(16), MSG_NPC(2, _(" I cannot be seen by others.")), MSG_NPC(2, _(" I am visible only to you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(64), MSG_NPC(2, _(" A little farther ahead...")), MSG_NPC(2, _(" There is a jagged mountain\nrange topped by {COLOR YELLOW_D}Mt. Freeze{RESET}.")), MSG_NPC(2, _(" Inside its peak...{WAIT_PRESS}\nNinetales lives.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Ninetales?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Ninetales awaits your\narrival.")), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Beware...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh! W-wait...!") }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(60), PORTRAIT_REP(0x0000, 0x00000005), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("..................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -345,7 +345,7 @@ static const struct ScriptCommand s_gs170_g2_s0_lives0_dlg0[] = { /* 0x821ee64 * VARIANT(/* == */ 1, _(" What were you doing?{WAIT_PRESS}\nWhat just happened to you...?")), VARIANT_DEFAULT(_(" Hey, {NAME_0}!\n{NAME_0}!")), VARIANT_DEFAULT(_(" What's the matter?{WAIT_PRESS}\nWhat happened...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_a04p01_station.h b/src/data/ground/ground_data_a04p01_station.h index 10146664e..c8eb93119 100644 --- a/src/data/ground/ground_data_a04p01_station.h +++ b/src/data/ground/ground_data_a04p01_station.h @@ -62,7 +62,7 @@ static const struct ScriptCommand s_gs171_g1_s0_lives0_dlg0[] = { /* 0x821fb60 * MSG_NPC(0, _(" From the sky!\nComes a star!")), MSG_NPC(0, _(" ...It is huge...{WAIT_PRESS}\nA giant of a star!")), MSG_NPC(0, _(" The star, it falls.\nIt falls straight to us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -104,14 +104,14 @@ static const struct ScriptCommand s_gs171_g2_s0_lives0_dlg0[] = { /* 0x821fdc4 * MSG_NPC(0, _(" Disasters in nature...\nThere were many...")), MSG_NPC(0, _(" The balance of the world,\nit has been upset...")), MSG_NPC(0, _(" All because of the star.\nThe star that slowly comes closer.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), MSG_NPC(0, _(" ...If it keeps coming...\nIt will crash into this world.{WAIT_PRESS}\nIt shall be terrible.")), MSG_NPC(0, _(" Something must be done...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -147,13 +147,13 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 0, 2), MSG_NPC(2, _(" Ah, good of you to come.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Kwaaaaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), @@ -163,21 +163,21 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * { 0x91, 0x04, 0x000a, 0x00000005, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" Wh-{WAIT_PRESS}what's going on?{WAIT_PRESS}\nWhat is {NAME_3} doing?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" It is almost ready.{WAIT_PRESS}\nThe {COLOR GREEN}Teleport Gem{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Teleport Gem?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Kwaaaaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(489), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -186,7 +186,7 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(3, _(" .........{WAIT_PRESS}It is made.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -196,7 +196,7 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * MSG_NPC(3, _(" This...\nThis is the {COLOR GREEN}Teleport Gem{RESET}.")), MSG_NPC(3, _(" This will deliver you\nto the world of the sky.")), MSG_NPC(3, _(" Now, {NAME_0}.{WAIT_PRESS}\nAccept!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x84, 0x00, 0x0100, -0x00000018, -0x00000018, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, @@ -206,7 +206,7 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}'s team received\n{CENTER_ALIGN}the {COLOR GREEN}Teleport Gem{RESET}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x84, 0x00, 0x0100, 0x00000018, 0x00000018, NULL }, @@ -214,23 +214,23 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * WAIT(30), MSG_NPC(3, _(" That was made using\nthe powers of psychics.")), MSG_NPC(3, _(" By me, {NAME_2},\nand...{WAIT_PRESS}\nOh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(3, _(" A Ghost-type Pokémon.\nWe received help from it.")), MSG_NPC(3, _(" ...Gone away, it seems...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, WAIT(30), MSG_NPC(1, _(" Who could it be?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000042), MSG_NPC(2, _(" Hahaha! It must be bashful.\nLet it be.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -238,7 +238,7 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Now...{WAIT_PRESS}\nI must ask you this one last time.")), MSG_NPC(2, _(" This journey will be fraught\nwith considerable danger.{WAIT_PRESS}\nWill you still go?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -254,12 +254,12 @@ static const struct ScriptCommand s_gs171_g3_s0_lives0_dlg0[] = { /* 0x82200b0 * VARIANT_DEFAULT(_(" We have to get Rayquaza\nto destroy that falling star, right?")), VARIANT_DEFAULT(_(" If that will bring peace,\nI'll gladly give my life for it!")), VARIANT_DEFAULT(_(" That's my wish.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...Yes...{WAIT_PRESS}\nAnd when that wish comes true...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Gardevoir said...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -401,7 +401,7 @@ static const struct ScriptCommand s_gs171_g4_s0_lives0_dlg0[] = { /* 0x82213fc * PORTRAIT(PLACEMENT_RIGHT, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(............)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(This will be my last adventure...{WAIT_PRESS}\nWith {NAME_1}...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -409,7 +409,7 @@ static const struct ScriptCommand s_gs171_g4_s0_lives0_dlg0[] = { /* 0x82213fc * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}!\nLet's do this right!")), VARIANT_DEFAULT(_(" {NAME_0}!\nLet's get this done!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x54, 0x00, 0x002f, 0x00000000, 0x00000000, NULL }, { 0xdd, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -420,7 +420,7 @@ static const struct ScriptCommand s_gs171_g4_s0_lives0_dlg0[] = { /* 0x82213fc * PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 0, 2), MSG_NPC(2, _(" We're counting on you!\n{NAME_1}! {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(500), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -605,12 +605,12 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" .........Hey.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Hey, can you hear...") }, MSG_NPC(2, _(" Snap out of it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x27, 0x01, 0x0005, 0x0000003c, 0x00ffffff, NULL }, WAIT(60), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...{WAIT_PRESS}Huh...?{WAIT_PRESS} This place...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x39, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -619,25 +619,25 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000002), MSG_NPC(1, _("............Urgggh......")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _("...Regained consciousness!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oooooooohhhhh!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(WAKEUP_FUNC), WAIT(15), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...{WAIT_PRESS}I'm sure of it...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(I'm sure... Back there...{WAIT_PRESS}\nGengar saved me...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" ...Maybe...{WAIT_PRESS}\nDid Gengar save {NAME_0} too?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), CALL_LABEL(3), WAIT(30), @@ -646,17 +646,17 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000042), PORTRAIT_POS(4, -3, 0), MSG_NPC(4, _(" Awesome, you're alive!{WAIT_PRESS}\nYou really had all of us worried!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0008, 0x00000000), MSG_NPC(8, _(" You were incredible!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000042), MSG_NPC(6, _(" Snivel...\nI'm so glad you're safe!{WAIT_PRESS}\nIt's fantastic!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -666,7 +666,7 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" What about the star?!{WAIT_PRESS}\nWhat happened to it?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(474), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Kwaaaaaaaaah!") }, @@ -677,14 +677,14 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Fear not!\nThe star is no more.")), MSG_NPC(3, _(" Though it will not be\nright away...{WAIT_PRESS}\nThe disasters shall soon be calmed.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), CJUMP_UNK_C6(10), COND_EQUAL(0, /* to label */ 10), @@ -697,20 +697,20 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * LABEL(12), /* = 0x0c */ { 0x2d, 0x09, 0x0008, 0x0000000a, 0x00000000, NULL }, MSG_NPC(1, _(" What about our team\nmember?\nWhere's {NAME_8}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Be calm.\n{NAME_8} is safe.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), JUMP_LABEL(10), LABEL(13), /* = 0x0d */ { 0x2d, 0x09, 0x0008, 0x0000000a, 0x00000000, NULL }, { 0x2d, 0x09, 0x0009, 0x0000000b, 0x00000000, NULL }, MSG_NPC(1, _(" What about our team\nmembers? Where are {NAME_8} and\n{NAME_9}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Be calm.\nBoth are unharmed.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), LABEL(10), /* = 0x0a */ { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -720,7 +720,7 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000b), MSG_NPC(1, _(" Really!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, @@ -731,7 +731,7 @@ static const struct ScriptCommand s_gs171_g5_s0_lives0_dlg0[] = { /* 0x8221f00 * VARIANT(/* == */ 1, _(" We've won peace!")), VARIANT_DEFAULT(_(" We did it, {NAME_0}!{WAIT_PRESS}\nEverything worked!")), VARIANT_DEFAULT(_(" We've won peace!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -1098,19 +1098,19 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0007, 0x00000000), PORTRAIT_POS(7, 3, 0), MSG_NPC(7, _(" Yippee!\nThis is the greatest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x00000059, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000000), MSG_NPC(9, _(" This calls for a celebration!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x00000068, 0x00000000, NULL }, { 0xe4, 0x00, 0x000e, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0009, 0x00000000), MSG_NPC(9, _(" Let me shoot my Hydro\nPump to kick it off!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000e, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -1118,20 +1118,20 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000000), PORTRAIT_POS(4, -3, 0), MSG_NPC(4, _(" Whoa, hold on there!\nDon't you point those things at me!{WAIT_PRESS}\nFace the other way! The other way!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x00000055, 0x00000000, NULL }, { 0xe4, 0x00, 0x000f, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0009, 0x00000042), MSG_NPC(9, _(" No, no!\nLet it loose! Hahaha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_LABEL(2), { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, WAIT(80), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Y-you've gotta be kidding\nme!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -1141,14 +1141,14 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * WAIT(120), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0008, 0x00000000), MSG_NPC(8, _(" I'll secure him so he can't\nget away.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0010, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x09, 0x0009, 0x00000059, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000000), MSG_NPC(9, _(" Oh?{WAIT_PRESS} Not bad!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_LABEL(2), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CLEAR_ARRAY(EVENT_LOCAL), @@ -1160,15 +1160,15 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), PORTRAIT_POS(4, 0, 0), MSG_NPC(4, _(" What, you're serious?!\nNooooo! Don't!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), CALL_LABEL(2), { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Ahahahahaha!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" {NAME_0}...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(180), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1183,7 +1183,7 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(............{WAIT_PRESS}\n{NAME_5}...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_SWITCH(42), PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), @@ -1193,16 +1193,16 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * MSG_NPC(5, _(" And now...{WAIT_PRESS}\n{NAME_0}, your role here has ended.")), MSG_NPC(5, _(" Soon, you must return to\nyour own world.")), MSG_NPC(5, _(" It is time to bid farewell.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(It's finally come...{WAIT_PRESS}\nThis time has finally arrived...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(120), MSG_NPC(5, _(" {NAME_0}...{WAIT_PRESS}\nI am so sorry for this...{WAIT_PRESS}\nTo everyone...{WAIT_PRESS} Please bid farewell...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -1217,7 +1217,7 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0006, 0x00000000), MSG_NPC(6, _(" Oh? {NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -1230,11 +1230,11 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...!{WAIT_PRESS} {NAME_0}...!{WAIT_PRESS}\nYour body...{WAIT_PRESS} What's happening?")), VARIANT_DEFAULT(_(" ...!{WAIT_PRESS} {NAME_0}...!{WAIT_PRESS}\nYour body...{WAIT_PRESS} What's happening to you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x0a, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("{NAME_1}...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x0a, 0x000a, 0x00000005, 0x00000000, NULL }, WAIT(30), { 0x91, 0x0a, 0x000a, 0x00000003, 0x00000000, NULL }, @@ -1242,7 +1242,7 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * { 0x91, 0x0a, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("And, everyone...{WAIT_PRESS} I'm sorry.{WAIT_PRESS}\nBut I have to leave.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), CALL_LABEL(2), @@ -1252,36 +1252,36 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0007, 0x00000041), MSG_NPC(7, _(" What?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0012, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x09, 0x0009, 0x0000004f, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000041), MSG_NPC(9, _(" Wh-what are you saying?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Everyone...{WAIT_PRESS}\nThank you for everything all this time.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" ...Huh?")), MSG_NPC(1, _(" ...{WAIT_PRESS}Leave...?{WAIT_PRESS}\nWhat do you mean, leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("My role as a Pokémon has ended.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I have to return to the human world.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Unbelievable!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x0000005a, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0009, 0x00000041), MSG_NPC(9, _(" Go back...{WAIT_PRESS}\nTo the human world?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), @@ -1289,32 +1289,32 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * MSG_NPC(1, _(" I don't understand!\nWhy do you have to leave?!")), PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" Didn't we...{WAIT_PRESS}\nAren't we friends?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Yes.{WAIT_PRESS}\nYou will always be my friend,\n{NAME_1}.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I will never forget you.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000008), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wait, {NAME_0}......")), VARIANT_DEFAULT(_(" Don't go, {NAME_0}......")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'm blessed to have met you.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I...\nWhat am I going to do when you're\ngone, {NAME_0}?")), VARIANT(/* == */ 3, _(" I...\nWhat am I going to do when you're\ngone, {NAME_0}?")), VARIANT_DEFAULT(_(" I...\nWhat am I going to do when you're\ngone, {NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'm so very sorry.\nThis is good-bye...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(60), CALL_LABEL(2), @@ -1326,20 +1326,20 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * { 0x2d, 0x09, 0x0009, 0x0000004e, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0009, 0x00000041), MSG_NPC(9, _(" {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x2d, 0x09, 0x0009, 0x00000059, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000041), MSG_NPC(9, _(" {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x2d, 0x09, 0x0009, 0x0000004f, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000041), PORTRAIT_POS(9, -3, 0), MSG_NPC(9, _(" {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0006, 0x00000042), PORTRAIT_POS(6, -1, 2), MSG_NPC(6, _(" {NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x59, 0x00, 0x0000, -0x000000c8, 0x00000000, NULL }, @@ -1347,7 +1347,7 @@ static const struct ScriptCommand s_gs171_g6_s0_lives0_dlg0[] = { /* 0x8223d40 * TEXTBOX_AUTO_PRESS(180, 180), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000006), MSG_NPC(1, _(" {NAME_0}!!! Nooooo!!!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -2122,19 +2122,19 @@ static const struct ScriptCommand s_gs171_g7_s0_lives0_dlg0[] = { /* 0x8227f54 * TEXTBOX_AUTO_PRESS(-1, -1), PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000042), MSG_NPC(6, _(" Snivel... {NAME_0}...{WAIT_PRESS}\nWhy...{WAIT_PRESS} I don't understand...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x00000059, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0009, 0x00000044), MSG_NPC(9, _(" Why?{WAIT_PRESS}\nWhy was it necessary to leave us...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0009, 0x00000055, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0009, 0x00000043), MSG_NPC(9, _(" {NAME_0} saved my\nlife...")), MSG_NPC(9, _(" But I hadn't done anything\nto show my thanks...")), MSG_NPC(9, _(" Left...{WAIT_PRESS}\nBefore I could even say thanks...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000043), PORTRAIT_POS(4, -2, 0), @@ -2142,7 +2142,7 @@ static const struct ScriptCommand s_gs171_g7_s0_lives0_dlg0[] = { /* 0x8227f54 * MSG_NPC(4, _(" Just upped and went like\nthat...")), MSG_NPC(4, _(" Why now?\nWhy when the world's been saved?")), MSG_NPC(4, _(" Just when things were\ngoing to get better...{WAIT_PRESS} Sob...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2150,11 +2150,11 @@ static const struct ScriptCommand s_gs171_g7_s0_lives0_dlg0[] = { /* 0x8227f54 * MSG_NPC(3, _(" This was coming...{WAIT_PRESS}\nOur world, it was saved by {NAME_0}.")), MSG_NPC(3, _(" I look back now...{WAIT_PRESS}\nWhen bound for the sky, {NAME_0}\nseemed...")), MSG_NPC(3, _(" As if resigned.\nResigned to accept what was to come.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000005), MSG_NPC(1, _(" ............{WAIT_PRESS}\nI think I know...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), CALL_LABEL(1), WAIT(60), @@ -2167,25 +2167,25 @@ static const struct ScriptCommand s_gs171_g7_s0_lives0_dlg0[] = { /* 0x8227f54 * VARIANT_DEFAULT(_(" {NAME_0} must have\nbecome a Pokémon to save us.")), MSG_NPC(1, _(" And when...{WAIT_PRESS}\nWhen the star was destroyed...")), MSG_NPC(1, _(" {NAME_0} knew that\nwould be the time to leave...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000008), MSG_NPC(1, _(" Why...{WAIT_PRESS}\nWhy didn't {NAME_0} tell me earlier...?")), MSG_NPC(1, _(" If this was coming...{WAIT_PRESS}\nWhy didn't {NAME_0} tell me?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Those words couldn't be\nspoken.")), MSG_NPC(2, _(" As much as you are heart-\nbroken now...")), MSG_NPC(2, _(" {NAME_0} must have felt\nthe same pain of leaving.")), MSG_NPC(2, _(" Try to understand,\n{NAME_1}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Sob...{WAIT_PRESS}\n{NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_a04p02_station.h b/src/data/ground/ground_data_a04p02_station.h index 5daac788b..588572f41 100644 --- a/src/data/ground/ground_data_a04p02_station.h +++ b/src/data/ground/ground_data_a04p02_station.h @@ -26,7 +26,7 @@ static const struct ScriptCommand s_gs172_g1_s0_station_sref_script[] = { /* 0x8 { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(0, _(" It's a huge tower of\nclouds...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, RET, }; diff --git a/src/data/ground/ground_data_a04p04_station.h b/src/data/ground/ground_data_a04p04_station.h index 86ab7b949..e98abdfb7 100644 --- a/src/data/ground/ground_data_a04p04_station.h +++ b/src/data/ground/ground_data_a04p04_station.h @@ -49,7 +49,7 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("And I'm now adrift...{WAIT_PRESS}\nas a spirit...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("..................") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("What's going to happen...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(485), { 0x28, 0x01, 0x0005, 0x0000003c, 0x00ffffff, NULL }, @@ -58,14 +58,14 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * { 0x27, 0x01, 0x0005, 0x0000003c, 0x00ffffff, NULL }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(............)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...This shadow...{WAIT_PRESS}\n{NAME_4}...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Keke! {NAME_0}!{WAIT_PRESS}\nDidn't take much to put you down!{WAIT_PRESS}\nServes you right!")), MSG_NPC(4, _(" Kekeke!\nNow, what to do with you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -73,7 +73,7 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * PORTRAIT_REP(0x0004, 0x00000041), MSG_NPC(4, _(" I know!")), MSG_NPC(4, _(" I'll drag you into the dark\nworld. That'll do it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -86,7 +86,7 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(He would drag me into the dark\nworld...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(What is the dark world...?)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Am I going to be abandoned in a world\nI don't know?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" ......")), @@ -97,20 +97,20 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * { 0x54, 0x00, 0x0034, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000044), MSG_NPC(4, _(" ..................{WAIT_PRESS}Hunh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Darn it...\nI took the wrong path...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(......What?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(4, _(" This isn't like me...{WAIT_PRESS}\nI can't tell which way is which...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -119,7 +119,7 @@ static const struct ScriptCommand s_gs174_g1_s0_lives0_dlg0[] = { /* 0x822a258 * MSG_NPC(4, _(" Keh! To heck with this.{WAIT_PRESS}\nI'll just ditch you here...")), PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" That's it. Good-bye to you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_a05p01_station.h b/src/data/ground/ground_data_a05p01_station.h index f9e89a68f..b7bf6150c 100644 --- a/src/data/ground/ground_data_a05p01_station.h +++ b/src/data/ground/ground_data_a05p01_station.h @@ -48,13 +48,13 @@ static const struct ScriptCommand s_gs175_g1_s0_eff1_script[] = { /* 0x822b0f4 * TEXTBOX_AUTO_PRESS(-190, 60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Is this my spirit...?)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(I wonder where I'm going?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(120), TEXTBOX_AUTO_PRESS(-110, 60), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(......!)") }, TEXTBOX_AUTO_PRESS(-210, 50), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Voices...{WAIT_PRESS}\nI hear voices...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_a05p02_station.h b/src/data/ground/ground_data_a05p02_station.h index 46d1a850d..c619b3d11 100644 --- a/src/data/ground/ground_data_a05p02_station.h +++ b/src/data/ground/ground_data_a05p02_station.h @@ -107,7 +107,7 @@ static const struct ScriptCommand s_gs176_g1_s0_eff1_script[] = { /* 0x822bb50 * { 0x39, 0x00, 0x005a, 0x00000000, 0x00000000, _("{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.") }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_a05p03_station.h b/src/data/ground/ground_data_a05p03_station.h index 92e3cf53e..8c213f4e7 100644 --- a/src/data/ground/ground_data_a05p03_station.h +++ b/src/data/ground/ground_data_a05p03_station.h @@ -24,7 +24,7 @@ static const struct ScriptCommand s_gs177_g1_s0_station_sref_script[] = { /* 0x8 WAIT(240), TEXTBOX_AUTO_PRESS(-1, -1), { 0x38, 0x00, -0x0001, 0x00000000, 0x00000000, _("\n") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x23, 0x01, 0x0078, 0x00000000, 0x00000000, NULL }, WAIT(90), @@ -36,7 +36,7 @@ static const struct ScriptCommand s_gs177_g1_s0_station_sref_script[] = { /* 0x8 { 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!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -49,7 +49,7 @@ static const struct ScriptCommand s_gs177_g1_s0_station_sref_script[] = { /* 0x8 LABEL(0), /* = 0x00 */ { 0x3c, 0x0e, 0x0000, 0x00000000, 0x00000000, NULL }, LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), RET, }; diff --git a/src/data/ground/ground_data_b01p01a_station.h b/src/data/ground/ground_data_b01p01a_station.h index d59f9db6a..658508f8e 100644 --- a/src/data/ground/ground_data_b01p01a_station.h +++ b/src/data/ground/ground_data_b01p01a_station.h @@ -466,7 +466,7 @@ static const struct ScriptCommand s_gs9_g0_s0_evt1_sref_script[] = { /* 0x819bf5 PORTRAIT(PLACEMENT_TOP_LEFT, 0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("This will be a dangerous journey.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'd better leave without telling\nthe others.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET, }; @@ -541,7 +541,7 @@ static const struct ScriptCommand s_gs9_g0_s0_obj0_dlg2[] = { /* 0x819c378 */ { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}There are rumors of treasures...") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And perhaps even Pokémon\n{CENTER_ALIGN}that lived in ancient times.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The Buried Relic is the main\n{CENTER_ALIGN}topic in Pokémon Square.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB7, 49, 2), JUMP_SCRIPT(END_TALK), }; @@ -553,7 +553,7 @@ static const struct ScriptCommand s_gs9_g0_s0_obj2_dlg2[] = { /* 0x819c748 */ { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(1), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("\n ← Friend Areas") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMPIF_SCENARIOCHECK(4, /* to label */ 0), LABEL(1), /* = 0x01 */ { 0x3c, 0x16, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -571,7 +571,7 @@ static const struct ScriptCommand s_gs9_g0_s0_obj2_dlg2[] = { /* 0x819c748 */ PORTRAIT(PLACEMENT_TOP_LEFT, 0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("This will be a dangerous journey.") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'd better leave without telling\nthe others.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET, }; @@ -827,7 +827,7 @@ static const struct ScriptCommand s_gs9_g0_s7_lives0_dlg2[] = { /* 0x819cda4 */ SET_ARRAYVAL(EVENT_B01P01, 3, 1), JUMP_LABEL(7), LABEL(7), /* = 0x07 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, GROUND_ENTER, MAP_TEAM_BASE_INSIDE), UPDATE_VARINT(CALC_SET, GROUND_GETOUT, MAP_TEAM_BASE_INSIDE), { 0x01, 0x00, -0x0001, 0x00000009, 0x00000000, NULL }, @@ -1066,7 +1066,7 @@ static const struct ScriptCommand s_gs9_g2_s1_lives0_dlg0[] = { /* 0x819e920 */ FANFARE_PLAY2(451), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Flap! Flap!") }, { 0x6b, 0x00, 0x0100, 0x00000003, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x1e, 0x0002, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x68, 0x00, 0x0100, 0x00000008, 0x00000000, NULL }, @@ -1076,7 +1076,7 @@ static const struct ScriptCommand s_gs9_g2_s1_lives0_dlg0[] = { /* 0x819e920 */ FANFARE_PLAY2(501), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Clunk!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(451), { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0x68, 0x00, 0x0100, 0x00000030, 0x00000000, NULL }, @@ -1092,7 +1092,7 @@ static const struct ScriptCommand s_gs9_g2_s1_eff0_script[] = { /* 0x819eaf4 */ DEBUGINFO, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Flap! Flap!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, END_DELETE, }; @@ -1212,7 +1212,7 @@ static const struct ScriptCommand s_gs9_g5_s0_lives0_dlg0[] = { /* 0x819f048 */ VARIANT(/* == */ 1, _(" We blew it yesterday,\nso let's get it right this time.")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}.")), VARIANT_DEFAULT(_(" We failed yesterday,\nso let's try harder this time.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1271,7 +1271,7 @@ static const struct ScriptCommand s_gs9_g6_s1_lives0_dlg0[] = { /* 0x819f3a8 */ VARIANT(/* == */ 1, _(" See you tomorrow!")), VARIANT_DEFAULT(_(" Didn't we do good today?{WAIT_PRESS}\nLet's call it a night and get some rest.")), VARIANT_DEFAULT(_(" OK, see you tomorrow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1291,7 +1291,7 @@ static const struct ScriptCommand s_gs9_g6_s2_lives0_dlg0[] = { /* 0x819f594 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("That was good work today.\nI should get some rest.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1329,7 +1329,7 @@ static const struct ScriptCommand s_gs9_g7_s0_lives0_dlg0[] = { /* 0x819f7c4 */ { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(1, _(" Good morning, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1400,7 +1400,7 @@ static const struct ScriptCommand s_gs9_g9_s0_lives0_dlg2[] = { /* 0x819fac0 */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB1, 31, 1), { 0xae, 0x01, 0x000f, 0x00000000, 0x00000000, NULL }, CANCEL_ENTITIES(9, 0), @@ -1419,7 +1419,7 @@ static const struct ScriptCommand s_gs9_g10_s0_lives0_dlg2[] = { /* 0x819fbf0 */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, EXECUTE_FUNCTION(EVENT_S03E01A_L001), HALT, @@ -1437,7 +1437,7 @@ static const struct ScriptCommand s_gs9_g11_s0_lives0_dlg2[] = { /* 0x819fcfc */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB4, 38, 1), CANCEL_ENTITIES(11, 0), JUMP_SCRIPT(END_TALK), @@ -1455,7 +1455,7 @@ static const struct ScriptCommand s_gs9_g12_s0_lives0_dlg2[] = { /* 0x819fe08 */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, EXECUTE_FUNCTION(EVENT_S05E01A_L001), HALT, @@ -1473,7 +1473,7 @@ static const struct ScriptCommand s_gs9_g13_s0_lives0_dlg2[] = { /* 0x819ff1c */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, EXECUTE_FUNCTION(EVENT_S06E01A_L001), HALT, @@ -1509,7 +1509,7 @@ static const struct ScriptCommand s_gs9_g15_s0_lives0_dlg2[] = { /* 0x81a013c */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L001), CANCEL_ENTITIES(15, 0), JUMP_SCRIPT(END_TALK), @@ -1527,7 +1527,7 @@ static const struct ScriptCommand s_gs9_g16_s0_lives0_dlg2[] = { /* 0x81a0244 */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L001), CANCEL_ENTITIES(16, 0), JUMP_SCRIPT(END_TALK), @@ -1552,7 +1552,7 @@ static const struct ScriptCommand s_gs9_g17_s0_station_sref_script[] = { /* 0x81 { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, RET, @@ -1583,7 +1583,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, WAIT(30), MSG_NPC(1, _(" Well, this is the place...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1607,7 +1607,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Maybe this is what it feels like to want\nto wag your tail...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(It doesn't matter! I'm happy!)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Maybe I feel that way because I'm\n{POKEMON_0}!)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1621,7 +1621,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" In fact, I was sure that\nyou'd like it.")), VARIANT_DEFAULT(_(" I was sure you would\nlike it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1630,7 +1630,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is your {COLOR CYAN}Mailbox{RESET}.{WAIT_PRESS}\nThis is where you'll get mail from\nother Pokémon.")), VARIANT_DEFAULT(_(" This is your {COLOR CYAN}Mailbox{RESET}.{WAIT_PRESS}\nThey deliver mail from Pokémon here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x09, 0x0002, 0x00000036, 0x00000000, NULL }, @@ -1665,7 +1665,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - CHOICE(/* label */ 6, _("Form a rescue team.")), CHOICE(/* label */ 7, _("Refuse.")), LABEL(7), /* = 0x07 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), SELECT_LIVES(-1, 2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1688,7 +1688,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - CHOICE(/* label */ 7, _("Refuse.")), JUMP_LABEL(4), LABEL(6), /* = 0x06 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), SELECT_LIVES(-1, 3), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1700,7 +1700,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - VARIANT(/* == */ 3, _(" From now on, {NAME_0},\nwe're partners in our rescue team!\nI'm so glad you joined!")), VARIANT_DEFAULT(_(" Perfect! That's it, then!")), VARIANT_DEFAULT(_(" We're partners in our\nrescue team from now on, {NAME_0}!\nGlad to have you on board!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -1710,7 +1710,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - VARIANT(/* == */ 3, _(" Listen, {NAME_0}.\nWhat would be a good name for us?")), VARIANT_DEFAULT(_(" The team name...\nWell, I don't have one yet.")), VARIANT_DEFAULT(_(" So, {NAME_0}.\nWhat do you think would be a good\nname for us?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3e, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xb0, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -1727,7 +1727,7 @@ static const struct ScriptCommand s_gs9_g17_s0_lives0_dlg0[] = { /* 0x81a05ac - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Rescue Team\n{COLOR CYAN}{TEAM_NAME}{RESET}!{WAIT_PRESS}\nWe begin tomorrow! Let's do it!")), VARIANT_DEFAULT(_(" Rescue Team\n{TEAM_NAME}{RESET}!{WAIT_PRESS}\nLet's do good starting tomorrow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x06, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(20), @@ -1860,7 +1860,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" ...Hunh?! Oh, no!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(468), { 0xe2, 0x00, 0x01d4, 0x00000000, 0x00000000, NULL }, @@ -1875,7 +1875,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ VARIANT(/* == */ 3, _(" I must have fallen asleep.")), VARIANT_DEFAULT(_(" Hahaha, sorry!{WAIT_PRESS}\nI was so excited, I came out here at\ndawn to wait for you.")), VARIANT_DEFAULT(_(" I must have snoozed off.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -1895,7 +1895,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...So, anyway...\nWe don't have any job offers yet...\nHahahaha...")), VARIANT_DEFAULT(_(" ...But, anyway...\nWe don't have any job offers yet...\nHahahaha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1905,7 +1905,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Oh, yeah!{WAIT_PRESS}\nMaybe there's something in the Mailbox...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -1918,12 +1918,12 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ FANFARE_PLAY(213), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The Mailbox contained\n{CENTER_ALIGN}a {COLOR CYAN}Rescue Team Starter Set{RESET}!") }, { 0xe1, 0x00, 0x00d5, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000b), MSG_NPC(1, _(" I knew it'd be there!{WAIT_PRESS}\nIt's the {COLOR CYAN}Rescue Team Starter Set{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1931,7 +1931,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" You always get one when\nyou start a rescue team.")), VARIANT_DEFAULT(_(" They always give you one\nif you start a rescue team.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1946,7 +1946,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ FANFARE_PLAY(213), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}There was also an issue of\n{CENTER_ALIGN}{COLOR CYAN}Pokémon News{RESET} inside!") }, { 0xe1, 0x00, 0x00d5, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1968,7 +1968,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ VARIANT_DEFAULT(_(" Items are very useful,\nso let's use them on our adventures.")), VARIANT_DEFAULT(_(" And finally, a copy of\nthe {COLOR CYAN}Pokémon News{RESET}.{WAIT_PRESS}\nIt's useful for rescue teams.")), VARIANT_DEFAULT(_(" I'll put the {COLOR CYAN}Pokémon News{RESET}\nin the Mailbox.\nYou should read it later on.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1976,17 +1976,17 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" And, let's see...{WAIT_PRESS}\nIs there any other mail...?{WAIT_PRESS}\nDid we miss anything?")), VARIANT_DEFAULT(_(" Anything else?{WAIT_PRESS}\nIs there any other mail...?{WAIT_PRESS}\nMaybe not?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_1} checked the Mailbox.") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But the Mailbox was empty.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" OK, so there isn't any\nmail for us after all...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2000,7 +2000,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I guess no one knows us\nbecause we just started this team.\nHahaha...")), VARIANT_DEFAULT(_(" Nobody knows about us\nsince we're so new a team, I guess.\nHahaha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2009,7 +2009,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x1e, 0x000a, 0x00000007, 0x00000000, NULL }, @@ -2018,7 +2018,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives0_dlg0[] = { /* 0x81a23fc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Huh? What's up?")), VARIANT_DEFAULT(_(" Oh?\nI wonder what it could be.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x95, 0x04, 0x000a, 0x0000000f, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2137,7 +2137,7 @@ static const struct ScriptCommand s_gs9_g18_s0_lives2_dlg0[] = { /* 0x81a3ef0 */ FANFARE_PLAY2(501), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Clunk!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2175,7 +2175,7 @@ static const struct ScriptCommand s_gs9_g19_s0_lives0_dlg2[] = { /* 0x81a411c */ VARIANT(/* == */ 1, _(" {NAME_0}, how about\nchecking your Mailbox?")), VARIANT_DEFAULT(_(" Could this be...?")), VARIANT_DEFAULT(_(" {NAME_0}, will you\ncheck the Mailbox, please?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_SCRIPT(END_TALK), }; @@ -2187,7 +2187,7 @@ static const struct ScriptCommand s_gs9_g19_s0_obj0_dlg2[] = { /* 0x81a4254 */ CJUMP_DIR_TO_LINK(0), COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} checked the Mailbox.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_STATION(-1, 20, 0), HALT, LABEL(0), /* = 0x00 */ @@ -2224,7 +2224,7 @@ static const struct ScriptCommand s_gs9_g19_s1_lives0_dlg0[] = { /* 0x81a43f8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_0}, aren't\nyou going to check the Mailbox?")), VARIANT_DEFAULT(_(" {NAME_0}, please check\nthe Mailbox.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -2300,10 +2300,10 @@ static const struct ScriptCommand s_gs9_g20_s0_lives0_dlg0[] = { /* 0x81a48c8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Maybe it's a rescue job\nrequest?!{WAIT_PRESS}\nCome on, what's it say?")), VARIANT_DEFAULT(_(" Maybe it's a rescue job\noffer!{WAIT_PRESS}\nWhat does it say?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x8e, 0x1e, 0x0000, 0x00000022, 0x00000000, NULL }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} read the letter.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("“BZZ BZZ BZZ!") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I HEARD ABOUT YOU FROM CATERPIE.") }, @@ -2312,7 +2312,7 @@ static const struct ScriptCommand s_gs9_g20_s0_lives0_dlg0[] = { /* 0x81a48c8 */ { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" AND IT STUCK TOGETHER MAGNEMITE\n AND MAGNEMITE...") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" THAT ISN'T ENOUGH TO FORM\n A MAGNETON. IT'S NOT COMPLETE\n THE WAY IT IS NOW.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" PLEASE. WE NEED HELP. BZZ BZZ BZZ.\n\n FROM MAGNEMITE'S FRIEND”") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000000), ASK3_VAR( TRUE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -2321,7 +2321,7 @@ static const struct ScriptCommand s_gs9_g20_s0_lives0_dlg0[] = { /* 0x81a48c8 */ CHOICE(/* label */ 3, _("Yes! Let's go!")), CHOICE(/* label */ 4, _("Let's not go.")), LABEL(4), /* = 0x04 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_STOP, SELECT_ENTITIES(-1, 1), @@ -2333,14 +2333,14 @@ static const struct ScriptCommand s_gs9_g20_s0_lives0_dlg0[] = { /* 0x81a48c8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah? Why?")), VARIANT_DEFAULT(_(" Huh? Why?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3_VAR( TRUE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" It's our very first job?\nLet's do it!")), VARIANT_DEFAULT(_(" It's our first job!\nLet's go!")), CHOICE(/* label */ 3, _("Yes! Let's go!")), CHOICE(/* label */ 4, _("Let's not go.")), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), SELECT_ENTITIES(-1, 2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2348,7 +2348,7 @@ static const struct ScriptCommand s_gs9_g20_s0_lives0_dlg0[] = { /* 0x81a48c8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That's what I want to hear!\nLet's do this right!")), VARIANT_DEFAULT(_(" That's the spirit!\nLet's do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -2439,7 +2439,7 @@ static const struct ScriptCommand s_gs9_g21_s0_lives0_dlg0[] = { /* 0x81a5378 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's get it done right today!")), VARIANT_DEFAULT(_(" Let's try to get it right\ntoday!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -2484,7 +2484,7 @@ static const struct ScriptCommand s_gs9_g22_s1_lives0_dlg0[] = { /* 0x81a56b4 */ WAIT(1), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" {NAME_0}!\nThe dungeon isn't that way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x93, 0x08, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2492,13 +2492,13 @@ static const struct ScriptCommand s_gs9_g22_s1_lives0_dlg0[] = { /* 0x81a56b4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {COLOR YELLOW_D}Thunderwave Cave{RESET} is\nover this way!")), VARIANT_DEFAULT(_(" {COLOR YELLOW_D}Thunderwave Cave{RESET} is \nout this way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's go rescue Magnemite\nalready!")), VARIANT_DEFAULT(_(" We have to hurry.\nMagnemite's waiting to be rescued!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2541,7 +2541,7 @@ static const struct ScriptCommand s_gs9_g22_s2_lives0_dlg0[] = { /* 0x81a5a7c */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" {NAME_0}!\nThe dungeon isn't that way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x93, 0x08, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2549,13 +2549,13 @@ static const struct ScriptCommand s_gs9_g22_s2_lives0_dlg0[] = { /* 0x81a5a7c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {COLOR YELLOW_D}Thunderwave Cave{RESET} is\nover this way!")), VARIANT_DEFAULT(_(" {COLOR YELLOW_D}Thunderwave Cave{RESET} is \nout this way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's go rescue Magnemite\nalready!")), VARIANT_DEFAULT(_(" We have to hurry.\nMagnemite's waiting to be rescued!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2622,7 +2622,7 @@ static const struct ScriptCommand s_gs9_g23_s0_lives0_dlg0[] = { /* 0x81a5dd8 */ VARIANT_DEFAULT(_(" I was really tense and\nnervous.")), VARIANT_DEFAULT(_(" I'm exhausted now.\nI've got to go get some sleep.")), VARIANT_DEFAULT(_(" Let's keep up our good work\ntomorrow.\nSee you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0x91, 0x0a, 0x0001, 0x00000006, 0x00000000, NULL }, @@ -2658,7 +2658,7 @@ static const struct ScriptCommand s_gs9_g24_s0_obj0_dlg2[] = { /* 0x81a6384 */ COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} checked the Mailbox.") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}But there was no mail seeking\n{CENTER_ALIGN}help from the rescue team.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_STATION(-1, 25, 0), HALT, LABEL(0), /* = 0x00 */ @@ -2692,7 +2692,7 @@ static const struct ScriptCommand s_gs9_g24_s1_lives0_dlg0[] = { /* 0x81a655c */ { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oops!{WAIT_PRESS}\nI'd better check the Mailbox.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000008, NULL }, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -2732,7 +2732,7 @@ static const struct ScriptCommand s_gs9_g25_s0_lives0_dlg0[] = { /* 0x81a6700 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Morning, {NAME_0}!\nYou're up early.")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}!\nAren't you up early?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2742,11 +2742,11 @@ static const struct ScriptCommand s_gs9_g25_s0_lives0_dlg0[] = { /* 0x81a6700 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh!\nYou checked the Mailbox, did you?")), VARIANT_DEFAULT(_(" Oh!\nSo, you checked the Mailbox.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...So, what's the word?\nWere there any rescue jobs for us?")), VARIANT_DEFAULT(_(" ...So, was there anything?\nWere there any rescue requests?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -2759,7 +2759,7 @@ static const struct ScriptCommand s_gs9_g25_s0_lives0_dlg0[] = { /* 0x81a6700 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?\nIt was empty?!")), VARIANT_DEFAULT(_(" Huh?\nEmpty?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -2780,7 +2780,7 @@ static const struct ScriptCommand s_gs9_g25_s0_lives0_dlg0[] = { /* 0x81a6700 */ VARIANT_DEFAULT(_(" Well, too bad.\nWant to go to Pokémon Square?")), VARIANT_DEFAULT(_(" I think if we go to the\n{COLOR CYAN}Pelipper{RESET} {COLOR CYAN}Post Office{RESET}, there'll be jobs\nposted.")), VARIANT_DEFAULT(_(" Pokémon Square's over\nthis way.\nLet's go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(150), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -2853,10 +2853,10 @@ static const struct ScriptCommand s_gs9_g26_s0_lives0_dlg0[] = { /* 0x81a7140 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Someone just asked you to\ngo out on a rescue?")), VARIANT_DEFAULT(_(" You were just asked to go\non a rescue mission?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Yes!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2867,7 +2867,7 @@ static const struct ScriptCommand s_gs9_g26_s0_lives0_dlg0[] = { /* 0x81a7140 */ MSG_NPC(2, _(" Our child, {NAME_3},\nwas kidnapped!")), MSG_NPC(2, _(" He was taken to {COLOR YELLOW_D}Mt. Steel{RESET}'s\nsummit!")), MSG_NPC(2, _(" Please, we need your help!{WAIT_PRESS}\nBye-bye!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(50), @@ -2879,7 +2879,7 @@ static const struct ScriptCommand s_gs9_g26_s0_lives0_dlg0[] = { /* 0x81a7140 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...{WAIT_PRESS}I see...{WAIT_PRESS}\nI guess we'd better go...")), VARIANT_DEFAULT(_(" ...{WAIT_PRESS}Uh, OK...{WAIT_PRESS}\nLet's go...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -2960,7 +2960,7 @@ static const struct ScriptCommand s_gs9_g27_s0_lives0_dlg0[] = { /* 0x81a7910 */ VARIANT(/* == */ 1, _(" We blew it yesterday.\nLet's save that little guy today for sure.")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}.")), VARIANT_DEFAULT(_(" We couldn't do it yesterday,\nso let's be sure to do this rescue today.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -3022,7 +3022,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0x93, 0x04, 0x000a, 0x00000044, 0x00000000, NULL }, MSG_NPC(2, _(" Maybe because I was\nsomewhere up so high...")), MSG_NPC(2, _(" My feet feel like they're\nstill walking on air...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3031,25 +3031,25 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), { 0x34, 0x00, 0x0001, 0x00000000, 0x00000000, _(" (Feet...?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), { 0x34, 0x00, 0x0003, 0x00000000, 0x00000000, _(" (HE HAS THEM? FEET?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000009), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, well, you're safe now.\nGood thing, huh?")), VARIANT_DEFAULT(_(" Well, you're safe now.\nThat's what counts.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Yes.\nThank you very much.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oh! You've been rescued!\nGreat! Great!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000006, 0x00000000, NULL }, @@ -3067,10 +3067,10 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah? What was that?{WAIT_PRESS}\nWho said that?")), VARIANT_DEFAULT(_(" Huh? What was that?{WAIT_PRESS}\nAm I hearing voices?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Whoops! You can't see us?{WAIT_PRESS}\nThat's terribly rude of us!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -3080,21 +3080,21 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hello. {NAME_4} here.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Oh! Papa!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" {NAME_2}!\nYou had us worried!\nYou're not hurt?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_NPC(2, _(" Nope!\nIt was scary, but I'm all right.{WAIT_PRESS}\nIt's all thanks to {NAME_0}'s team.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3103,7 +3103,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Thank you for everything.\nYou're heroes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), @@ -3114,7 +3114,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ VARIANT(/* == */ 3, _(" We couldn't have done this\nrescue by ourselves.")), VARIANT_DEFAULT(_(" You should be thanking our\n{NAME_3} friends.")), VARIANT_DEFAULT(_(" This rescue was impossible\nfor us to do on our own.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -3123,16 +3123,16 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Oh, how rude of us!\nThank you so much!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" NO, NO.{WAIT_PRESS}\nIT WAS THE ONLY THING TO DO.{WAIT_PRESS}\nAND...")), MSG_NPC(3, _(" HOW BOTH OUR EVOLVED\nFORMS ARE JOINED TRIOS...{WAIT_PRESS}\nI FELT A CERTAIN KINSHIP.")), MSG_NPC(3, _(" AFTER ALL, POKéMON MUST\nHELP EACH OTHER.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" I'm impressed.\nSincerely, thank you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -3141,13 +3141,13 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" We must be going.\n{NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" {NAME_1}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -3156,7 +3156,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ MSG_NPC(5, _(" Thank you.")), PORTRAIT(PLACEMENT_TOP, 0x0004, 0x00000000), MSG_NPC(4, _(" Farewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -3166,7 +3166,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0x3c, 0x2b, 0x0000, 0x00000006, 0x00000001, NULL }, { 0x3c, 0x2c, 0x0000, 0x00000014, 0x00000001, NULL }, { 0x3c, 0x2c, 0x0000, 0x00000049, 0x00000001, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(80), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -3174,7 +3174,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000000), MSG_NPC(3, _(" WE'LL BE ON OUR WAY\nTOO...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3182,29 +3182,29 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wait a sec!\nHold on!")), VARIANT_DEFAULT(_(" Oh, wait!\nDon't go away!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" WHAT IS IT?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Listen, um...{WAIT_PRESS}\nHow would you like to join us?")), VARIANT(/* == */ 3, _(" Um...{WAIT_PRESS}\nWould you like to join our team?")), VARIANT_DEFAULT(_(" Uh...{WAIT_PRESS}\nWould you like to join our team?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_NPC(3, _(" JOIN YOUR TEAM?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Yes.{WAIT_PRESS}\nWe couldn't have done the last job\nif you weren't around, {NAME_3}.")), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" I thought we would need\nmore help for doing rescues in the future.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, @@ -3216,7 +3216,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ CHOICE(/* label */ 27, _("Yes! More members needed!")), CHOICE(/* label */ 28, _("We don't need any help.")), LABEL(28), /* = 0x1c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -3228,17 +3228,17 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ CHOICE(/* label */ 29, _("Just joking!")), CHOICE(/* label */ 30, _("Two is plenty.")), LABEL(29), /* = 0x1d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sheesh!\nDon't joke around like that!\nIt's not funny!")), VARIANT_DEFAULT(_(" Aww, sheesh.\nDon't joke around.\nIt's not funny.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), JUMP_LABEL(27), LABEL(30), /* = 0x1e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3251,8 +3251,8 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ VARIANT_DEFAULT(_(" But, you know, we couldn't\nhave rescued Diglett just by ourselves.")), VARIANT_DEFAULT(_(" If it weren't for the two\n{NAME_3} that flew Diglett out,\nwe would have been helpless.")), VARIANT_DEFAULT(_(" Or, {NAME_0}, you're\nsaying that you could have done that\nrescue by yourself?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), ASK3_VAR( TRUE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -3262,7 +3262,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ CHOICE(/* label */ 32, _("My body stretches.")), CHOICE(/* label */ 32, _("I can fly.")), LABEL(32), /* = 0x20 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), @@ -3272,7 +3272,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ CHOICE(/* label */ 33, _("Sorry, I can't...")), CHOICE(/* label */ 33, _("I just can't...")), LABEL(33), /* = 0x21 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3285,7 +3285,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ VARIANT(/* == */ 1, _(" What the...?\nWhat, you were just joshing me?!\nSheesh!")), VARIANT(/* == */ 3, _(" Now, look here!\nWere you just making fun of me?!")), VARIANT_DEFAULT(_(" Aww!\nWere you just making fun of me?!\nSheesh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), LABEL(27), /* = 0x1b */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), @@ -3300,12 +3300,12 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ VARIANT(/* == */ 3, _(" Will you join our rescue\nteam?")), VARIANT_DEFAULT(_(" So, how about it?")), VARIANT_DEFAULT(_(" Will you join us as members\nof our rescue team?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000001), MSG_NPC(3, _(" RESCUE TEAM...{WAIT_PRESS}\nTHAT SOUNDS FUN! BZZ BZZ BZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3313,7 +3313,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ MSG_NPC(3, _(" ...BUT...IF YOU NEED US\nTO RUSH OVER TO RESCUES...")), MSG_NPC(3, _(" WE NEED SOMEWHERE TO\nLIVE CLOSE BY.")), MSG_NPC(3, _(" IS THERE ANYWHERE WE\nCAN LIVE IN THIS AREA?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), @@ -3322,7 +3322,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ WAIT(10), MSG_NPC(3, _(" OH...\nTHERE ISN'T...")), MSG_NPC(3, _(" TOO BAD.{WAIT_PRESS}\nSORRY, BUT WE CAN'T JOIN YOU.{WAIT_PRESS}\nSEE YOU! BZZ BZZ BZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3330,7 +3330,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" That is too bad.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3339,7 +3339,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I guess we need somewhere\nPokémon can live if we want them to\njoin the rescue team...")), VARIANT_DEFAULT(_(" It looks like we need to\nfind places for Pokémon to live if we\nwant some to join our rescue team...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), @@ -3362,7 +3362,7 @@ static const struct ScriptCommand s_gs9_g28_s0_lives0_dlg0[] = { /* 0x81a7c70 */ VARIANT_DEFAULT(_(" It's next door to \n{COLOR CYAN}Felicity Bank{RESET}.{WAIT_PRESS}\n{COLOR YELLOW}Wigglytuff{RESET} is usually there every day.")), VARIANT_DEFAULT(_(" We may be able to get\nsome information.")), VARIANT_DEFAULT(_(" OK, that's what we'll do\ntomorrow.{WAIT_PRESS}\nWe'll go to Pokémon Square.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -3676,7 +3676,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000009), MSG_NPC(1, _(" Morning, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3692,13 +3692,13 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT(/* == */ 1, _(" What sort of weird\ndreams?")), VARIANT_DEFAULT(_(" ...Oh?{WAIT_PRESS}\nYou've been having strange dreams?")), VARIANT_DEFAULT(_(" What was strange about\nthem?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(45), { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, WAIT(16), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} told {NAME_1}\n{CENTER_ALIGN}about the dreams.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3710,7 +3710,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT_DEFAULT(_(" {NAME_0}, you said\nyou're actually a human, right?")), VARIANT_DEFAULT(_(" So maybe...")), VARIANT_DEFAULT(_(" Those dreams have some\nconnection to how you became a Pokémon,\n{NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3718,7 +3718,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT(/* == */ 1, _(" Do you want to go back to\nbeing a human?")), VARIANT_DEFAULT(_(" By the way, {NAME_0}.\nWhat do you want to do?")), VARIANT_DEFAULT(_(" Do you want to turn back\ninto a human?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...It's true...)") }, @@ -3727,7 +3727,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ CHOICE(/* label */ 5, _("I'm not sure...")), CHOICE(/* label */ 6, _("I want to be a human again.")), LABEL(6), /* = 0x06 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3743,7 +3743,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So, tell me.\nWhat sort of a human being were you,\n{NAME_0}?")), VARIANT_DEFAULT(_(" Anyway, when you were\na human, what kind of person were you,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(When I was a human...)") }, @@ -3753,7 +3753,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ { 0xe2, 0x00, 0x01d6, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0000, 0x00000005), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(............{WAIT_PRESS}\nNope. I can't remember a thing...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3766,11 +3766,11 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT_DEFAULT(_(" Oh, wow, you've forgotten?")), VARIANT_DEFAULT(_(" That's OK.\nThere's no rush to remember anything.")), VARIANT_DEFAULT(_(" But this is you,\n{NAME_0}. I'm sure you were a good\nhuman being.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), JUMP_LABEL(9), LABEL(5), /* = 0x05 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -3782,7 +3782,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT(/* == */ 1, _(" Well, I guess so!\nIt's a lot more fun hanging around\nwith me!")), VARIANT(/* == */ 3, _(" Well, maybe so.\nIt must be more fun for you to be\nhere with me!")), VARIANT_DEFAULT(_(" Well, I hope so!\nIt sure must be more fun to be here\nwith me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(60), LABEL(9), /* = 0x09 */ @@ -3794,7 +3794,7 @@ static const struct ScriptCommand s_gs9_g29_s0_lives0_dlg0[] = { /* 0x81ab6d4 */ VARIANT_DEFAULT(_(" Anyway, we were supposed\nto go to Pokémon Square today.")), VARIANT_DEFAULT(_(" Do you remember?\nWe need to get information on how we\ncan add members to the rescue team.")), VARIANT_DEFAULT(_(" Let's get going.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(1), @@ -3882,10 +3882,10 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Morning!\nLet's keep up our good work today!")), VARIANT_DEFAULT(_(" Good morning!\nLet's do good again today!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Is this the place?\nWhere that team named {COLOR CYAN}{TEAM_NAME}{RESET}\nis based?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3895,16 +3895,16 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ BGM_SWITCH(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" There's nothing here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Depressing, isn't it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0002, 0x00000000), PORTRAIT_POS(2, 0, -3), MSG_NPC(2, _(" Keh!\nWho'd run a rescue team from a dump\nlike this? Unbelievable.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -3916,12 +3916,12 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's with you?")), VARIANT_DEFAULT(_(" Who are you people?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000041), MSG_NPC(4, _(" Oh!{WAIT_PRESS}\nOver there. A Mailbox〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3934,7 +3934,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" Kekeh, yeah!\nCheck it out!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3942,21 +3942,21 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Whoa, hey!\nWhat do you think you're doing?")), VARIANT_DEFAULT(_(" Now wait a second!\nWhat do you think you're doing?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000041), MSG_NPC(3, _(" Yessss!\nRescue job offers!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000041), MSG_NPC(4, _(" Oo-la-la!\nIsn't that rather tasty〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" We'll have them all.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3968,7 +3968,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ VARIANT(/* == */ 3, _(" Don't butt in!")), VARIANT_DEFAULT(_(" Stop!{WAIT_PRESS}\nThose were meant for us!")), VARIANT_DEFAULT(_(" Don't butt in!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3976,25 +3976,25 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ WAIT(20), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Keh!{WAIT_PRESS}\nIt doesn't matter who does it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000043), MSG_NPC(4, _(" We're a rescue team too,\nI'll have you know〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000042), MSG_NPC(3, _(" ...But all we ever get up\nto is no good.")), MSG_NPC(3, _(" Wanna know how it works?{WAIT_PRESS}\nIf we have the cover of a rescue team,\nwe can get away with so much more!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000043), MSG_NPC(4, _(" We have our eyes on\nworld domination〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Wha...{WAIT_PRESS}\nWorld domination?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4004,7 +4004,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_NPC(2, _(" The world will be ours!")), MSG_NPC(2, _(" The rescue team of evil!\nTeam {COLOR CYAN}Meanies{RESET} is who we are!")), MSG_NPC(2, _(" See you around!\nKekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -4017,7 +4017,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey! Wait!")), VARIANT_DEFAULT(_(" Now wait a second!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -4026,7 +4026,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ VARIANT(/* == */ 1, _(" ...They took off.{WAIT_PRESS}\nWhat a bunch of creeps.")), VARIANT(/* == */ 3, _(" ...They're gone.{WAIT_PRESS}\nWhat a horrible bunch.")), VARIANT_DEFAULT(_(" ...They took off.{WAIT_PRESS}\nWhat an unbelievable bunch.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4037,7 +4037,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wah!\nThis is empty!")), VARIANT_DEFAULT(_(" Oh, no!\nIt is empty!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(473), CALL_SCRIPT(SHOCK_FUNC), { 0x6b, 0x00, 0x0200, 0x0000001f, 0x00000000, NULL }, @@ -4049,7 +4049,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Those guys cleaned us out!")), VARIANT_DEFAULT(_(" They took everything!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -4073,7 +4073,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ VARIANT(/* == */ 1, _(" We can go back to rescuing.")), VARIANT_DEFAULT(_(" We're in luck!\nPelipper delivered some mail!")), VARIANT_DEFAULT(_(" We can go on rescue\nmissions again with this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -4081,7 +4081,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives0_dlg0[] = { /* 0x81acd04 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But those guys...\nThey're not getting away with anything\nthe next time I see them.")), VARIANT_DEFAULT(_(" But those guys...\nThey'd better not try anything if we\nsee them again.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x9d, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -4262,7 +4262,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives5_dlg0[] = { /* 0x81aea0c */ { 0x6b, 0x00, 0x0100, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x1e, 0x0002, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x68, 0x00, 0x0100, 0x00000008, 0x00000000, NULL }, @@ -4273,7 +4273,7 @@ static const struct ScriptCommand s_gs9_g30_s0_lives5_dlg0[] = { /* 0x81aea0c */ FANFARE_PLAY2(501), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Clunk! Clunk!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(451), @@ -4337,17 +4337,17 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ VARIANT(/* == */ 1, _(" Morning, {NAME_0}!\nLet's keep up our good work today!")), VARIANT_DEFAULT(_("")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}!\nLet's do good again today!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" {NAME_0}!\n{NAME_1}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hunh? Who's that?")), VARIANT_DEFAULT(_(" Huh?\nWho was that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -4364,27 +4364,27 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, if it isn't {NAME_5}!\nLong time no see!")), VARIANT_DEFAULT(_(" Oh, {NAME_5}?\nHow have you been?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" Please!{WAIT_PRESS}\nPlease help my friend!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's wrong?")), VARIANT_DEFAULT(_(" What's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0005, 0x00000000), MSG_NPC(5, _(" I was playing with my\nfriend Metapod...")), MSG_NPC(5, _(" But Metapod got lost in the\nwoods...\nHe's still lost out there...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oh, I see, I see!\nThat does sound bad!\nKekeke!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -4399,14 +4399,14 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey! Not you again!")), VARIANT_DEFAULT(_(" Hey! What do you think\nyou're doing?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(16), PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Have no fear!\nWe're here to save your chum Metapod.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4415,38 +4415,38 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ VARIANT(/* == */ 1, _(" Hey!\n{NAME_5} came to us for help!")), VARIANT(/* == */ 3, _(" Wait a second!\n{NAME_5} was asking us to help!")), VARIANT_DEFAULT(_(" Hold on!\n{NAME_5} came to us for help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Keh!\nYou think you can do this rescue with\nyour amateur-level skills?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What?!")), VARIANT_DEFAULT(_(" What did you say?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" It doesn't matter who does\nthe rescuing, see?")), MSG_NPC(2, _(" The guy that does the\nrescuing gets to be the hero.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Listen, {NAME_5}.\nHow about we do this?")), MSG_NPC(2, _(" How about you give the\nreward to the team that brings back your\nchum first?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" But I...{WAIT_PRESS}\nI don't have any money...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Oh, don't you worry about\nthat, my little friend!")), MSG_NPC(2, _(" I'm sure we can persuade\nyour parents to reward us with interest\nafterward, kekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4455,19 +4455,19 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" When you join us, \n{NAME_5}, we'll let you be a big wheel\nin Team {COLOR CYAN}Meanies{RESET}, kekekeke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" That's the deal,\n{NAME_1}.\nThe first to rescue wins!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Come on, move!\nLet's get this done, already!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_FADEOUT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -4479,7 +4479,7 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ WAIT(60), PORTRAIT_REP(0x0005, 0x00000000), MSG_NPC(5, _(" ...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -4490,7 +4490,7 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ VARIANT(/* == */ 1, _(" Don't worry.\nWe'll save your friend first.")), VARIANT(/* == */ 3, _(" Don't worry about a thing.\nWe'll rescue your friend first.")), VARIANT_DEFAULT(_(" Don't worry.\nWe'll save your friend first.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), @@ -4499,7 +4499,7 @@ static const struct ScriptCommand s_gs9_g31_s0_lives0_dlg0[] = { /* 0x81aee18 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}!{WAIT_PRESS}\nLet's roll, and quick!")), VARIANT_DEFAULT(_(" {NAME_0}!{WAIT_PRESS}\nLet's get going!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, @@ -4715,7 +4715,7 @@ static const struct ScriptCommand s_gs9_g33_s0_lives0_dlg0[] = { /* 0x81b0a00 */ VARIANT(/* == */ 1, _(" We bungled it yesterday.\nWe've got to get it right today.")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}.")), VARIANT_DEFAULT(_(" We came up short\nyesterday, so let's be sure to do things\nright today.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -4757,20 +4757,20 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000042), MSG_NPC(2, _(" This is great!\nWelcome back, {NAME_3}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Thank you, {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" And thank you,\n{NAME_1} and {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -4778,7 +4778,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" But I don't have any money...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -4793,7 +4793,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" It's just great to see\nthat {NAME_3} is back safe and sound.")), VARIANT_DEFAULT(_(" We're happy to see that\n{NAME_3} is back safe and sound.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" ............{WAIT_PRESS}\nCool...")), @@ -4801,18 +4801,18 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" You're even more cool\nthan I thought!")), MSG_NPC(2, _(" I want to go on rescues\nwhen I grow up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hahaha!\nThat'd be awesome!\nGo for it!")), VARIANT_DEFAULT(_(" Hahaha!\nThat would be great!\nChase that dream!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" I have an idea!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -4824,7 +4824,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ VARIANT(/* == */ 3, _(" We should make a proper\nrescue team base here.\nSomething impressive.")), VARIANT_DEFAULT(_(" {NAME_0}, we should\ndo something with this place.")), VARIANT_DEFAULT(_(" We should make a proper\nrescue team base here.\nSomething impressive.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4835,13 +4835,13 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, WAIT(4), MSG_NPC(2, _(" I want to work here when\nI grow up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" Me too! Me too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, @@ -4851,7 +4851,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Haha!\nThat's settled, then!")), VARIANT_DEFAULT(_(" Haha!\nThat's what we'll do!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -4862,7 +4862,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ VARIANT(/* == */ 1, _(" Let's make sure we build\nourselves a proper rescue team base!")), VARIANT(/* == */ 3, _(" Let's be sure to build\nour own rescue team base!")), VARIANT_DEFAULT(_(" Let's work hard and build\nour own rescue team base!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -4877,13 +4877,13 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_0} and\n{NAME_1}, thank you again!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000009), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" See you around.\nTake care going home!")), VARIANT_DEFAULT(_(" OK, bye!\nBe careful going home.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -4899,11 +4899,11 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sigh...\nWell, we ended up working for free,\nbut that had to be done.")), VARIANT_DEFAULT(_(" Sigh...\nWell, we ended up working for free,\nbut that was the right thing to do.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" And we got to show\nGengar's team a thing or two, so it's all\ngood!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -4911,7 +4911,7 @@ static const struct ScriptCommand s_gs9_g34_s0_lives0_dlg0[] = { /* 0x81b0c98 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I'm just beat today.\nLet's keep up our good work tomorrow!\nSee you!")), VARIANT_DEFAULT(_(" That was a tiring day.{WAIT_PRESS}\nLet's do some more good tomorrow!\nSee you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -5075,16 +5075,16 @@ static const struct ScriptCommand s_gs9_g35_s0_lives0_dlg0[] = { /* 0x81b2540 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}, morning!\nLet's keep up our good work today!")), VARIANT_DEFAULT(_(" {NAME_0}, good morning!\nLet's do good again today!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Umm... Hello?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Huh? Who could that be?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(120), SELECT_ENTITIES(-1, 2), @@ -5092,10 +5092,10 @@ static const struct ScriptCommand s_gs9_g35_s0_lives0_dlg0[] = { /* 0x81b2540 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" Umm... Is rescue team\n{COLOR CYAN}{TEAM_NAME}{RESET} here?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" That's right...{WAIT_PRESS} Huh?{WAIT_PRESS}\nWait, aren't you...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -5171,12 +5171,12 @@ static const struct ScriptCommand s_gs9_g36_s0_lives0_dlg0[] = { /* 0x81b2ab0 */ VARIANT(/* == */ 3, _(" We saw {NAME_3}\nagreeing to do your rescue job.")), VARIANT_DEFAULT(_(" I remember now!{WAIT_PRESS}\n{NAME_2}, we saw you in Pokémon\nSquare.")), VARIANT_DEFAULT(_(" We watched {NAME_3}\nagreeing to take on your rescue job.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000041), MSG_NPC(2, _(" Yes.{WAIT_PRESS}\nBut, {NAME_3}...")), MSG_NPC(2, _(" He hasn't come back yet\nfrom the rescue mission.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), @@ -5184,31 +5184,31 @@ static const struct ScriptCommand s_gs9_g36_s0_lives0_dlg0[] = { /* 0x81b2ab0 */ BGM_SWITCH(9), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Are you serious?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Our friend {NAME_2} got\nwedged between some rocks.")), MSG_NPC(2, _(" We {NAME_2} can go\nanywhere if we can catch a wind, but...")), MSG_NPC(2, _(" Even though the skies are\nfilled with thunderclouds, for some\nodd reason, the winds haven't blown.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Not even a breeze?{WAIT_PRESS}\nThat is strange...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" {NAME_3}'s leafy fans\ncan whip up powerful winds.")), MSG_NPC(2, _(" We thought {NAME_3}'s\nwind would be able to dislodge our friend,\nbut...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But {NAME_3} hasn't\ncome back...")), VARIANT(/* == */ 1, _(" It doesn't sound like that\ntough of a rescue...{WAIT_PRESS}\nThat is weird...")), VARIANT_DEFAULT(_(" But {NAME_3} hasn't\nreturned...?")), VARIANT_DEFAULT(_(" It doesn't sound like all\nthat challenging of a rescue mission...{WAIT_PRESS}\nIt is strange...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), WAIT(150), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -5220,7 +5220,7 @@ static const struct ScriptCommand s_gs9_g36_s0_lives0_dlg0[] = { /* 0x81b2ab0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh?{WAIT_PRESS}\nThat's the spirit, {NAME_0}.{WAIT_PRESS}\nYour look says you won't need to be asked.")), VARIANT_DEFAULT(_(" Oh?{WAIT_PRESS} That's the spirit,\n{NAME_0}.{WAIT_PRESS}\nYour expression tells me you're ready.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -5229,18 +5229,18 @@ static const struct ScriptCommand s_gs9_g36_s0_lives0_dlg0[] = { /* 0x81b2ab0 */ VARIANT(/* == */ 1, _(" That's it, then!\nWe'll go look for them!")), VARIANT(/* == */ 3, _(" OK!\nWe'll go look for them!")), VARIANT_DEFAULT(_(" OK, then!\nWe'll go look for them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" R-really?\nThank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Leave it to us!")), VARIANT_DEFAULT(_(" No problem!\nYou can count on us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000001, 0x00000000, NULL }, @@ -5248,7 +5248,7 @@ static const struct ScriptCommand s_gs9_g36_s0_lives0_dlg0[] = { /* 0x81b2ab0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's get to it,\n{NAME_0}!")), VARIANT_DEFAULT(_(" Let's go, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -5357,7 +5357,7 @@ static const struct ScriptCommand s_gs9_g38_s0_lives0_dlg0[] = { /* 0x81b3acc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Morning!{WAIT_PRESS}\nLet's try to get things right today!")), VARIANT_DEFAULT(_(" Good morning!{WAIT_PRESS}\nLet's do our best like always!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -5413,19 +5413,19 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" Yay! Saved!\nI'm so happy!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000041), MSG_NPC(3, _(" But even though I'm safe,\nShiftry is in trouble...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Tell us.\nWhat went down, exactly?")), VARIANT_DEFAULT(_(" Please tell us.\nExactly what happened?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" ...Yes...")), @@ -5433,17 +5433,17 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ MSG_NPC(3, _(" And released me from\nbetween the rocks.")), MSG_NPC(3, _(" But those winds tore\na thundercloud in two...")), MSG_NPC(3, _(" And that was when that\nmonster appeared in the sky.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That monster...{WAIT_PRESS}\nIt said it was Zapdos or something.")), VARIANT_DEFAULT(_(" That monster...{WAIT_PRESS}\nIt said it was Zapdos...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_FADEOUT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Did you say Zapdos?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -5456,7 +5456,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" {NAME_4}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -5469,10 +5469,10 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ PORTRAIT(PLACEMENT_TOP_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" Zapdos...{WAIT_PRESS}\nIt's one of the legendary bird Pokémon.")), MSG_NPC(4, _(" I heard it had been\nsleeping for a long time...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" So Shiftry woke it up?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000000), @@ -5481,18 +5481,18 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ MSG_NPC(4, _(" It must have been caused\nby the rash of natural disasters recently.")), MSG_NPC(4, _(" Zapdos is enraged from\nhaving been awoken from its sleep.")), MSG_NPC(4, _(" Shiftry must be saved.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" But Zapdos won't be easy.{WAIT_PRESS}\nIts electric attacks are wicked nasty.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP, 0x0004, 0x00000000), MSG_NPC(4, _(" I know that.{WAIT_PRESS}\nWe will need to be cautious.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5501,7 +5501,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ VARIANT(/* == */ 1, _(" We'll go too!\nWe'll go help Shiftry!")), VARIANT(/* == */ 3, _(" We'll go too!\nWe'll go help Shiftry!")), VARIANT_DEFAULT(_(" We'll go too!\nWe'll go help Shiftry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -5509,7 +5509,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ PORTRAIT(PLACEMENT_TOP_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" What?!{WAIT_PRESS}\nThat is dangerous!")), MSG_NPC(4, _(" Zapdos is powerful.{WAIT_PRESS}\nIt will be too much for your skill level.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000003), @@ -5530,7 +5530,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ CHOICE(/* label */ 15, _("Yup! I'm not scared!")), CHOICE(/* label */ 16, _("Owowow... My stomach!")), LABEL(15), /* = 0x0f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5541,7 +5541,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ CHOICE(/* label */ 18, _("No problem!")), CHOICE(/* label */ 16, _("Owowow... My stomach!")), LABEL(18), /* = 0x12 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5551,7 +5551,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ CHOICE(/* label */ 20, _("I'm not scared!")), CHOICE(/* label */ 16, _("Owowow... My stomach!")), LABEL(20), /* = 0x14 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5564,10 +5564,10 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ VARIANT(/* == */ 3, _(" We want to help Shiftry!")), VARIANT_DEFAULT(_(" We're a rescue team too!")), VARIANT_DEFAULT(_(" We want to help Shiftry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(21), LABEL(16), /* = 0x10 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), FANFARE_PLAY2(457), @@ -5585,7 +5585,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ VARIANT(/* == */ 3, _(" Always faking a\nstomachache...\nIt gets to be annoying.")), VARIANT_DEFAULT(_(" No problem!{WAIT_PRESS}\n{NAME_0} always does this act.")), VARIANT_DEFAULT(_(" It's always a fake\nstomachache.\nIt bugs me a little.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), CALL_SCRIPT(SWEAT_FUNC), { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, @@ -5597,7 +5597,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ VARIANT(/* == */ 3, _(" We want to help Shiftry!")), VARIANT_DEFAULT(_(" We're a rescue team too!")), VARIANT_DEFAULT(_(" We want to help Shiftry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(21), /* = 0x15 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -5605,13 +5605,13 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ PORTRAIT(PLACEMENT_TOP_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" ......")), MSG_NPC(4, _(" Fine.{WAIT_PRESS}\nI see that you have courage.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Yes!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" Our two teams should make\nour ways separately through {COLOR YELLOW_D}Mt. Thunder{RESET}.")), @@ -5619,7 +5619,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ MSG_NPC(4, _(" Knowing how strong our\nopponent is, we have no choice but to\nbe cautious.")), MSG_NPC(4, _(" You should make way for\n{COLOR YELLOW_D}Mt. Thunder{RESET} only when you are fully\nprepared.")), MSG_NPC(4, _(" Our objective is to rescue\nShiftry!\nLet us find success!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), @@ -5636,7 +5636,7 @@ static const struct ScriptCommand s_gs9_g39_s0_lives0_dlg0[] = { /* 0x81b3de0 */ VARIANT(/* == */ 1, _(" {NAME_0}!\nLet's give it our best, partner!")), VARIANT(/* == */ 3, _(" {NAME_0}!\nLet's do good!")), VARIANT_DEFAULT(_(" {NAME_0}!\nLet's do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x002a, 0x00000000, 0x00000000, NULL }, @@ -5857,7 +5857,7 @@ static const struct ScriptCommand s_gs9_g40_s0_lives0_dlg0[] = { /* 0x81b603c */ VARIANT_DEFAULT(_(" But Alakazam said that we\nshould be properly prepared before we\ntry...")), VARIANT_DEFAULT(_(" What should we do?{WAIT_PRESS}\nWe can go to {COLOR YELLOW_D}Mt. Thunder{RESET} right now\nor later. It's up to you.")), VARIANT_DEFAULT(_(" But anyway, let's do our\nbest like always!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -5912,7 +5912,7 @@ static const struct ScriptCommand s_gs9_g42_s0_lives0_dlg0[] = { /* 0x81b6630 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Morning!{WAIT_PRESS}\nLet's keep giving it our best!")), VARIANT_DEFAULT(_(" Good morning!{WAIT_PRESS}\nLet's do our best like always!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -5975,7 +5975,7 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ VARIANT_DEFAULT(_(" Yesterday, I did some\nchecking around.")), VARIANT_DEFAULT(_(" It turns out that the\n{COLOR CYAN}Hill of the Ancients{RESET} is apparently in\nthe {COLOR YELLOW_D}Great Canyon{RESET}.")), VARIANT_DEFAULT(_(" We should go there right\naway!\nOff to the {COLOR YELLOW_D}Great Canyon{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -5992,7 +5992,7 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Huh?")), VARIANT_DEFAULT(_(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(3), LABEL(2), /* = 0x02 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -6002,7 +6002,7 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ VARIANT(/* == */ 3, _(" Weren't you going to ask\nme something?")), VARIANT_DEFAULT(_(" Huh?")), VARIANT_DEFAULT(_(" Weren't you about to ask\nme something?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" So what's the matter?\nGet it off your chest.")), @@ -6036,13 +6036,13 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ VARIANT_DEFAULT(_(" You said it.")), VARIANT_DEFAULT(_(" It lets me try harder to do\nmy best because it's not about me.")), VARIANT_DEFAULT(_(" We're friends, aren't we,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I want to do my best\nbecause it's for you, {NAME_0}.")), VARIANT(/* == */ 3, _(" I want to do my best\nbecause it's for you, {NAME_0}.")), VARIANT_DEFAULT(_(" I want to do my best\nbecause it's for you, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(8), LABEL(7), /* = 0x07 */ PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000009), @@ -6053,13 +6053,13 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ VARIANT(/* == */ 3, _(" We're friends, aren't we,\n{NAME_0}?")), VARIANT_DEFAULT(_(" Someone else?\nCome on, what do you think I am?")), VARIANT_DEFAULT(_(" We're friends, aren't we,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I want to do my best\nbecause it's for you, {NAME_0}.")), VARIANT(/* == */ 3, _(" I want to do my best\nbecause it's for you, {NAME_0}.")), VARIANT_DEFAULT(_(" I want to do my best\nbecause it's for you, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(8), LABEL(8), /* = 0x08 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6067,7 +6067,7 @@ static const struct ScriptCommand s_gs9_g43_s0_lives0_dlg0[] = { /* 0x81b690c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That's what it's about.\nSo anyway, let's give it our best as\nusual!")), VARIANT_DEFAULT(_(" That's what this is about.\nSo, as always, let's try our best to \ndo well!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -6132,7 +6132,7 @@ static const struct ScriptCommand s_gs9_g44_s0_lives0_dlg0[] = { /* 0x81b78c0 */ VARIANT(/* == */ 1, _(" Like always, let's give\nit our best!")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's do our best like we\nalways do!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -6181,7 +6181,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Let's keep doing our best...{WAIT_PRESS}\nActually, I need to ask you something.")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's keep on doing good...{WAIT_PRESS}\nActually, I want to ask you something.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" Remember what\n{NAME_3} said yesterday?{WAIT_PRESS}\nDoes it bother you?")), @@ -6189,7 +6189,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ CHOICE(/* label */ 0, _("Yes.")), CHOICE(/* label */ 1, _("No.")), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6203,10 +6203,10 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT_DEFAULT(_(" There's supposed to be\na link between the world's balance being\nupset and how you became a Pokémon...")), VARIANT_DEFAULT(_(" And because of the world's\nupset balance, natural disasters have been\noccurring...")), VARIANT_DEFAULT(_(" And more than anything,\nhe said that the world will be ruined\nif the balance isn't restored...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(2), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6220,7 +6220,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT_DEFAULT(_(" {NAME_0}!\nDon't joke around--it's not funny!")), VARIANT_DEFAULT(_(" The world might be\ndestroyed!")), VARIANT_DEFAULT(_(" And how you became a\nPokémon, {NAME_0}...\nThat's all supposed to be related!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), @@ -6237,13 +6237,13 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT_DEFAULT(_(" I wasn't thinking.\nYou should be more worried than I am,\n{NAME_0}...")), VARIANT_DEFAULT(_(" You're in the middle of this.\nOf course you're worried...")), VARIANT_DEFAULT(_(" I'm sorry, {NAME_0}.\nI should have realized...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_3} said the world\nwill be destroyed if nothing's done...")), VARIANT_DEFAULT(_(" {NAME_3} said that the\nworld will be ruined if nothing is done...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(2), LABEL(2), /* = 0x02 */ PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), @@ -6252,13 +6252,13 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Tell me.\nThe world's balance...{WAIT_PRESS}\nWhat is that?")), VARIANT_DEFAULT(_(" I want to do something...{WAIT_PRESS}\nBut there's something I don't understand.")), VARIANT_DEFAULT(_(" So, uh...\nThe world's balance...{WAIT_PRESS}\nWhat is it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3(FALSE, /*default*/ -1, /* speaker */ 1, _(" {NAME_0}, do you know?\nWhat the world's balance is?")), CHOICE(/* label */ 3, _("Of course.")), CHOICE(/* label */ 4, _("Don't know.")), CLEAR_ARRAY(EVENT_LOCAL), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6267,7 +6267,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, really?!{WAIT_PRESS}\n{NAME_0}, you know?!")), VARIANT_DEFAULT(_(" Oh, really?!{WAIT_PRESS}\n{NAME_0}, you know?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CLEAR_ARRAY(EVENT_LOCAL), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" So, what is it?\nWhat is the world's balance?")), @@ -6275,7 +6275,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ CHOICE(/* label */ 5, _("It's in space.")), CHOICE(/* label */ 6, _("Sorry. I don't know.")), LABEL(5), /* = 0x05 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), FANFARE_PLAY2(473), @@ -6283,12 +6283,12 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ WAIT(100), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" In space...?{WAIT_PRESS}\nLike where the stars and the moon are?\nThat space?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hmm...\nI'm getting even more confused here...")), VARIANT_DEFAULT(_(" Hmm...\nI'm getting even more confused...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CLEAR_ARRAY(EVENT_LOCAL), { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -6297,14 +6297,14 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ CHOICE(/* label */ 7, _("If you go, you'll see.")), CHOICE(/* label */ 6, _("Sorry. I don't know.")), LABEL(7), /* = 0x07 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?!{WAIT_PRESS}\nGo out to space?!")), VARIANT_DEFAULT(_(" Huh?!{WAIT_PRESS}\nGo out to space?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CLEAR_ARRAY(EVENT_LOCAL), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -6313,7 +6313,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ CHOICE(/* label */ 8, _("Fly there.")), CHOICE(/* label */ 9, _("On guts.")), LABEL(8), /* = 0x08 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), @@ -6321,7 +6321,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Hah?!\nNo way! I can't fly!")), VARIANT(/* == */ 3, _(" Huh?!\nHow am I supposed to fly?!")), VARIANT_DEFAULT(_(" Huh?!\nI can't fly!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_LIVES(-1, 1), WAIT(10), @@ -6343,11 +6343,11 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 3, _(" You came at the right time!{WAIT_PRESS}\nI was wondering if you could carry us\nout to space...")), VARIANT_DEFAULT(_(" Oh! {NAME_2}!")), VARIANT_DEFAULT(_(" Just who we need!{WAIT_PRESS}\nYou see, we're wondering if you could\ncarry us to space...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" No way!\nNot a chance!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(90), @@ -6359,7 +6359,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ CHOICE(/* label */ 10, _("It appears to be impossible...")), CHOICE(/* label */ 10, _("It's impossible, after all...")), LABEL(10), /* = 0x0a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -6371,17 +6371,17 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Think a little more before\nyou say anything!")), VARIANT_DEFAULT(_(" What's wrong with you?!\nSaying all these ridiculous things!")), VARIANT_DEFAULT(_(" I wish you'd be more\nconsiderate before making jokes!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So, you don't know anything\nat all, {NAME_0}...")), VARIANT_DEFAULT(_(" So, you don't know either,\n{NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(11), LABEL(9), /* = 0x09 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0x54, 0x00, 0x0029, 0x00000000, 0x00000000, NULL }, @@ -6394,17 +6394,17 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" If that's all it took, we\nwouldn't be talking about it!")), VARIANT_DEFAULT(_(" What are you saying?!\nGuts?!")), VARIANT_DEFAULT(_(" If that's all it took,\nnone of this would be necessary!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So, you don't know anything\nat all, {NAME_0}...")), VARIANT_DEFAULT(_(" So, you don't know either,\n{NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(11), LABEL(6), /* = 0x06 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6414,24 +6414,24 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Cut it out!")), VARIANT_DEFAULT(_(" Sheesh!\nThat is so lame!")), VARIANT_DEFAULT(_(" Don't joke around like that!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...But, yeah, I guess it's\nimpossible to tell what it is...")), VARIANT_DEFAULT(_(" ...But I guess it isn't\npossible to know what it is...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(11), LABEL(4), /* = 0x04 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...OK.{WAIT_PRESS}\nYeah, I guess so.\nIt'd be impossible to know.")), VARIANT_DEFAULT(_(" ...OK.{WAIT_PRESS}\nI guess so. You wouldn't know.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(11), /* = 0x0b */ PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -6439,7 +6439,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 1, _(" Honest, I don't know what\nto do...")), VARIANT_DEFAULT(_(" I can't imagine what the\nworld's balance is about...")), VARIANT_DEFAULT(_(" To be honest, I don't know\nwhat we should do...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I guess we'll just have to\ndo what we can.")), @@ -6448,7 +6448,7 @@ static const struct ScriptCommand s_gs9_g45_s0_lives0_dlg0[] = { /* 0x81b7b50 */ VARIANT(/* == */ 3, _(" One thing at a time...")), VARIANT_DEFAULT(_(" I guess we'll just have to\ndo what we can.")), VARIANT_DEFAULT(_(" One thing at a time...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -6547,7 +6547,7 @@ static const struct ScriptCommand s_gs9_g45_s1_lives0_dlg0[] = { /* 0x81ba378 */ { 0x6b, 0x00, 0x0100, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x1e, 0x0002, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x68, 0x00, 0x0100, 0x00000008, 0x00000000, NULL }, @@ -6608,7 +6608,7 @@ static const struct ScriptCommand s_gs9_g46_s0_lives0_dlg0[] = { /* 0x81ba664 */ VARIANT_DEFAULT(_(" I guess it's because I heard\nthat story.\nAhahaha...")), VARIANT_DEFAULT(_(" I'll go home and try to get\nsome sleep.")), VARIANT_DEFAULT(_(" I'll see you tomorrow.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(160), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -6624,7 +6624,7 @@ static const struct ScriptCommand s_gs9_g46_s0_lives0_dlg0[] = { /* 0x81ba664 */ VARIANT(/* == */ 1, _(" {NAME_0}!\nSorry!")), VARIANT(/* == */ 3, _(" {NAME_0}!\nSorry!")), VARIANT_DEFAULT(_(" {NAME_0}!\nSorry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), CALL_SCRIPT(NOTICE_FUNC), @@ -6654,7 +6654,7 @@ static const struct ScriptCommand s_gs9_g46_s0_lives0_dlg0[] = { /* 0x81ba664 */ VARIANT(/* == */ 1, _(" All right, {NAME_0}!\nLet's get back to doing our best tomorrow!")), VARIANT(/* == */ 3, _(" OK, {NAME_0}!\nLet's try our best to do well tomorrow!")), VARIANT_DEFAULT(_(" OK, {NAME_0}!\nLet's do our best tomorrow like always!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x0c, 0x000a, 0x00000006, 0x00000000, NULL }, @@ -6715,17 +6715,17 @@ static const struct ScriptCommand s_gs9_g47_s0_lives0_dlg0[] = { /* 0x81bb154 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000009), MSG_NPC(1, _(" Morning, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...Huh?{WAIT_PRESS}\nYou look pale.\nWhat's up with you?")), VARIANT_DEFAULT(_(" ...Oh?{WAIT_PRESS}\nYou look pale.\nIs something the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Well, anyway.\nLet's give it our best like always!")), VARIANT_DEFAULT(_(" Well, anyway.\nAs always, let's try to do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -6734,7 +6734,7 @@ static const struct ScriptCommand s_gs9_g47_s0_lives0_dlg0[] = { /* 0x81bb154 */ PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" When I was on the way\nhere, I think there was a commotion at\nPokémon Square.")), MSG_NPC(1, _(" I wonder if something\nhappened...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -6804,27 +6804,27 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ { 0x93, 0x05, 0x0002, 0x00000022, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" I never expected everyone\nto attack us like that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But, hey, {NAME_0}.")), VARIANT_DEFAULT(_(" But listen, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000003), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Why didn't you say anything?")), VARIANT(/* == */ 1, _(" Why didn't you say it's not\nyou?!")), VARIANT_DEFAULT(_(" Why didn't you say anything?")), VARIANT_DEFAULT(_(" Why didn't you argue that\nit's not you?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" Why didn't you say you're\nnot the human that appears in the legend\nof {NAME_6}?")), VARIANT_DEFAULT(_(" You should have said you're\nnot the human that appears in the legend\nof {NAME_6}!")), CHOICE(/* label */ 1, _("...Listen, {NAME_1}.")), CHOICE(/* label */ 1, _("...Hey, {NAME_1}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), LABEL(1), /* = 0x01 */ PORTRAIT_REP(0x0001, 0x00000004), @@ -6833,7 +6833,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT_DEFAULT(_(" Huh?\nWhat is it?")), CHOICE(/* label */ 2, _("Want to end the team?")), CHOICE(/* label */ 3, _("I'm tired of this...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), LABEL(2), /* = 0x02 */ FANFARE_PLAY2(473), @@ -6846,12 +6846,12 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT_DEFAULT(_(" Wh-what's the matter?\nWhat makes you say that all of a sudden?")), VARIANT_DEFAULT(_(" Give up on our rescue\nteam?{WAIT_PRESS}\nIt's not like you to say that, {NAME_0}.")), VARIANT_DEFAULT(_(" Is something the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), LABEL(3), /* = 0x03 */ PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Hah? You're tired?\nWhat are you saying?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0x54, 0x00, 0x0800, 0x00000000, 0x00000000, NULL }, @@ -6869,7 +6869,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT_DEFAULT(_(" ...Huh?!{WAIT_PRESS}\nYou don't think you deserve to be on our\nrescue team?!")), VARIANT_DEFAULT(_(" What's wrong?!{WAIT_PRESS}\nWhat makes you say that?!")), VARIANT_DEFAULT(_(" That doesn't sound like you\nat all, {NAME_0}.{WAIT_PRESS}\nTell me, what's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), LABEL(4), /* = 0x04 */ { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -6887,7 +6887,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ MSG_NPC(1, _(" ...And that made you think\nthat maybe you were that human after\nall...")), PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" ...So that's what it is.\nThat's what happened...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000003), @@ -6911,14 +6911,14 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT(/* == */ 3, _(" So...")), VARIANT_DEFAULT(_(" I...{WAIT_PRESS}\nI have faith in you, {NAME_0}.\nYou know that?")), VARIANT_DEFAULT(_(" So...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), WAIT(90), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Oh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6928,7 +6928,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ MSG_NPC(2, _(" After that scene in\nPokémon Square...{WAIT_PRESS}\nWe held a town meeting...")), MSG_NPC(2, _(" On what we must do to\nsave the world...")), MSG_NPC(2, _(" And we arrived at a\nconsensus.{WAIT_PRESS}\nWe must get rid of you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(9), WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -6936,12 +6936,12 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wh-what did you say?!")), VARIANT_DEFAULT(_(" You're kidding!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" I was incredulous too...")), MSG_NPC(2, _(" I had hoped it would not\ncome to this, but...{WAIT_PRESS}\nIt is unfortunate.")), MSG_NPC(2, _(" We will...\nDefeat you with all our might!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -6953,7 +6953,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000c), { 0x34, 0x00, 0x0001, 0x00000000, 0x00000000, _(" (W-we're fighting here...?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -6969,38 +6969,38 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ WAIT(30), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" We will give you tonight.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" Pack your supplies and get\nout of here.")), MSG_NPC(2, _(" Come tomorrow, rescue\nteams of all sorts will take up the chase...")), MSG_NPC(2, _(" And attack you without\nhesitation.")), MSG_NPC(2, _(" And not just you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Anyone that goes with\n{NAME_0} will be considered an enemy.")), MSG_NPC(2, _(" The trackers will attack\nwithout mercy.")), MSG_NPC(2, _(" That goes for us too.\nWe will join the hunt to be rid of you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Against all odds, you must\nrun.")), MSG_NPC(2, _(" Run, run...{WAIT_PRESS}\nAnd survive.")), MSG_NPC(2, _(" You must run till you\nuncover the truth.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000008), MSG_NPC(1, _(" {NAME_2}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" There will be no mercy\nthe next time we meet.{WAIT_PRESS}\nFarewell.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -7039,13 +7039,13 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT(/* == */ 1, _(" So what's all this about\nnot believing in yourself, {NAME_0}?")), VARIANT(/* == */ 3, _(" So what are we supposed to\ndo if you don't have faith in yourself,\n{NAME_0}?")), VARIANT_DEFAULT(_(" What good will it do if\nyou don't believe in yourself,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 2), WAIT(1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), @@ -7054,7 +7054,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x00000005), MSG_NPC(1, _(" {NAME_5}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7065,7 +7065,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ MSG_NPC(5, _(" {NAME_0}...\nDon't give up.")), MSG_NPC(5, _(" You're a hero to me,\n{NAME_0}.")), MSG_NPC(5, _(" I believe in you too,\n{NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -7074,7 +7074,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ CHOICE(/* label */ 18, _("OK! I won't give up!")), CHOICE(/* label */ 18, _("I'm over it! No giving up!")), LABEL(18), /* = 0x12 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7103,7 +7103,7 @@ static const struct ScriptCommand s_gs9_g48_s0_lives0_dlg0[] = { /* 0x81bb6cc */ VARIANT_DEFAULT(_(" We'll have to leave for\nthe time being...")), VARIANT_DEFAULT(_(" But let's be sure to come\nback!")), VARIANT_DEFAULT(_(" And we'll bring the truth\nback with us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_FADEOUT(90), { 0x23, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, @@ -7332,7 +7332,7 @@ static const struct ScriptCommand s_gs9_g49_s0_station_sref_script[] = { /* 0x81 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next dawn...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -7359,7 +7359,7 @@ static const struct ScriptCommand s_gs9_g49_s0_lives0_dlg0[] = { /* 0x81bea68 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Morning, {NAME_0}!\nIt's early, but I guessed you would be up!")), VARIANT_DEFAULT(_(" Morning, {NAME_0}!{WAIT_PRESS}\nIt's early, but of course you'd be up by\nnow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000000), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" Are you ready to roll?")), @@ -7373,7 +7373,7 @@ static const struct ScriptCommand s_gs9_g49_s0_lives0_dlg0[] = { /* 0x81bea68 */ VARIANT(/* == */ 1, _(" Tell me when you're set.{WAIT_PRESS}\nWe'll roll out then.")), VARIANT_DEFAULT(_(" Oh, OK.\nI'll wait while you get ready.")), VARIANT_DEFAULT(_(" Tell me when you're\nready.{WAIT_PRESS}\nLet's leave then.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -7473,7 +7473,7 @@ static const struct ScriptCommand s_gs9_g50_s2_lives0_dlg0[] = { /* 0x81bf188 */ VARIANT_DEFAULT(_(" There are other Pokémon in\nthe square, so be really careful.")), VARIANT_DEFAULT(_(" It's still early, so I think\neveryone will still be asleep...")), VARIANT_DEFAULT(_(" But be sure not to wake\nanyone up.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -7529,7 +7529,7 @@ static const struct ScriptCommand s_gs9_g50_s3_lives0_dlg0[] = { /* 0x81bf648 */ WAIT(1), PORTRAIT(PLACEMENT_TOP, 0x0001, 0x00000000), MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -7560,7 +7560,7 @@ static const struct ScriptCommand s_gs9_g51_s0_lives0_dlg0[] = { /* 0x81bf7d4 */ { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x09, 0x0002, 0x00000058, 0x00000000, NULL }, { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -7589,13 +7589,13 @@ static const struct ScriptCommand s_gs9_g51_s0_lives0_dlg0[] = { /* 0x81bf7d4 */ VARIANT(/* == */ 3, _(" We have to keep running\nbecause we can't afford to be caught.")), VARIANT_DEFAULT(_(" We have to get away from\nthe rescue teams hunting us.")), VARIANT_DEFAULT(_(" We have to get away at\nall cost.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_SWITCH(24), PORTRAIT(PLACEMENT_RIGHT, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...Yes. We have to escape.)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Like {NAME_2} said that time...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x5f, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -7635,7 +7635,7 @@ static const struct ScriptCommand s_gs9_g52_s0_lives0_dlg0[] = { /* 0x81bff70 */ MSG_NPC(2, _(" Against all odds, you must\nrun.")), MSG_NPC(2, _(" Run, run...{WAIT_PRESS}\nAnd survive.")), MSG_NPC(2, _(" You must run till you\nuncover the truth.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -7715,16 +7715,16 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Yes...\nWho am I?)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Until I discover that truth, I have to\nrun and survive.)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Even if it means going to the edge\nof this world...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" OK!\nLet's roll out!")), VARIANT_DEFAULT(_(" OK!\nLet's get going!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" {NAME_0}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), @@ -7745,7 +7745,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000b), MSG_NPC(1, _(" Caterpie! And Metapod too!")), MSG_NPC(1, _(" Oh, and even Jumpluff!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -7756,16 +7756,16 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Wow, I'm glad!\nWe made it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000000), MSG_NPC(6, _(" We wanted to see you off,\n{NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" M-me too!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -7789,16 +7789,16 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ WAIT(30), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Good morning.\nIt's me, Diglett.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" I wanted to send you off\ntoo.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000008), MSG_NPC(1, _(" Everyone...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -7818,7 +7818,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" It's a letter.\n{NAME_0}, can you read it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -7831,36 +7831,36 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ { 0x91, 0x04, 0x000b, 0x00000004, 0x00000000, NULL }, WAIT(30), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} began reading the letter.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("“Take care!\n It's farewell, but only for now.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Until the day I can deliver mail\n to you again...") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I'll always be waiting.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _(" - The wandering postal carrier,\n Pelipper -”") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x0000000b), MSG_NPC(1, _(" Even Pelipper...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000008), MSG_NPC(1, _(" Sniff...\nEveryone, thank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" The other Pokémon will\nbe waking up soon.")), MSG_NPC(4, _(" You have to go!\nHurry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000b, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x00000000), MSG_NPC(1, _(" Yup.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" {NAME_0}!\nLet's go! Hit the road!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -7887,7 +7887,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives0_dlg0[] = { /* 0x81c02fc */ VARIANT_DEFAULT(_(" Yup! Thank you!")), VARIANT_DEFAULT(_(" We'll be back!\nThat's for sure!")), VARIANT_DEFAULT(_(" Take care until then!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, @@ -8004,7 +8004,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives2_dlg0[] = { /* 0x81c1678 */ TEXTBOX_AUTO_PRESS(60, 60), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" Take care!")), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, TEXTBOX_AUTO_PRESS(-1, -1), { 0xe3, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, HALT, @@ -8056,7 +8056,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives4_dlg0[] = { /* 0x81c1a94 */ { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x1e, 0x0002, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x68, 0x00, 0x0100, 0x00000008, 0x00000000, NULL }, @@ -8073,7 +8073,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives4_dlg0[] = { /* 0x81c1a94 */ FANFARE_PLAY2(501), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Clunk!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(451), @@ -8121,7 +8121,7 @@ static const struct ScriptCommand s_gs9_g53_s0_lives5_dlg0[] = { /* 0x81c1d74 */ TEXTBOX_AUTO_PRESS(80, 80), PORTRAIT(PLACEMENT_TOP, 0x0006, 0x00000000), MSG_NPC(6, _(" We'll be waiting for both\nof you to return!")), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, TEXTBOX_AUTO_PRESS(-1, -1), { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -8214,7 +8214,7 @@ static const struct ScriptCommand s_gs9_g55_s0_lives0_dlg0[] = { /* 0x81c23c0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" OK, we're back in the\nrescue team business!")), VARIANT_DEFAULT(_(" All right!\nWe'll get right back into doing\nrescues.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_ENTITIES(-1, 1), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Flap! Flap!") }, @@ -8223,7 +8223,7 @@ static const struct ScriptCommand s_gs9_g55_s0_lives0_dlg0[] = { /* 0x81c23c0 */ CALL_SCRIPT(NOTICE_FUNC), { 0x93, 0x04, 0x000b, 0x00000037, 0x00000000, NULL }, WAIT(100), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000007, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8241,7 +8241,7 @@ static const struct ScriptCommand s_gs9_g55_s0_lives0_dlg0[] = { /* 0x81c23c0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's give it our best like\nwe always used to, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's try to do our best like\nwe always did, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -8288,7 +8288,7 @@ static const struct ScriptCommand s_gs9_g55_s1_lives0_dlg0[] = { /* 0x81c2958 */ FANFARE_PLAY2(501), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Clunk! Clunk!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(451), @@ -8338,7 +8338,7 @@ static const struct ScriptCommand s_gs9_g57_s0_lives0_dlg0[] = { /* 0x81c2c50 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_NPC(1, _(" Good morning, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8346,7 +8346,7 @@ static const struct ScriptCommand s_gs9_g57_s0_lives0_dlg0[] = { /* 0x81c2c50 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...Hunh? What's up?\nIs something wrong?")), VARIANT_DEFAULT(_(" ...Huh? What's the matter?\nIs something wrong?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8373,7 +8373,7 @@ static const struct ScriptCommand s_gs9_g57_s0_lives0_dlg0[] = { /* 0x81c2c50 */ VARIANT_DEFAULT(_(" But Alakazam's team is\ntough too.\nThey should be fine.")), VARIANT_DEFAULT(_(" Anyway, we agreed to let\nAlakazam deal with Groudon.")), VARIANT_DEFAULT(_(" We don't have any choice.\nWe have to wait for them to come back.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000009), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" We've got to do what we\ncan do.")), @@ -8382,7 +8382,7 @@ static const struct ScriptCommand s_gs9_g57_s0_lives0_dlg0[] = { /* 0x81c2c50 */ VARIANT(/* == */ 3, _(" So let's do our best with\nthe rescue team!")), VARIANT_DEFAULT(_(" We have to do what we can\nfor our part.")), VARIANT_DEFAULT(_(" So let's do our best with\nthe rescue team!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -8444,13 +8444,13 @@ static const struct ScriptCommand s_gs9_g58_s0_lives0_dlg0[] = { /* 0x81c37c8 */ VARIANT_DEFAULT(_(" Oh, hi!\nYou're up early, {NAME_0}.")), VARIANT_DEFAULT(_(" Did you notice the\nearthquake earlier?")), VARIANT_DEFAULT(_(" It's hard to get decent sleep\nwhen there are so many earthquakes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(90), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hey!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), @@ -8467,24 +8467,24 @@ static const struct ScriptCommand s_gs9_g58_s0_lives0_dlg0[] = { /* 0x81c37c8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_2}.{WAIT_PRESS}\nWhat's up?")), VARIANT_DEFAULT(_(" Oh, {NAME_2}.{WAIT_PRESS}\nWhat's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" We need you at the square!\nEveryone's gathering there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Is there something wrong?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" I'm not really sure...\nShiftry's calling everyone out.")), MSG_NPC(2, _(" He's getting the other rescue\nteams to come.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000006, 0x00000000, NULL }, MSG_NPC(1, _(" {NAME_0}, let's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(5), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -8579,7 +8579,7 @@ static const struct ScriptCommand s_gs9_g59_s0_lives0_dlg0[] = { /* 0x81c4100 */ VARIANT_DEFAULT(_(" I wish we could have gone\ntoo, but there's nothing we can do about\nthat.")), VARIANT_DEFAULT(_(" {NAME_2}'s team can\ntake care of things underground.")), VARIANT_DEFAULT(_(" We'll keep doing the best we\ncan in our rescue work.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -8641,7 +8641,7 @@ static const struct ScriptCommand s_gs9_g60_s0_lives0_dlg0[] = { /* 0x81c45d8 */ VARIANT_DEFAULT(_(" We're not leaving until\ntomorrow, but I'm jumpy with anticipation.")), VARIANT_DEFAULT(_(" Let's spend today getting\nready for the dungeon.")), VARIANT_DEFAULT(_(" Let me know when you're\nall ready to go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -8699,7 +8699,7 @@ static const struct ScriptCommand s_gs9_g61_s0_lives0_dlg2[] = { /* 0x81c4a70 */ VARIANT_DEFAULT(_(" OK!\nAll set!")), VARIANT_DEFAULT(_(" We should both get\na good night's sleep.")), VARIANT_DEFAULT(_(" And we'll set out tomorrow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(90), { 0x23, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -8726,7 +8726,7 @@ static const struct ScriptCommand s_gs9_g61_s1_lives0_dlg0[] = { /* 0x81c4db4 */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -8790,7 +8790,7 @@ static const struct ScriptCommand s_gs9_g62_s0_lives0_dlg0[] = { /* 0x81c5060 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is it!{WAIT_PRESS}\nLet's give it our best and rescue\n{NAME_2}!")), VARIANT_DEFAULT(_(" OK, this is it!{WAIT_PRESS}\nLet's do our best and save {NAME_2}'s\nteam!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_FADEOUT(150), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -8803,12 +8803,12 @@ static const struct ScriptCommand s_gs9_g62_s0_lives0_dlg0[] = { /* 0x81c5060 */ { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(She will tell me everything when this\nadventure is over...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Is going underground the adventure\nshe meant...?)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Will she tell me if we rescue Alakazam's\nteam...?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey.")), VARIANT_DEFAULT(_(" Hello!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8816,7 +8816,7 @@ static const struct ScriptCommand s_gs9_g62_s0_lives0_dlg0[] = { /* 0x81c5060 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What, are you stunned?\nLet's go, already!")), VARIANT_DEFAULT(_(" Are you asleep still?\nLet's get going!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(463), CALL_SCRIPT(NOTICE_FUNC), BGM_SWITCH(1), @@ -8880,7 +8880,7 @@ static const struct ScriptCommand s_gs9_g63_s0_lives0_dlg0[] = { /* 0x81c56b4 */ VARIANT_DEFAULT(_(" But we knew that it would\nbe a very challenging dungeon.\nWe shouldn't be discouraged.")), VARIANT_DEFAULT(_(" Other rescue teams should\nhave gone underground too.")), VARIANT_DEFAULT(_(" We might be able to get\nsome information if we go to the square.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -8922,7 +8922,7 @@ static const struct ScriptCommand s_gs9_g64_s1_lives0_dlg0[] = { /* 0x81c5b3c */ WAIT(1), PORTRAIT(PLACEMENT_LEFT, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Whoops.\nI'd better get packed to leave.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -8958,7 +8958,7 @@ static const struct ScriptCommand s_gs9_g65_s0_lives0_dlg0[] = { /* 0x81c5cd4 */ VARIANT(/* == */ 1, _(" This is it!{WAIT_PRESS}\nLet's roll, {NAME_0}!\nTo the sky we go!")), VARIANT_DEFAULT(_(" Good morning!\nDid you sleep well?")), VARIANT_DEFAULT(_(" This is it!{WAIT_PRESS}\nLet's go, {NAME_0}!\nWe're off to the sky!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -9027,7 +9027,7 @@ static const struct ScriptCommand s_gs9_g67_s0_lives0_dlg0[] = { /* 0x81c605c */ VARIANT_DEFAULT(_(" The {COLOR YELLOW_D}Sky Tower{RESET} is also very\nchallenging...")), VARIANT_DEFAULT(_(" But I'm not giving up!")), VARIANT_DEFAULT(_(" Let's keep doing our best,\n{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -9581,7 +9581,7 @@ static const struct ScriptCommand s_gs9_g69_s0_lives0_dlg0[] = { /* 0x81c817c */ { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x2e, 0x02, 0x0002, -0x00000002, 0x00000000, NULL }, MSG_NPC(2, _(" {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0x89, 0x18, 0x0080, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -9591,29 +9591,29 @@ static const struct ScriptCommand s_gs9_g69_s0_lives0_dlg0[] = { /* 0x81c817c */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Oh, hi, {NAME_2} and\n{NAME_3}.{WAIT_PRESS}\nWhat's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" It's Snubbull!{WAIT_PRESS}\nThere's something weird going on!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Snubbull is weird...?{WAIT_PRESS}\nWeird, how?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" He looks completely\ndifferent...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" {NAME_0}!\nLet's go to the square!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -9730,7 +9730,7 @@ static const struct ScriptCommand s_gs9_g71_s0_lives0_dlg0[] = { /* 0x81c899c */ VARIANT(/* == */ 3, _(" There's something I wanted\nto discuss before we go to a dungeon.")), VARIANT_DEFAULT(_(" Oh, yeah, {NAME_0}!\nWait a second!")), VARIANT_DEFAULT(_(" There's something I wanted\nto talk over with you before we go to\na dungeon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -9798,7 +9798,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ VARIANT_DEFAULT(_(" How about we change things\nso we can pick the leader and members\nto go into dungeons?")), VARIANT_DEFAULT(_(" That might mean we won't\nbe going on rescues to certain dungeons...")), VARIANT_DEFAULT(_(" But that will let us handle\nrescues better by having more Pokémon\ntypes available.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3( TRUE, /*default*/ -1, /* speaker */ 1, _(" What do you say?{WAIT_PRESS}\n{NAME_0}, do you think it would be\ngood if we could make anyone the leader?")), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" What do you say?{WAIT_PRESS}\n{NAME_0}, do you think it would be\ngood if we could make anyone the leader?")), @@ -9807,7 +9807,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ CHOICE(/* label */ 2, _("Yes.")), CHOICE(/* label */ 3, _("No.")), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9822,7 +9822,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ VARIANT_DEFAULT(_(" Huh? Why?")), VARIANT_DEFAULT(_(" Even up to now, we've\nfaced tight situations where we had\ntype disadvantages, right?")), VARIANT_DEFAULT(_(" Don't you think it would be\nbetter if different types of Pokémon\nwent in instead of us?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000000), ASK3( TRUE, /*default*/ -1, /* speaker */ 1, _(" Right, {NAME_0}?{WAIT_PRESS}\nIt's better to be able to change leaders\nand members in any way, agreed?")), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -9832,7 +9832,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ CHOICE(/* label */ 2, _("Yes.")), CHOICE(/* label */ 3, _("No.")), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), SELECT_ENTITIES(-1, 2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9846,7 +9846,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is how we should\npick a rescue team's leader.")), VARIANT_DEFAULT(_(" I think this is how we\nshould pick the leader of a team going\ninto a dungeon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" In its Friend Area, face the\nteam member you want to make the leader,\nthen select {COLOR YELLOW}Make Leader{RESET} on the menu.")), VARIANT(/* == */ 1, _(" That Pokémon will be the\nteam leader from then on.\nWe should do that before dungeons.")), @@ -9860,7 +9860,7 @@ static const struct ScriptCommand s_gs9_g72_s0_lives0_dlg0[] = { /* 0x81c8d90 */ VARIANT_DEFAULT(_(" We should make it so\na team leader can go into a dungeon\nalone if it wants.")), VARIANT_DEFAULT(_(" Anyway...{WAIT_PRESS} To choose the\nleader of a dungeon-bound team...{WAIT_PRESS}\nIn a Friend Area, use...{WAIT_PRESS} {COLOR YELLOW}Make Leader{RESET}.")), VARIANT_DEFAULT(_(" We should always choose\nthe team leader in its Friend Area\nbefore sending the team to any dungeon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -9942,7 +9942,7 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Uh...{WAIT_PRESS} Um...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), CALL_SCRIPT(NOTICE_FUNC), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -9958,7 +9958,7 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, MSG_NPC(2, _(" Um...{WAIT_PRESS}\nI'm Wynaut, and this is...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -9967,7 +9967,7 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ { 0x2d, 0x03, 0x0003, 0x0000006e, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x2d, 0x09, 0x0003, 0x0000006e, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -9977,7 +9977,7 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" We have a notice on the\nBulletin Board outside the Pelipper Post\nOffice.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -9985,13 +9985,13 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, MSG_NPC(2, _(" Please look at it for me.\nPlease, please.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -9999,21 +9999,21 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!!!{WAIT_PRESS}")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, MSG_NPC(2, _(" Please help me.{WAIT_PRESS}\nI have to go now.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -10036,7 +10036,7 @@ static const struct ScriptCommand s_gs9_g74_s0_lives0_dlg0[] = { /* 0x81ca698 */ VARIANT_DEFAULT(_(" Maybe Wynaut and his\nfriend have a problem on their hands...")), VARIANT_DEFAULT(_(" So, they may have a help-\nwanted notice on the Bulletin Board.")), VARIANT_DEFAULT(_(" Only one thing to do.{WAIT_PRESS}\nLet's go check the Pelipper Post Office's\nBulletin Board.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -10198,51 +10198,51 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ VARIANT(/* == */ 1, _(" I'm hoping that they'll\nsmarten up and settle down.")), VARIANT_DEFAULT(_(" Like we promised, we\nshowed the {NAME_4} gang they\nshouldn't monkey around.")), VARIANT_DEFAULT(_(" That should teach them not\nto be so wild.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Everyone, thank you for\neverything, really.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), MSG_NPC(2, _(" Yes, we're filled with\ngratitude!")), MSG_NPC(2, _(" This is our thanks.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY(203), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}'s team received\n{CENTER_ALIGN}a peeled {COLOR GREEN}Chestnut{RESET} as their reward.") }, { 0xe1, 0x00, 0x00cb, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" ..................{WAIT_PRESS}\nThis...{WAIT_PRESS}\nA peeled Chestnut?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes. It's a peeled Chestnut.{WAIT_PRESS}\nYou see, we...")), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Don't have any money.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), MSG_NPC(2, _(" So we can only give you\na Chestnut as our reward.{WAIT_PRESS}\nAre you unhappy?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -10258,7 +10258,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ VARIANT(/* == */ 1, _(" I like them! Hahahaha!\n(Though I wish we did get some money...)")), VARIANT(/* == */ 3, _(" I love them! Hahahaha!\n(Some money would have been nice, but...)")), VARIANT_DEFAULT(_(" I think they're great!\nHahahaha!\n(A little money would have been nice...)")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), CALL_SCRIPT(SWEAT_FUNC), { 0xe2, 0x00, 0x01d6, 0x00000000, 0x00000000, NULL }, @@ -10266,7 +10266,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hey, you!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -10282,11 +10282,11 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0001, 0x0000000c), PORTRAIT_POS(1, 2, 0), MSG_NPC(1, _(" Aww, no, the {NAME_4}\ngang!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" Wobbuffet?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -10294,7 +10294,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ VARIANT(/* == */ 1, _(" Did they follow us here\nfor revenge?")), VARIANT_DEFAULT(_(" That {NAME_4} gang...")), VARIANT_DEFAULT(_(" Did they chase us here to\nget us back?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -10309,19 +10309,19 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0002, 0x00000001, 0x00000000, NULL }, MSG_NPC(4, _(" You got lucky!\nYou don't mess with us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" We're not gonna lose this\ntime!\nWe'll pulverize you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Mukkeeeeh!\nCrush them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -10334,18 +10334,18 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Whoa!\nL-look at that!")), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Ch-Chestnut!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" It is!\nIt's a peeled Chestnut!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(1), @@ -10355,7 +10355,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wh-what?")), VARIANT_DEFAULT(_(" Wh-what?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -10363,28 +10363,28 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Whisper, whisper...")), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Mutter, mutter...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's going on?")), VARIANT_DEFAULT(_(" What are they doing?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" They look like...{WAIT_PRESS}\nThey're having a discussion.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What is this all about?")), VARIANT_DEFAULT(_(" What's going on?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEIN(30, 1), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -10396,15 +10396,15 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" ...Uh, listen.{WAIT_PRESS}\nYou got something we want...")), MSG_NPC(4, _(" That peeled Chestnut you\nhave...{WAIT_PRESS}\nCan we have it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" We, uh...{WAIT_PRESS}\nLove peeled Chestnuts!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Like, we love them so much,\nwe can't think of a life without Chestnuts!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -10414,7 +10414,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ MSG_NPC(4, _(" You know how Chestnuts\nhave that spiky shell?")), MSG_NPC(4, _(" Trying to peel that spiky\nshell... It hurts.{WAIT_PRESS}\nAnd we end up losing our tempers!")), MSG_NPC(4, _(" That's why we're asking.\nGive us that peeled Chestnut.{WAIT_PRESS}\nWe'll do whatever you want.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, @@ -10425,7 +10425,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ CHOICE(/* label */ 15, _("Yes.")), CHOICE(/* label */ 16, _("No.")), LABEL(16), /* = 0x10 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 1), @@ -10433,19 +10433,19 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(20), MSG_NPC(4, _(" What?!\nYou won't give it up for us?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Who do you think you are?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Mukkeeeeeh!\nGet them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -10466,7 +10466,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x22, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, @@ -10491,7 +10491,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Ow, ow, ow...")), MSG_NPC(4, _(" ...W-we lost...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x23, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -10506,15 +10506,15 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(4, _(" ...Maybe we can't do this...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" You have to understand.\nWe love peeled Chestnuts.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Please?\nWe'll do anything you want if you'll just\ngive us your peeled Chestnut...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, @@ -10528,7 +10528,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ CHOICE(/* label */ 15, _("Yes.")), CHOICE(/* label */ 16, _("No.")), LABEL(15), /* = 0x0f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0x8b, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 2), @@ -10547,18 +10547,18 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I know!{WAIT_PRESS}\nHey, {NAME_4} gang, how are you guys\nwith physical labor?")), VARIANT_DEFAULT(_(" I know!{WAIT_PRESS}\nListen, {NAME_4} gang, how are you\nwith physical labor?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Physical labor?\nYou mean muscle work?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" We have muscles...{WAIT_PRESS}\nBut we don't like work.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" But if it's for that\npeeled Chestnut...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -10568,10 +10568,10 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ VARIANT(/* == */ 3, _(" You see, we want to make\nthis rescue team base more impressive.")), VARIANT_DEFAULT(_(" OK!\nThis is what we'll do!")), VARIANT_DEFAULT(_(" We were going to make\nour rescue team base something more\nimpressive than this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Rescue team base?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" You got it!{WAIT_PRESS}\nOur rescue team base!")), @@ -10580,48 +10580,48 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ VARIANT_DEFAULT(_(" That's right!{WAIT_PRESS}\nOur rescue team base!")), VARIANT_DEFAULT(_(" If you would help us with\nthe building of our rescue team base,\nwe could give you this peeled Chestnut!")), VARIANT_DEFAULT(_(" How does that sound?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Whisper, whisper...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Mutter, mutter...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" OK.\nWe'll help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Really?{WAIT_PRESS}\nYou'll help us?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Yeah.\nLeave it to us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" We'll carry in the materials\nand get the place built. Double-quick!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" ...In return...{WAIT_PRESS}\nHand over that peeled Chestnut.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0007, 0x00000041), MSG_NPC(7, _(" Me too!\nI'll help too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -10629,7 +10629,7 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, WAIT(30), MSG_NPC(7, _(" I'll spit silk for gluing\nthings together!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe5, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -10639,46 +10639,46 @@ static const struct ScriptCommand s_gs9_g75_s0_lives0_dlg0[] = { /* 0x81cb8b4 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I'll help too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I felt bad because we only\nhad a peeled Chestnut for your reward.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!!!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000b), MSG_NPC(1, _(" Sniff...\nThanks, everyone!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(4, _(" OK!{WAIT_PRESS}\nLet's get a move on!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" OK!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" OK!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -11175,7 +11175,7 @@ static const struct ScriptCommand s_gs9_g76_s0_station_sref_script[] = { /* 0x81 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -11224,23 +11224,23 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ { 0x91, 0x04, 0x0002, 0x00000006, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_NPC(1, _(" Whew...{WAIT_PRESS}\nOur base is coming along quickly.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT_REP(0x0001, 0x00000009), MSG_NPC(1, _(" We owe everyone for this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -11256,12 +11256,12 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(7, _(" We still have difficult\nthings to do.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -11269,11 +11269,11 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Yeah...{WAIT_PRESS} But we're getting\nclose, right, {NAME_4} gang?{WAIT_PRESS}\n...{WAIT_PRESS}Hah?")), VARIANT_DEFAULT(_(" That's true.{WAIT_PRESS} But we're\ngetting close, right, {NAME_4} gang?{WAIT_PRESS}\n...{WAIT_PRESS}Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Look!\nOver there!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000007, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -11299,11 +11299,11 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's up with you guys?")), VARIANT_DEFAULT(_(" What's the matter?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, MSG_NPC(7, _(" We need to keep working.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -11312,7 +11312,7 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ PORTRAIT(PLACEMENT_TOP, 0x0004, 0x00000000), PORTRAIT_POS(4, -2, 0), MSG_NPC(4, _(" Don't wanna.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -11323,25 +11323,25 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ WAIT(20), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" What?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" This work's too boring!{WAIT_PRESS}\nHow do you expect us to keep going?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" Yeah, that's right.\nI don't wanna do this anymore.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" We might change our minds\nif you get us more peeled Chestnuts.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...What is it with these\nguys...?")), VARIANT_DEFAULT(_(" ...What is this about?")), MSG_NPC(4, _(" We just can't be bothered.\nWe need peeled Chestnuts to motivate us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000005, 0x00000000, NULL }, @@ -11353,7 +11353,7 @@ static const struct ScriptCommand s_gs9_g76_s0_lives0_dlg0[] = { /* 0x81d041c */ VARIANT_DEFAULT(_(" We have a problem,\n{NAME_0}.")), VARIANT_DEFAULT(_(" I don't think the\n{NAME_4} gang will work unless\nwe get them another peeled Chestnut.")), VARIANT_DEFAULT(_(" I guess we'll have to give\nthe {NAME_4} gang any peeled\nChestnuts that we find.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -11710,36 +11710,36 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" Huh?\nDid you bring us a peeled Chestnut?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 1, 0), MSG_NPC(2, _(" Oh!\nA Chestnut!\nWe want a peeled Chestnut!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), ASK3( TRUE, /*default*/ -1, /* speaker */ 2, _(" Come on, give it to us!\nWe'll work hard for it.")), CHOICE(/* label */ 3, _("Give.")), CHOICE(/* label */ 4, _("Don't give.")), LABEL(4), /* = 0x04 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 2), WAIT(2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(20), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" What?!\nYou won't give it up for us?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 1, 0), MSG_NPC(2, _(" Who do you think you are?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), PORTRAIT_POS(2, -2, 0), MSG_NPC(2, _(" Mukkeeeeeh!\nGet them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -11749,7 +11749,7 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -11760,7 +11760,7 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" Ow, ow, ow...")), MSG_NPC(2, _(" ...W-we lost...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, { 0x98, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -11772,10 +11772,10 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} peeled the spiny shell\n{CENTER_ALIGN}and handed the peeled Chestnut over.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_ENTITIES(-1, 3), WAIT(1), @@ -11785,7 +11785,7 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000001), MSG_NPC(2, _(" Yes!\nA peeled Chestnut!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -11795,12 +11795,12 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" All right, you layabouts!\nGet it together! Chop, chop!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 1, 0), MSG_NPC(2, _(" Why don't you quit lounging\naround yourself?!\nGet moving!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -11810,12 +11810,12 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" We'll get hustling on\nrenovating your rescue team base!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), PORTRAIT_POS(2, -2, 0), MSG_NPC(2, _(" We'll carry in the materials\nand get the place built. Double-quick!{WAIT_PRESS}\nYou just wait!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_ADVANCE(SCENARIO_SUB1, /*unused*/ 30), REMOVE_ITEMSTACK(ITEM_CHESTNUT), JUMPIF_SCENE_LT(SCENARIO_SUB1, 30, 2, /* to label */ 7), @@ -11830,7 +11830,7 @@ static const struct ScriptCommand s_gs9_g77_s1_lives0_dlg0[] = { /* 0x81d23bc */ { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x98, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -12005,7 +12005,7 @@ static const struct ScriptCommand s_gs9_g78_s0_station_sref_script[] = { /* 0x81 { 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!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -12022,7 +12022,7 @@ static const struct ScriptCommand s_gs9_g78_s0_station_sref_script[] = { /* 0x81 { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CANCEL_ENTITIES(-1, 0), WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -12077,7 +12077,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sniff...{WAIT_PRESS}\nFinally...{WAIT_PRESS}\nThis day has finally come...")), VARIANT_DEFAULT(_(" Sniff...{WAIT_PRESS}\nFinally...{WAIT_PRESS}\nThis day has finally arrived...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -12090,7 +12090,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ VARIANT(/* == */ 3, _(" Our... {COLOR CYAN}{TEAM_NAME}{RESET}'s\nrescue team base!")), VARIANT_DEFAULT(_(" {NAME_0}!\nIt's ready! Finally!")), VARIANT_DEFAULT(_(" Our... {COLOR CYAN}{TEAM_NAME}{RESET}'s\nrescue team base!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x08, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -12099,7 +12099,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sniff... This is so cool.{WAIT_PRESS}\nI can stare at it forever! Our rescue team\nbase is so cool.")), VARIANT_DEFAULT(_(" Sniff... It's so cool.{WAIT_PRESS}\nEvery time I take a look at our rescue\nteam base, I only see coolness.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -12108,26 +12108,26 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" The way it looks like you\nis a nice touch, {NAME_0}!")), VARIANT_DEFAULT(_(" Its resemblance to you\nis a nice touch, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(7, _(" We all worked very hard!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0002, 0x00000001, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" It was very hard, but it\nwas worth it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -12141,7 +12141,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ WAIT(20), PORTRAIT_REP(0x0001, 0x0000000a), MSG_NPC(1, _(" Sniff... Everyone...{WAIT_PRESS}\nThank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -12150,7 +12150,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ PORTRAIT(PLACEMENT_TOP, 0x0004, 0x00000000), PORTRAIT_POS(4, -3, 0), MSG_NPC(4, _(" Say, there.{WAIT_PRESS}\nThere's something I want to ask...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x000a, 0x00000006, 0x00000000, NULL }, @@ -12159,7 +12159,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" If this rescue team base is\nfinished...")), MSG_NPC(4, _(" Does that maybe mean...{WAIT_PRESS}\nYou won't bring us peeled Chestnuts\nanymore?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), @@ -12170,7 +12170,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ VARIANT_DEFAULT(_(" Hahaha!\nOf course!")), VARIANT_DEFAULT(_(" We're finished with work\non our rescue team base.")), VARIANT_DEFAULT(_(" To our {NAME_4} gang!{WAIT_PRESS}\nSincerely, thank you for everything!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -12180,22 +12180,22 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ PORTRAIT(PLACEMENT_TOP_FLIP, 0x0004, 0x00000000), PORTRAIT_POS(4, -3, 0), MSG_NPC(4, _(" ............")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" ....................................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Ukkeeeeeeeeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CLEAR_ARRAY(EVENT_LOCAL), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -12212,7 +12212,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Wh-what?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(10), { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -12222,7 +12222,7 @@ static const struct ScriptCommand s_gs9_g78_s0_lives0_dlg0[] = { /* 0x81d3cc4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Whoa, whoa, whoa!\nWhat are you doing?!\nStop that!")), VARIANT_DEFAULT(_(" Waah! What are you doing?!\nStop that!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe5, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -12545,7 +12545,7 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" Thank you so much.\nYou saved me from great peril.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, @@ -12555,13 +12555,13 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ VARIANT(/* == */ 1, _(" Your letter said something\nabout not wanting to be a grown-up, but...")), VARIANT_DEFAULT(_(" No problem, {NAME_2}.{WAIT_PRESS}\nBut what made you run away in the first\nplace?")), VARIANT_DEFAULT(_(" Your letter said something\nabout not wanting to become an adult...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" That is...")), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Oh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -12572,12 +12572,12 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000000), MSG_NPC(3, _(" Look, there he is!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Yeah, I see him.\nWe've got to get him back quick!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -12597,10 +12597,10 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_2}.{WAIT_PRESS}\nWho are those guys?")), VARIANT_DEFAULT(_(" Hey, {NAME_2}.{WAIT_PRESS}\nWhat do they want?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" They're...{WAIT_PRESS}\nMy friends.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -12609,11 +12609,11 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Now, come with us.{WAIT_PRESS}\nThe grown-up ritual is ready for you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Quit fighting this.\nHave the paw print applied without a fuss.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -12626,33 +12626,33 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" If I have to get that\npaw print on my back...{WAIT_PRESS}\nI'd rather not become a grown-up!")), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What is that?{WAIT_PRESS}\nThis grown-up ritual?")), VARIANT_DEFAULT(_(" What was that?{WAIT_PRESS}\nWhat grown-up ritual?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" It is a custom among us {POKEMON_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000001, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" When we reach a certain age, they\nmark our backs with paw prints to show\nwe are grown-ups.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" They do that by taking the\nfront paw...{WAIT_PRESS}\nand pushing doooooowwnn on the back...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), @@ -12664,20 +12664,20 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I have dreams of creating\ngreat art, so I have certain standards\nfor design that I swear by.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ...I know!{WAIT_PRESS}\nI have decided!")), MSG_NPC(2, _(" I shall join {NAME_0}'s\nrescue team!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), CALL_SCRIPT(SHOCK_FUNC), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I will participate in your\nrescue activities!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -12685,7 +12685,7 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" So...\nI won't return to the pack!{WAIT_PRESS}\nThis is where I will dedicate myself!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -12698,14 +12698,14 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ WAIT(15), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Is... Is that so?\nThen there is nothing we can do.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" We will inform our elders of your\ndecision.")), MSG_NPC(3, _(" We wish you luck in your new career\nas a rescuer.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -12714,13 +12714,13 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ WAIT(45), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Oh, wow...\nThat's one pushy way of getting a job.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" But, that's OK.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -12729,21 +12729,21 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Welcome to the team!{WAIT_PRESS}\nWe expect your best, {NAME_2}!")), VARIANT_DEFAULT(_(" You're on the team now!{WAIT_PRESS}\nWe expect your best, {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" Yes!\nThank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" One thing I am good at is\ndrawing and painting.")), MSG_NPC(2, _(" For example...{WAIT_PRESS}\nLet me see...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ah, how about that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -12759,13 +12759,13 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ MSG_NPC(2, _(" Observe, the design of that\nflag.")), MSG_NPC(2, _(" I could perhaps redesign\nthe flag?")), MSG_NPC(2, _(" If you wish to alter the\nflag's design, you must tell me, please.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x1d, 0x0000, 0x00000000, 0x00000000, NULL }, COND_EQUAL(1, /* to label */ 16), FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} joined the rescue team!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x3b, 0x1e, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_2}?")), @@ -12775,10 +12775,10 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(18), /* = 0x12 */ { 0x3b, 0x1f, 0x0002, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB1, 32, 3), MSG_NPC(2, _(" I will find my own place\nin the {COLOR GREEN}Sky Blue Plains{RESET}.\nUntil then...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -12787,7 +12787,7 @@ static const struct ScriptCommand s_gs9_g79_s0_lives0_dlg0[] = { /* 0x81d5d20 */ MSG_NPC(2, _(" ...But wait! I see that\nmy Friend Area is full...{WAIT_PRESS}\nThis is most unfortunate.")), MSG_NPC(2, _(" I could join your rescue\nteam if there were room for me in the\n{COLOR GREEN}Sky Blue Plains{RESET}...")), MSG_NPC(2, _(" Please speak with me\nagain then.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -13033,7 +13033,7 @@ static const struct ScriptCommand s_gs9_g80_s0_lives0_dlg2[] = { /* 0x81d829c */ PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Pshehehehehe!")), MSG_NPC(1, _(" That Lombre... He amuses\nme so!\nPshehehehehe!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -13047,7 +13047,7 @@ static const struct ScriptCommand s_gs9_g80_s0_lives0_dlg2[] = { /* 0x81d829c */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" But that Lombre--he lives\nin water! How very pathetic!\nPshehehehehe!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, JUMPIF_SCENE_GT(SCENARIO_SUB2, 33, 2, /* to label */ 1), SCENARIO_CALC(SCENARIO_SUB2, 33, 2), @@ -13085,7 +13085,7 @@ static const struct ScriptCommand s_gs9_g81_s0_station_sref_script[] = { /* 0x81 { 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -13107,7 +13107,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Hi, {NAME_2}, long time!{WAIT_PRESS}\nYou're here to visit us?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" After all that's happened...")), @@ -13119,7 +13119,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ VARIANT(/* == */ 1, _(" {NAME_2}, you must be\ninterested in our adventures!\nHahahaha!")), VARIANT(/* == */ 3, _(" {NAME_2}, you must be\ninterested in our achievements!\nHahahaha!")), VARIANT_DEFAULT(_(" {NAME_2}, you must be\nintrigued by our achievements!\nHahahaha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13128,21 +13128,21 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ CALL_SCRIPT(SHOCK_FUNC), PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000000), MSG_NPC(2, _(" Kwaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(2, _(" Wrong!")), MSG_NPC(2, _(" Shopping in Pokémon\nSquare is what I came to do.")), MSG_NPC(2, _(" I come here only because\nit is on the way...\nThis is not very important.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" Oh...\nIs that all...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hey, {NAME_2}!") }, FANFARE_PLAY2(465), @@ -13160,10 +13160,10 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Oh, hey!\nThere you are!")), MSG_NPC(3, _(" Didn't know you'd be here.\nYou had me looking, {NAME_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" What is it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Well, to the northeast of\n{COLOR YELLOW_D}Mt. Thunder{RESET}...")), MSG_NPC(3, _(" There's a gigantic cave!")), @@ -13171,7 +13171,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" So, I figured {NAME_2}\nwould know something...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13180,7 +13180,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ { 0x93, 0x04, 0x000a, 0x00000061, 0x00000000, NULL }, CALL_SCRIPT(SHOCK_FUNC), MSG_NPC(2, _(" Kwaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe5, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13188,16 +13188,16 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I shall call it...{WAIT_PRESS}\nThe {COLOR YELLOW_D}Meteor Cave{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT, 0x0001, 0x00000004), MSG_NPC(1, _(" {COLOR YELLOW_D}Meteor Cave{RESET}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" It was when Rayquaza\ndestroyed the falling star...")), MSG_NPC(2, _(" Its pieces broken, they\nscattered across the skies.")), MSG_NPC(2, _(" One tumbled to earth.\nIt fell into a mountain, and made the\ncavern you speak of.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13205,26 +13205,26 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Say, {NAME_3}.")), VARIANT_DEFAULT(_(" Um, {NAME_3}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, MSG_NPC(1, _(" Did you explore inside the\n{COLOR YELLOW_D}Meteor Cave{RESET}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Uh, yeah...{WAIT_PRESS}\nJust a little...")), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000003), MSG_NPC(3, _(" But the place was crawling\nwith these weird things...")), MSG_NPC(3, _(" It freaked me out.\nI couldn't stay there long...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000a), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Ahaha!\nWho would've thought it?\n{NAME_3}'s kind of cowardly!")), VARIANT_DEFAULT(_(" Hahaha!\nSurprise, surprise!\n{NAME_3}'s kind of cowardly!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000002), @@ -13234,7 +13234,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ PORTRAIT_REP(0x0003, 0x00000003), MSG_NPC(3, _(" I've never seen anything\nlike it before...")), MSG_NPC(3, _(" There were downright\nbizarre things in there that I'm not\nsure were even Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13244,7 +13244,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ { 0x93, 0x04, 0x000a, 0x00000061, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_2}, do you have\nany idea what are in that place?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ...I draw a blank.{WAIT_PRESS}\nI do not know...")), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13252,15 +13252,15 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ MSG_NPC(2, _(" However...{WAIT_PRESS}\nThat cavern. The collision that caused \nit had to be enormous.")), MSG_NPC(2, _(" If there were things that\nsurvived the crash...")), MSG_NPC(2, _(" Perhaps...\nOf this world they may not be.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), MSG_NPC(3, _(" You mean...{WAIT_PRESS}\nThey came from that falling star?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Perhaps that is so...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, @@ -13269,8 +13269,8 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}.\nWe should go investigate.{WAIT_PRESS}\nThe {COLOR YELLOW_D}Meteor Cave{RESET}.")), VARIANT_DEFAULT(_(" {NAME_0}.\nWant to go investigate?{WAIT_PRESS}\nThe {COLOR YELLOW_D}Meteor Cave{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -13278,7 +13278,7 @@ static const struct ScriptCommand s_gs9_g81_s0_lives0_dlg0[] = { /* 0x81d87d8 */ FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team gained\n{CENTER_ALIGN}access to the {COLOR YELLOW_D}Meteor Cave{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -13461,17 +13461,17 @@ static const struct ScriptCommand s_gs9_g83_s0_lives0_dlg0[] = { /* 0x81da3bc */ { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Whooooooosh!") }, { 0x6a, 0x00, 0x0200, 0x00000000, 0x00000050, NULL }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...This sound...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...Something's coming closer?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000001, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Whoooooooooooooooooooooooshhh!") }, WAIT(20), FANFARE_STOP2(508), FANFARE_PLAY2(779), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -13494,13 +13494,13 @@ static const struct ScriptCommand s_gs9_g83_s0_lives0_dlg0[] = { /* 0x81da3bc */ { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Wh-what was that...?{WAIT_PRESS}\nWhat just happened?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Something huge flew by at an incredible\nspeed...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("It seemed to be going...\nToward the mountain range in the north?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x91, 0x04, 0x0002, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}\nYawwwwwn...\nStill sleepy...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("It's still early.\nI'll catch a little more sleep...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0099, 0x00000000, -0x00000028, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -13548,23 +13548,23 @@ static const struct ScriptCommand s_gs9_g84_s0_lives0_dlg0[] = { /* 0x81da9c8 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000002), PORTRAIT_POS(3, 2, 0), MSG_NPC(3, _(" {NAME_2}!{WAIT_PRESS}\nYou're safe! Yesssss!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000006), PORTRAIT_POS(2, -2, 0), MSG_NPC(2, _(" I'm so sorry, {NAME_3}.{WAIT_PRESS}\nThat dungeon--it was too much for me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" Thank you for saving me.{WAIT_PRESS}\nI appreciate it〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT_REP(0x0002, 0x00000006), MSG_NPC(2, _(" Ow, ow, ow...{WAIT_PRESS}\nMy body--it hurts all over even now...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13572,14 +13572,14 @@ static const struct ScriptCommand s_gs9_g84_s0_lives0_dlg0[] = { /* 0x81da9c8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000004), MSG_NPC(2, _(" ...But that dungeon...\nWhat is it about it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000005), MSG_NPC(2, _(" They say it makes a wish\ncome true. So, I went...")), MSG_NPC(2, _(" But it was very hard in\nthere--most terribly so!")), MSG_NPC(2, _(" Kiiih!\nI never want to go again!\nSuch a terrible place!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13588,7 +13588,7 @@ static const struct ScriptCommand s_gs9_g84_s0_lives0_dlg0[] = { /* 0x81da9c8 */ MSG_NPC(2, _(" At first, I made an SOS Call\nbecause I did not want to lose this...")), PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" But I will give it to you.{WAIT_PRESS}\nHere! Your reward for my rescue〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000005d, 0x00000000, NULL }, @@ -13609,7 +13609,7 @@ static const struct ScriptCommand s_gs9_g84_s0_lives0_dlg0[] = { /* 0x81da9c8 */ MSG_NPC(2, _(" However...{WAIT_PRESS}\nIf you lose that {COLOR GREEN_I}Wish Stone{RESET} on\nthe way, the wish cannot come true.")), PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" For me, it was impossible.\nBut you must try〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -13720,13 +13720,13 @@ static const struct ScriptCommand s_gs9_g85_s0_lives0_dlg0[] = { /* 0x81db740 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_2} is our newest\nfriend!{WAIT_PRESS}\nGlad to have you with us!")), VARIANT_DEFAULT(_(" From now on, {NAME_2}\nis our friend!{WAIT_PRESS}\nGlad to meet you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The latest recruit to\n{CENTER_ALIGN}Team {COLOR CYAN}{TEAM_NAME}{RESET}!") }, FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} joined\n{CENTER_ALIGN}the rescue team!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x2a, 0x0000, 0x00000000, 0x00000000, NULL }, COND_EQUAL(0, /* to label */ 2), COND_EQUAL(1, /* to label */ 2), @@ -13735,7 +13735,7 @@ static const struct ScriptCommand s_gs9_g85_s0_lives0_dlg0[] = { /* 0x81db740 */ { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The Friend Area\n{CENTER_ALIGN}{COLOR GREEN_H}{FRIEND_AREA}{RESET} was obtained!") }, FANFARE_PLAY(212), { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, LABEL(2), /* = 0x02 */ { 0x3b, 0x2b, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_2}?")), @@ -13745,7 +13745,7 @@ static const struct ScriptCommand s_gs9_g85_s0_lives0_dlg0[] = { /* 0x81db740 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(4), /* = 0x04 */ { 0x3b, 0x2c, 0x0001, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -13802,25 +13802,25 @@ static const struct ScriptCommand s_gs9_g86_s0_lives0_dlg0[] = { /* 0x81dbc14 */ MSG_NPC(2, _(" I tried going up over and\nover, but...{WAIT_PRESS} Keh...\nIt's steep and harsh...")), MSG_NPC(2, _(" Ninetales is up on\n{COLOR YELLOW_D}Mt. Freeze{RESET}.")), MSG_NPC(2, _(" I've got to see Ninetales.\nI'm prepared to do whatever it takes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3(FALSE, /*default*/ -1, /* speaker */ 2, _(" That's why I'm asking you.{WAIT_PRESS}\nTake me up {COLOR YELLOW_D}Mt. Freeze{RESET}.")), CHOICE(/* label */ 2, _("Yes.")), CHOICE(/* label */ 3, _("No.")), LABEL(2), /* = 0x02 */ WAIT(4), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Keke! That's settled!\nYou have my trust!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), LABEL(3), /* = 0x03 */ PORTRAIT_REP(0x0002, 0x00000043), MSG_NPC(2, _(" Keh!\nYeah, I saw that coming!")), MSG_NPC(2, _(" I'm the fool here for even\nbelieving in you lot.")), MSG_NPC(2, _(" Who needs your help?\nI'll be seeing you around!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), SELECT_ENTITIES(-1, 3), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13837,14 +13837,14 @@ static const struct ScriptCommand s_gs9_g86_s0_lives0_dlg0[] = { /* 0x81dbc14 */ FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} can now tag\n{CENTER_ALIGN}along with the rescue team!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(1), WAIT(30), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" The only place I want to go\nis {COLOR YELLOW_D}Mt. Freeze{RESET}.")), MSG_NPC(2, _(" I'm not about to tag along\nif you're going to other dungeons.")), MSG_NPC(2, _(" I'll only tag along when you\ngo off to {COLOR YELLOW_D}Mt. Freeze{RESET}. Keke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -13924,7 +13924,7 @@ static const struct ScriptCommand s_gs9_g88_s0_lives0_dlg0[] = { /* 0x81dc6c4 */ MSG_NPC(2, _(" Keke!\nYou did good today.")), MSG_NPC(2, _(" Next, we go to that\n{COLOR YELLOW_D}Murky Cave{RESET} place...")), MSG_NPC(2, _(" That sounds like another\nchallenging place, so I'll need your\nhelp still! Keke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -13982,14 +13982,14 @@ static const struct ScriptCommand s_gs9_g89_s0_lives0_dlg0[] = { /* 0x81dca48 */ CHOICE(/* label */ 3, _("No.")), LABEL(2), /* = 0x02 */ WAIT(4), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Keke! Then, we'll go!\nTo the {COLOR YELLOW_D}Murky Cave{RESET}!")), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" Gardevoir's physical form...\nThat's where it is.")), MSG_NPC(2, _(" For my sake, Gardevoir...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13997,13 +13997,13 @@ static const struct ScriptCommand s_gs9_g89_s0_lives0_dlg0[] = { /* 0x81dca48 */ PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ...Nah, that's not important.{WAIT_PRESS}\nI just feel like going! Keke!")), MSG_NPC(2, _(" ...OK, go there for me!\nTo the {COLOR YELLOW_D}Murky Cave{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(4), LABEL(3), /* = 0x03 */ PORTRAIT_REP(0x0002, 0x00000043), MSG_NPC(2, _(" Keh!\nIs that right.")), MSG_NPC(2, _(" See you around!\nKeke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 2), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000044), @@ -14020,14 +14020,14 @@ static const struct ScriptCommand s_gs9_g89_s0_lives0_dlg0[] = { /* 0x81dca48 */ FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} can now tag\n{CENTER_ALIGN}along with the rescue team!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(1), WAIT(30), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" The only place I want to go\nis the {COLOR YELLOW_D}Murky Cave{RESET}.")), MSG_NPC(2, _(" I'm not about to tag along\nif you're going to other dungeons.")), MSG_NPC(2, _(" I'll only tag along when you\ngo off to the {COLOR YELLOW_D}Murky Cave{RESET}. Keke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -14113,51 +14113,51 @@ static const struct ScriptCommand s_gs9_g91_s0_lives0_dlg0[] = { /* 0x81dd410 */ MSG_NPC(3, _(" You did this for me, even\nthough I had never met you before...{WAIT_PRESS}\nI have no idea how to thank you...")), MSG_NPC(3, _(" From the bottom of my\nheart...")), MSG_NPC(3, _(" Thank you so very much for\nsaving me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000044), MSG_NPC(2, _(" ............{WAIT_PRESS}\nGood for you, {NAME_3}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, MSG_NPC(2, _(" Hey, {NAME_0}.\nThanks for getting me through this.")), MSG_NPC(2, _(" This is my thanks.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0x3c, 0x2c, 0x0000, 0x00000009, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" Adios.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), BGM_FADEOUT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(20), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Oh, wait, please!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" What is it now?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Your name...{WAIT_PRESS}\nPlease, what is your name?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Keh!")), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" The name's {NAME_2}.{WAIT_PRESS}\nGlad to meet you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" My name is {NAME_3}.{WAIT_PRESS}\nI am also glad to meet you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_b01p02a_station.h b/src/data/ground/ground_data_b01p02a_station.h index 6ebae7f16..80959f0bf 100644 --- a/src/data/ground/ground_data_b01p02a_station.h +++ b/src/data/ground/ground_data_b01p02a_station.h @@ -96,7 +96,7 @@ static const struct ScriptCommand s_gs12_g0_s0_evt1_sref_script[] = { /* 0x81e1d { 0x3a, 0x00, 0x0000, 0x00000000, -0x00000001, _("Would you like to save your adventure?") }, JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SAVE_START_FUNC), UPDATE_VARINT(CALC_SET, GROUND_ENTER, MAP_TEAM_BASE_INSIDE), UPDATE_VARINT(CALC_SET, GROUND_GETOUT, MAP_TEAM_BASE_INSIDE), @@ -256,7 +256,7 @@ static const struct ScriptCommand s_gs12_g3_s0_station_sref_script[] = { /* 0x81 { 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -335,7 +335,7 @@ static const struct ScriptCommand s_gs12_g6_s0_station_sref_script[] = { /* 0x81 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -461,7 +461,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wh-where...?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -475,19 +475,19 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ VARIANT(/* == */ 3, _(" It's also our rescue team's\nbase.")), VARIANT_DEFAULT(_(" It's {NAME_0}'s house.")), VARIANT_DEFAULT(_(" It's also our rescue team's\nbase.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oh!\n...Did you maybe rescue me?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Th-thank you...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000009), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -495,7 +495,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ VARIANT(/* == */ 1, _(" But forget that...{WAIT_PRESS}\nWhat happened to you?")), VARIANT_DEFAULT(_(" Hahaha, it's OK.\nThere's no need for thanks.")), VARIANT_DEFAULT(_(" Rather than that...{WAIT_PRESS}\nWhat happened?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Y-yes...") }, @@ -505,16 +505,16 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ MSG_NPC(2, _(" I'm named Spinda.")), { 0x2d, 0x09, 0x0002, 0x00000073, 0x00000000, NULL }, MSG_NPC(2, _(" I like to travel.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" I've been traveling all over\nseeing the sights and other Pokémon.")), MSG_NPC(2, _(" It was on my travels that\nI heard rumors of a mirage Pokémon...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" A mirage Pokémon?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -523,7 +523,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ever since then, I've been\ntraveling all over in hopes of seeing\nthe mirage Pokémon...")), MSG_NPC(2, _(" But I've had no luck...{WAIT_PRESS}\nFinally, I became dizzy from fatigue...{WAIT_PRESS}\nAnd I must have passed out.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -533,7 +533,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" I...{WAIT_PRESS}\nI'm giving up on my quest...")), MSG_NPC(2, _(" I'm simply worn out...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -541,25 +541,25 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hold up a second!{WAIT_PRESS}\nAre you sure you want to give up that\neasily?")), VARIANT_DEFAULT(_(" Wait a second!{WAIT_PRESS}\nAre you sure you won't regret giving up\nthat easily?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" But I...{WAIT_PRESS}\nI've reached my physical limit...")), MSG_NPC(2, _(" If I push myself any\nfurther, I will collapse again.\nIt's not good for my health...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ...Please, I want you to\nhave this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_STOP, FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_1} received something\n{CENTER_ALIGN}from {NAME_2}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -571,19 +571,19 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" What is this?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, MSG_NPC(2, _(" It's a...{WAIT_PRESS}\n{COLOR GREEN_I}Clear Wing{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Clear Wing?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.{WAIT_PRESS}\nI found it on my travels.")), MSG_NPC(2, _(" It's a wing of some sort.\nIt's transparent, but...{WAIT_PRESS}\nIf you hold it up like this...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), CANCEL_EFFECTS(9, 1), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -597,7 +597,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ MSG_NPC(2, _(" But after checking around,\nit appears to be related to the mirage\nPokémon somehow.")), MSG_NPC(2, _(" But I couldn't learn anything\nbeyond that.")), MSG_NPC(2, _(" ...Sniff...\nIt's very disappointing, but I'm giving up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -617,13 +617,13 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, are you OK?{WAIT_PRESS}\nYou still look wobbly on your feet.")), VARIANT_DEFAULT(_(" Wait, are you OK?{WAIT_PRESS}\nYou're still unsteady on your feet.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" Oh, no.\nWhen I walk, I always totter.{WAIT_PRESS}\nBye.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -633,7 +633,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" {COLOR GREEN}Clear Wing{RESET}, huh...{WAIT_PRESS}\nI don't have a clue what this is all about...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000001, 0x00000000, NULL }, @@ -647,7 +647,7 @@ static const struct ScriptCommand s_gs12_g9_s0_lives0_dlg0[] = { /* 0x81e2ec0 */ VARIANT_DEFAULT(_(" I think Xatu is the one to\nask for something like this.")), VARIANT_DEFAULT(_(" Xatu should be at the peak\nof the {COLOR YELLOW_D}Great Canyon{RESET}.")), VARIANT_DEFAULT(_(" We should go!\nTo the {COLOR YELLOW_D}Great Canyon{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -861,7 +861,7 @@ static const struct ScriptCommand s_gs12_g10_s0_station_sref_script[] = { /* 0x8 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -883,7 +883,7 @@ static const struct ScriptCommand s_gs12_g10_s0_lives0_dlg0[] = { /* 0x81e507c * { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("......") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(508), { 0x97, 0x00, 0x0002, 0x00000001, 0x00000003, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gggwwooooooooooooaahhhhh!") }, @@ -891,12 +891,12 @@ static const struct ScriptCommand s_gs12_g10_s0_lives0_dlg0[] = { /* 0x81e507c * WAIT(20), { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(LOOK_AROUND_FUNC), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Wha...{WAIT_PRESS} What is it?!") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("What...{WAIT_PRESS}\nWhat's happening outside?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x6a, 0x00, 0x0200, 0x00000000, 0x00000020, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x6a, 0x00, 0x0200, 0x00000000, 0x00000040, NULL }, @@ -912,7 +912,7 @@ static const struct ScriptCommand s_gs12_g11_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Several hours later...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x2d, 0x09, 0x0000, 0x00000021, 0x00000000, NULL }, @@ -926,7 +926,7 @@ static const struct ScriptCommand s_gs12_g11_s0_station_sref_script[] = { /* 0x8 VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nHey...")), VARIANT_DEFAULT(_(" Hey, {NAME_0}.")), VARIANT_DEFAULT(_(" {NAME_0}, wake up!\nCome on, wake up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, -1), BGM_SWITCH(1), { 0x22, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, @@ -953,7 +953,7 @@ static const struct ScriptCommand s_gs12_g11_s0_lives0_dlg0[] = { /* 0x81e5528 * VARIANT_DEFAULT(_(" {NAME_0}, are you\nawake?")), VARIANT_DEFAULT(_(" There's some sort of a\ncommotion down at the square.")), VARIANT_DEFAULT(_(" Let's take a look!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x6a, 0x00, 0x0100, 0x00000000, 0x00000050, NULL }, @@ -977,7 +977,7 @@ static const struct ScriptCommand s_gs12_g12_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -1036,7 +1036,7 @@ static const struct ScriptCommand s_gs12_g12_s0_lives0_dlg0[] = { /* 0x81e5884 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" OK! That's settled!")), VARIANT_DEFAULT(_(" Great!\nThat's that!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -1053,7 +1053,7 @@ static const struct ScriptCommand s_gs12_g12_s0_lives0_dlg0[] = { /* 0x81e5884 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let me ask you again.{WAIT_PRESS}\nBut this is the last time.")), VARIANT_DEFAULT(_(" Let me make sure.{WAIT_PRESS}\nAnd I won't ask you again.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" What do you think?\nShould we let {NAME_2} join?")), VARIANT_DEFAULT(_(" What should we do?\nShould we let {NAME_2} join?")), @@ -1069,7 +1069,7 @@ static const struct ScriptCommand s_gs12_g12_s0_lives0_dlg0[] = { /* 0x81e5884 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I'll go tell {NAME_2} no.")), VARIANT_DEFAULT(_(" I'll let {NAME_2} know\nhe hasn't been accepted.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -1121,7 +1121,7 @@ static const struct ScriptCommand s_gs12_g13_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -1173,22 +1173,22 @@ static const struct ScriptCommand s_gs12_g13_s0_lives0_dlg0[] = { /* 0x81e6580 * VARIANT(/* == */ 1, _(" Isn't that awesome?!{WAIT_PRESS}\nIt's kind of unfair, but...{WAIT_PRESS}\nWell, so what?")), VARIANT_DEFAULT(_(" But since he ended up here,\nhe thinks it must be for a good reason.\nWe're getting that new rescue rank crest!")), VARIANT_DEFAULT(_(" It's awesome!{WAIT_PRESS}\nI guess it's kind of unfair, but...{WAIT_PRESS}\nWell, anyway!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I've never said no to a gift!")), VARIANT_DEFAULT(_(" If it's a gift, we have\nto accept!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Team {COLOR CYAN}{TEAM_NAME}{RESET}'s\n{CENTER_ALIGN}rescue rank went up!") }, FANFARE_PLAY(201), { 0xe1, 0x00, 0x00c9, 0x00000000, 0x00000000, NULL }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, { 0x3b, 0x2e, 0x0000, 0x00000000, 0x00000000, NULL }, COND_EQUAL(0, /* to label */ 2), { 0xe3, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -1221,7 +1221,7 @@ static const struct ScriptCommand s_gs12_g14_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -1255,15 +1255,15 @@ static const struct ScriptCommand s_gs12_g14_s0_lives0_dlg0[] = { /* 0x81e6fcc * VARIANT_DEFAULT(_(" The Rescue Organization\nsent us some reward money!")), VARIANT_DEFAULT(_(" I don't have the foggiest\nnotion why they'd send it...")), VARIANT_DEFAULT(_(" But why worry about it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" I never turn down\nsomeone's generosity!")), VARIANT_DEFAULT(_(" If they're in a giving mood,\nwe shouldn't refuse!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x3c, 0x2b, 0x0000, 0x00000009, 0x00000064, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -1331,7 +1331,7 @@ static const struct ScriptCommand s_gs12_g15_s0_lives0_dlg0[] = { /* 0x81e7560 - { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("........................") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}\nI feel groggy and sleepy...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Not feeling well...{WAIT_PRESS}\nI need more sleep...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -1352,7 +1352,7 @@ static const struct ScriptCommand s_gs12_g16_s0_evt0_sref_script[] = { /* 0x81e7 { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Now, I only want to sleep...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I'll rest in bed...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, }; @@ -1367,7 +1367,7 @@ static const struct ScriptCommand s_gs12_g16_s0_evt1_sref_script[] = { /* 0x81e7 { 0x3a, 0x00, 0x0000, 0x00000000, -0x00000001, _("Would you like to save your adventure?") }, JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_STOP, CALL_SCRIPT(SAVE_START_FUNC), SCENARIO_CALC(SCENARIO_MAIN, 3, 3), @@ -1442,7 +1442,7 @@ static const struct ScriptCommand s_gs12_g17_s0_lives0_dlg0[] = { /* 0x81e7be8 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh, that's right.{WAIT_PRESS} That Pokémon...{WAIT_PRESS}\nI think it was {NAME_1}?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("We made a promise to form a rescue\nteam together...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I wonder what {NAME_1} is doing?{WAIT_PRESS}\nI should go out.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -1514,7 +1514,7 @@ static const struct ScriptCommand s_gs12_g19_s0_lives0_dlg0[] = { /* 0x81e8094 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh, well.\nToday's another day of rescues!") }, PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I wonder if I have any mail?\nBetter check the Mailbox.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -1555,7 +1555,7 @@ static const struct ScriptCommand s_gs12_g20_s0_lives0_dlg0[] = { /* 0x81e8394 * { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Uhh... Hello?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(WAKEUP_FUNC), WAIT(60), FANFARE_PLAY2(468), @@ -1571,7 +1571,7 @@ static const struct ScriptCommand s_gs12_g20_s0_lives0_dlg0[] = { /* 0x81e8394 * CALL_SCRIPT(QUESTION_FUNC), WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hello? Uhh...\nYou are {NAME_0}...{WAIT_PRESS} Aren't you?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(468), { 0x92, 0x04, 0x0002, 0x00000005, 0x00000000, NULL }, @@ -1585,7 +1585,7 @@ static const struct ScriptCommand s_gs12_g20_s0_lives0_dlg0[] = { /* 0x81e8394 * { 0x92, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Oh! You can't see us, of course!{WAIT_PRESS}\nHow very rude of us!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_ENTITIES(-1, 1), WAIT(20), @@ -1604,7 +1604,7 @@ static const struct ScriptCommand s_gs12_g20_s0_lives0_dlg0[] = { /* 0x81e8394 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" It's a vilely vicious ruffian!\nPlease do be careful.")), MSG_NPC(2, _(" Please, we need your help!{WAIT_PRESS}\nWe must go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1615,7 +1615,7 @@ static const struct ScriptCommand s_gs12_g20_s0_lives0_dlg0[] = { /* 0x81e8394 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("...That was so sudden, there was no time\nto even say no...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("It's too bad. I'd better go.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -1696,7 +1696,7 @@ static const struct ScriptCommand s_gs12_g22_s0_station_sref_script[] = { /* 0x8 { 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -1732,7 +1732,7 @@ static const struct ScriptCommand s_gs12_g23_s0_station_sref_script[] = { /* 0x8 { 0x23, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -1768,7 +1768,7 @@ static const struct ScriptCommand s_gs12_g24_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -1832,7 +1832,7 @@ static const struct ScriptCommand s_gs12_g26_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -1896,7 +1896,7 @@ static const struct ScriptCommand s_gs12_g28_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -1960,7 +1960,7 @@ static const struct ScriptCommand s_gs12_g30_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -2024,7 +2024,7 @@ static const struct ScriptCommand s_gs12_g32_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -2055,7 +2055,7 @@ static const struct ScriptCommand s_gs12_g33_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -2087,7 +2087,7 @@ static const struct ScriptCommand s_gs12_g33_s0_lives0_dlg0[] = { /* 0x81ea094 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("That's it!{WAIT_PRESS}\n{NAME_2}!") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("It was {NAME_2}!") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Yesterday, {NAME_3} said...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -2126,7 +2126,7 @@ static const struct ScriptCommand s_gs12_g34_s0_lives0_dlg0[] = { /* 0x81ea3c4 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Maybe I was the human who was\n{NAME_2}'s partner...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Maybe I was the one that abandoned\n{NAME_2} when she was cursed...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Maybe that's why I turned into\na Pokémon...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -2146,7 +2146,7 @@ static const struct ScriptCommand s_gs12_g35_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -2177,7 +2177,7 @@ static const struct ScriptCommand s_gs12_g36_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -2200,12 +2200,12 @@ static const struct ScriptCommand s_gs12_g36_s0_lives0_dlg0[] = { /* 0x81ea85c * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}\nThere was an earthquake...{WAIT_PRESS}\nWasn't there...?") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I think I had that dream again...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I think I spoke with Gardevoir...{WAIT_PRESS}\nShe said something important...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(464), CALL_SCRIPT(NOTICE_FUNC), WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("That's it!{WAIT_PRESS}\nShe did say something!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -2242,7 +2242,7 @@ static const struct ScriptCommand s_gs12_g37_s0_lives0_dlg0[] = { /* 0x81eab48 * { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("{NAME_2} knows!{WAIT_PRESS}\nShe knows why I became a Pokémon.") }, PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("She also said something about a role...{WAIT_PRESS}\nWhat did she mean by that?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -2261,7 +2261,7 @@ static const struct ScriptCommand s_gs12_g38_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -2287,7 +2287,7 @@ static const struct ScriptCommand s_gs12_g38_s0_lives0_dlg0[] = { /* 0x81eaddc * CALL_SCRIPT(SHOCK_FUNC), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh, wow, another earthquake...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(120), FANFARE_FADEOUT2(60, 453), { 0x97, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -2296,7 +2296,7 @@ static const struct ScriptCommand s_gs12_g38_s0_lives0_dlg0[] = { /* 0x81eaddc * PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("............{WAIT_PRESS}\nI guess it settled down...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _(".......There've been a lot of earthquakes\nlately...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(1), { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -2311,7 +2311,7 @@ static const struct ScriptCommand s_gs12_g39_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -2337,7 +2337,7 @@ static const struct ScriptCommand s_gs12_g39_s0_lives0_dlg0[] = { /* 0x81eb100 * CALL_SCRIPT(SHOCK_FUNC), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("Oh? Another earthquake...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(120), FANFARE_FADEOUT2(60, 453), { 0x97, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -2345,7 +2345,7 @@ static const struct ScriptCommand s_gs12_g39_s0_lives0_dlg0[] = { /* 0x81eb100 * PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("There've been so many quakes lately...") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("I wonder when they'll settle down...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -2357,7 +2357,7 @@ static const struct ScriptCommand s_gs12_g39_s0_lives0_dlg0[] = { /* 0x81eb100 * MSG_NPC(1, _(" {NAME_0}!\nThere's a commotion down at the square!")), MSG_NPC(1, _(" A lot of Pokémon have\nalready gathered there.")), MSG_NPC(1, _(" Let's go to the square right\nnow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), { 0x89, 0x50, 0x0200, 0x00000000, 0x00000000, NULL }, @@ -2394,7 +2394,7 @@ static const struct ScriptCommand s_gs12_g40_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -2429,7 +2429,7 @@ static const struct ScriptCommand s_gs12_g41_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -2481,21 +2481,21 @@ static const struct ScriptCommand s_gs12_g42_s0_lives0_dlg0[] = { /* 0x81eb95c * MSG_NPC(1, _(" But who cares?\nSomeone like that's sure to be some\nlowlife. Keke!")), MSG_NPC(1, _(" I'll expose you yet!")), MSG_NPC(1, _(" I'll expose what's in your\nheart with Dream Eater! Kekeke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), FANFARE_PLAY2(464), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000044), MSG_NPC(1, _(" Hm?!{WAIT_PRESS}\nSomething's coming!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(484), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" What? What is that light?{WAIT_PRESS}\nIt's coming closer?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(90), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2555,7 +2555,7 @@ static const struct ScriptCommand s_gs12_g43_s0_station_sref_script[] = { /* 0x8 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(MAP_TEAM_BASE_INSIDE), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The next morning...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -2630,7 +2630,7 @@ static const struct ScriptCommand s_gs12_g45_s0_station_sref_script[] = { /* 0x8 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -2666,7 +2666,7 @@ static const struct ScriptCommand s_gs12_g45_s0_lives0_dlg0[] = { /* 0x81ec59c * VARIANT_DEFAULT(_(" The Bulletin Board was still\ncovered with rescue jobs.")), VARIANT_DEFAULT(_(" Even though it's peaceful\nagain, many Pokémon still need our help.")), VARIANT_DEFAULT(_(" {NAME_0}!{WAIT_PRESS}\nLet's keep on doing our best as always!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -2709,7 +2709,7 @@ static const struct ScriptCommand s_gs12_g46_s0_evt1_sref_script[] = { /* 0x81ec { 0x3a, 0x00, 0x0000, 0x00000000, -0x00000001, _("Would you like to save the game?") }, JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SAVE_START_FUNC), { 0x3c, 0x0e, 0x0000, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SAVE_END_FUNC), @@ -2749,7 +2749,7 @@ static const struct ScriptCommand s_gs12_g46_s1_lives0_dlg0[] = { /* 0x81ecc04 * VARIANT(/* == */ 1, _(" Let's keep on giving it our\nbest for our rescue team!")), VARIANT_DEFAULT(_(" Good morning, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's keep doing our best\nfor our rescue team!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d01p01_station.h b/src/data/ground/ground_data_d01p01_station.h index 5465b1df9..357abbf8d 100644 --- a/src/data/ground/ground_data_d01p01_station.h +++ b/src/data/ground/ground_data_d01p01_station.h @@ -46,7 +46,7 @@ static const struct ScriptCommand s_gs178_g1_s0_station_sref_script[] = { /* 0x8 { 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?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...") }, @@ -57,7 +57,7 @@ static const struct ScriptCommand s_gs178_g1_s0_station_sref_script[] = { /* 0x8 VARIANT(/* == */ 1, _(" ...Hey, wake up.{WAIT_PRESS}\nWake up already.")), VARIANT_DEFAULT(_(" ...Excuse me.")), VARIANT_DEFAULT(_(" ...Please, wake up.{WAIT_PRESS}\nCome on, wake up.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), BGM_FADEIN(60, 101), { 0x22, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, @@ -85,10 +85,10 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, good! You finally came to!")), VARIANT_DEFAULT(_(" You're finally awake! Great!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Wh-where is this...?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, WAIT(20), @@ -109,14 +109,14 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - VARIANT(/* == */ 1, _(" I'm {NAME_1}.\nGlad to meet you!")), VARIANT(/* == */ 3, _(" I'm {NAME_1}.\nHappy to meet you!")), VARIANT_DEFAULT(_(" I'm {NAME_1}.\nGlad to meet you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...So, who might you be?{WAIT_PRESS}\nI don't think I've seen your face around\nhere.")), VARIANT(/* == */ 3, _(" ...And, you are?{WAIT_PRESS}\nI don't think I've seen you around before.")), VARIANT_DEFAULT(_(" ...And, you are?{WAIT_PRESS}\nI've never seen you around before.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -132,7 +132,7 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - VARIANT(/* == */ 3, _(" But you look like a normal\n{POKEMON_0} from every angle?")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS}\nYou're a human?")), VARIANT_DEFAULT(_(" But you look like a normal\n{POKEMON_0} in every way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(469), CALL_SCRIPT(QUESTION_FUNC), @@ -145,11 +145,11 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - PORTRAIT_REP(0x0000, 0x0000000c), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(It... It's true...)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(I have turned into\na {POKEMON_0}!)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), PORTRAIT_REP(0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(...But why?\nI don't remember anything...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -158,11 +158,11 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - VARIANT(/* == */ 1, _(" So, what's your name?\nWhat do you call yourself?")), VARIANT_DEFAULT(_(" Um...{WAIT_PRESS}\nYou're kind of weird...")), VARIANT_DEFAULT(_(" Your name?{WAIT_PRESS}\nWhat's your name?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0000, 0x00000000), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(My name...?{WAIT_PRESS}\nThat's right, my name is...)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x3b, 0x16, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x3d, 0x00, 0x0000, 0x00000001, 0x00000000, NULL }, @@ -180,7 +180,7 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - VARIANT(/* == */ 1, _(" A funny name!")), VARIANT(/* == */ 3, _(" Isn't it a funny name!")), VARIANT_DEFAULT(_(" It's a funny name!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -193,7 +193,7 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - BGM_FADEOUT(60), WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Somebody!\nPlease! Help me!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(466), CALL_SCRIPT(NOTICE_FUNC), @@ -203,7 +203,7 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?\nI hear shouting over there...")), VARIANT_DEFAULT(_(" Huh? I hear shouts from\nover there...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_LIVES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x0a, 0x0001, 0x00000004, 0x00000000, NULL }, @@ -212,33 +212,33 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's the matter?")), VARIANT_DEFAULT(_(" What's wrong?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), BGM_SWITCH(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" It's horrible!\nMy {NAME_3} fell into a cavern!\nMy poor baby!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" What?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(12), MSG_NPC(2, _(" A huge fissure opened in\nthe ground, and my {NAME_3} fell in!")), MSG_NPC(2, _(" He's too young to crawl out\nby himself!")), MSG_NPC(2, _(" When I went to get my\nbaby, Pokémon suddenly attacked me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Huh? You were attacked?{WAIT_PRESS}\nBy other Pokémon?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" They must be enraged by\nthe fissure...and out of control!\nThat's what I think.")), MSG_NPC(2, _(" I'm not strong enough to\nfend off those wild Pokémon...{WAIT_PRESS}\nWhat will become of my baby?")), MSG_NPC(2, _(" Oh! What am I to do?!\nOh dear, oh dear...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -248,7 +248,7 @@ static const struct ScriptCommand s_gs178_g1_s0_lives0_dlg0[] = { /* 0x822c5e4 - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" We can't just do nothing!\nLet's go help this kid!")), VARIANT_DEFAULT(_(" This sounds bad!\nWe have to go help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(1), @@ -364,7 +364,7 @@ static const struct ScriptCommand s_gs178_g2_s0_station_sref_script[] = { /* 0x8 { 0x2d, 0x09, 0x0000, 0x00000035, 0x00000000, NULL }, { 0x2e, 0x0b, 0x0000, -0x00000002, 0x00000000, NULL }, MSG_NPC(0, _(" ...Hello?{WAIT_PRESS}\nHello!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), { 0x22, 0x01, 0x003c, 0x00000000, 0x00000000, NULL }, { 0x3b, 0x39, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -401,7 +401,7 @@ static const struct ScriptCommand s_gs178_g2_s0_lives0_dlg0[] = { /* 0x822df60 - WAIT(50), FANFARE_STOP2(468), MSG_NPC(2, _(" Oh, my goodness!\nI'm so glad you came to!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -409,27 +409,27 @@ static const struct ScriptCommand s_gs178_g2_s0_lives0_dlg0[] = { /* 0x822df60 - { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Wh-where...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" In the forest.")), MSG_NPC(2, _(" You two ran off to rescue\nmy poor {NAME_3}, but...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...We ended up back here...")), VARIANT_DEFAULT(_(" ...We somehow ended up\nback here...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0001, 0x00000002, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" I guess if we're defeated\nin there, we don't get to advance.")), MSG_NPC(1, _(" It's a mysterious dungeon,\nI guess.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ohh!\nIs my poor {NAME_3} safe?!\nOh dear, oh dear...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, @@ -443,7 +443,7 @@ static const struct ScriptCommand s_gs178_g2_s0_lives0_dlg0[] = { /* 0x822df60 - MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's roll, {NAME_0}!")), VARIANT_DEFAULT(_(" {NAME_0}! Let's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(1), { 0x6b, 0x00, 0x0180, 0x00000008, 0x00000000, NULL }, @@ -541,7 +541,7 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000000), MSG_NPC(2, _(" My baby's safe...{WAIT_PRESS}\nI'm sorry, I don't know how I could ever\nthank you properly...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000009), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -549,10 +549,10 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - VARIANT(/* == */ 1, _(" I'm glad your little guy's\nnot hurt, honestly.")), VARIANT_DEFAULT(_(" Oh, that's OK!{WAIT_PRESS}\nIt has been dangerous lately with sudden\nquakes and fissures like that one.")), VARIANT_DEFAULT(_(" It was great to find your\nlittle boy unharmed.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Please, may I have your\nnames at least?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -562,13 +562,13 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" And this is {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" ............{WAIT_PRESS}\nCool...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -584,15 +584,15 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - PORTRAIT_REP(0x0000, 0x00000001), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(But, this doesn't feel bad, either.\nIt's like I'm a hero.)") }, { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(Helping Pokémon in trouble might be\na good experience.)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Thank you!\n{NAME_1} and {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), MSG_NPC(2, _(" I know it isn't really\nenough, but this is a token of our\nthanks. Please accept it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -602,12 +602,12 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - { 0x3c, 0x2c, 0x0000, 0x00000042, 0x00000001, NULL }, WAIT(10), { 0x3c, 0x2c, 0x0000, 0x0000003f, 0x00000001, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Thank you so much.\nGood-bye.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -628,17 +628,17 @@ static const struct ScriptCommand s_gs178_g3_s0_lives0_dlg0[] = { /* 0x822ea18 - VARIANT(/* == */ 1, _(" So, uh...\nWhat are you going to do?\nAfter this, I mean.")), VARIANT_DEFAULT(_(" You're very tough.\nI was sure impressed.")), VARIANT_DEFAULT(_(" So...\nWhat are you going to do?\nDo you have any plans?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0000, 0x00000004), { 0x33, 0x00, 0x0000, 0x00000000, 0x00000000, _("(............)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...{WAIT_PRESS}Say, {NAME_0}.{WAIT_PRESS}\nIf you don't have anywhere to stay,\nwhy don't you come with me?")), VARIANT_DEFAULT(_(" ...{WAIT_PRESS}Listen, {NAME_0}.{WAIT_PRESS}\nIf you don't have a place to stay, you\nshould come with me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x000a, 0x00000002, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d01p02_station.h b/src/data/ground/ground_data_d01p02_station.h index bbc02cbdd..4c91d648d 100644 --- a/src/data/ground/ground_data_d01p02_station.h +++ b/src/data/ground/ground_data_d01p02_station.h @@ -45,28 +45,28 @@ static const struct ScriptCommand s_gs179_g1_s0_lives0_dlg0[] = { /* 0x822fdd0 - PORTRAIT_REP(0x0002, 0x00000042), MSG_NPC(2, _(" Waaaaah...")), MSG_NPC(2, _(" Mommy...\nWhere are you...? Sniffle...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" We came to rescue you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Your mom's waiting.\nLet's get you out!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" OK.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_d02p01_station.h b/src/data/ground/ground_data_d02p01_station.h index 776f7ad2e..9aa2b0c16 100644 --- a/src/data/ground/ground_data_d02p01_station.h +++ b/src/data/ground/ground_data_d02p01_station.h @@ -61,7 +61,7 @@ static const struct ScriptCommand s_gs180_g1_s0_lives0_dlg0[] = { /* 0x823047c * MSG_NPC(2, _(" OH, YOU ARE HERE.\nBZBZBZZ!")), MSG_NPC(2, _(" MY FRIENDS ARE IN THIS\nCAVERN. BZBZBZZ.")), MSG_NPC(2, _(" MY FRIENDS SHOULD BE\nON B{VALUE_0}F. PLEASE HELP THEM!\nBZBZBZZZT!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000022, 0x00000000, NULL }, WAIT(30), @@ -180,7 +180,7 @@ static const struct ScriptCommand s_gs180_g2_s0_lives0_dlg0[] = { /* 0x8230ae4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's give it our best\nand rescue them {NAME_0}!")), VARIANT_DEFAULT(_(" Let's do our best to rescue\nthem, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -266,24 +266,24 @@ static const struct ScriptCommand s_gs180_g3_s0_lives0_dlg0[] = { /* 0x8231020 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" OUR BODIES SEPARATED.\nBZBZBZZ. REJOICE! BZBZBZZT!")), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" YAY! BZBZBZZT!")), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" YAY! BZBZBZZT!")), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" BE THANKFUL, YOU TWO.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -295,12 +295,12 @@ static const struct ScriptCommand s_gs180_g3_s0_lives0_dlg0[] = { /* 0x8231020 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" YOU ARE OUR HERO.\nTHANK YOU. BZBZBZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x3c, 0x2b, 0x0000, 0x00000003, 0x00000001, NULL }, { 0x3c, 0x2c, 0x0000, 0x0000003a, 0x00000001, NULL }, { 0x3c, 0x2c, 0x0000, 0x0000003f, 0x00000001, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d02p02_station.h b/src/data/ground/ground_data_d02p02_station.h index ea5d1e4e1..f6703d128 100644 --- a/src/data/ground/ground_data_d02p02_station.h +++ b/src/data/ground/ground_data_d02p02_station.h @@ -45,7 +45,7 @@ static const struct ScriptCommand s_gs181_g1_s0_lives0_dlg0[] = { /* 0x8231d84 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, hey, there they are.\nLet's get them out.")), VARIANT_DEFAULT(_(" Oh, there they are!\nLet's get them out safely.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, WAIT(1), diff --git a/src/data/ground/ground_data_d03p01_station.h b/src/data/ground/ground_data_d03p01_station.h index 9ede4d19c..a7365adfa 100644 --- a/src/data/ground/ground_data_d03p01_station.h +++ b/src/data/ground/ground_data_d03p01_station.h @@ -47,10 +47,10 @@ static const struct ScriptCommand s_gs182_g1_s0_lives0_dlg0[] = { /* 0x8232228 * VARIANT(/* == */ 1, _(" {NAME_3}'s been taken\nto the peak here...")), VARIANT_DEFAULT(_(" Here we are...\n{COLOR YELLOW_D}Mt. Steel{RESET}...")), VARIANT_DEFAULT(_(" So, {NAME_3} was\nwhisked to its peak...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That's right!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -60,7 +60,7 @@ static const struct ScriptCommand s_gs182_g1_s0_lives0_dlg0[] = { /* 0x8232228 * { 0x2d, 0x0a, 0x0000, 0x00000002, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" The peak is {VALUE_0}F!\nThank you for helping! Farewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -76,7 +76,7 @@ static const struct ScriptCommand s_gs182_g1_s0_lives0_dlg0[] = { /* 0x8232228 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ......{WAIT_PRESS}\nWell, I guess we go...")), VARIANT_DEFAULT(_(" ......{WAIT_PRESS}\nUh... Let's go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(45), @@ -166,10 +166,10 @@ static const struct ScriptCommand s_gs182_g2_s0_lives0_dlg0[] = { /* 0x8232988 * VARIANT(/* == */ 1, _(" We'll rescue {NAME_3}\nno matter what it takes!")), VARIANT_DEFAULT(_(" We have to make another\nattempt at {COLOR YELLOW_D}Mt. Steel{RESET}.")), VARIANT_DEFAULT(_(" Whatever it takes,\nlet's rescue {NAME_3}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That's the spirit!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -179,7 +179,7 @@ static const struct ScriptCommand s_gs182_g2_s0_lives0_dlg0[] = { /* 0x8232988 * { 0x2d, 0x0a, 0x0000, 0x00000002, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" The peak is {VALUE_0}F!\nThank you for helping! Farewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -195,7 +195,7 @@ static const struct ScriptCommand s_gs182_g2_s0_lives0_dlg0[] = { /* 0x8232988 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ......{WAIT_PRESS}\nWell, here we go...")), VARIANT_DEFAULT(_(" ......{WAIT_PRESS}\nUh... Let's go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(45), diff --git a/src/data/ground/ground_data_d03p02_station.h b/src/data/ground/ground_data_d03p02_station.h index c0c80e62a..2fe20d414 100644 --- a/src/data/ground/ground_data_d03p02_station.h +++ b/src/data/ground/ground_data_d03p02_station.h @@ -53,7 +53,7 @@ static const struct ScriptCommand s_gs183_g1_s0_lives0_dlg0[] = { /* 0x82333ec * WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Grr... I can't keep up!{WAIT_PRESS}\nI'll flee for now!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(90), @@ -72,14 +72,14 @@ static const struct ScriptCommand s_gs183_g1_s0_lives0_dlg0[] = { /* 0x82333ec * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" I can't...\nI'm too scared to move...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" OK, no sweat.{WAIT_PRESS}\nWe'll go to you. Just wait.")), VARIANT_DEFAULT(_(" OK, no problem.{WAIT_PRESS}\nWe'll come to you. Just wait.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" ...Whoa.")), @@ -89,12 +89,12 @@ static const struct ScriptCommand s_gs183_g1_s0_lives0_dlg0[] = { /* 0x82333ec * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wow. This is some cliff...\nI can't see the bottom.")), VARIANT_DEFAULT(_(" Sheesh! Look at this cliff...\nI can't see the bottom.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" {NAME_0}, what'll\nwe do?\nWe can't get across this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), @@ -106,11 +106,11 @@ static const struct ScriptCommand s_gs183_g1_s0_lives0_dlg0[] = { /* 0x82333ec * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey! It's those {NAME_4}\nfrom that rescue!")), VARIANT_DEFAULT(_(" Oh, hi!\nYou're the {NAME_4} we saved!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), PORTRAIT_POS(4, 2, 0), MSG_NPC(4, _(" WE GOT WORD OF THIS.{WAIT_PRESS}\nWE CAN RESCUE DIGLETT FROM THE\nSKY. BZBZBZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -118,7 +118,7 @@ static const struct ScriptCommand s_gs183_g1_s0_lives0_dlg0[] = { /* 0x82333ec * PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000000), PORTRAIT_POS(4, -2, 0), MSG_NPC(4, _(" DON'T BE SCARED.\nWE WON'T MAKE THE MISTAKE OF\nZAPPING YOU. BZBZBZZT!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d04p01_station.h b/src/data/ground/ground_data_d04p01_station.h index 3203b541b..5c06bfd5d 100644 --- a/src/data/ground/ground_data_d04p01_station.h +++ b/src/data/ground/ground_data_d04p01_station.h @@ -52,7 +52,7 @@ static const struct ScriptCommand s_gs184_g1_s0_lives0_dlg0[] = { /* 0x82343f8 * VARIANT_DEFAULT(_(" This must be it.\n{NAME_2} is lost somewhere in these\nwoods.")), VARIANT_DEFAULT(_(" {NAME_3}'s gang should\nbe in there already.")), VARIANT_DEFAULT(_(" We need to hurry.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x003c, 0x00000000, 0x00000000, NULL }, { 0x53, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, @@ -105,7 +105,7 @@ static const struct ScriptCommand s_gs184_g2_s0_lives0_dlg0[] = { /* 0x8234830 * VARIANT_DEFAULT(_(" Let's hustle, {NAME_0}!")), VARIANT_DEFAULT(_(" We're still stuck back here\nwhile {NAME_2}'s gang is...")), VARIANT_DEFAULT(_(" Come on, hurry!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x003c, 0x00000000, 0x00000000, NULL }, { 0x53, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d04p02_station.h b/src/data/ground/ground_data_d04p02_station.h index 744de0df6..55b5bef16 100644 --- a/src/data/ground/ground_data_d04p02_station.h +++ b/src/data/ground/ground_data_d04p02_station.h @@ -43,7 +43,7 @@ static const struct ScriptCommand s_gs185_g1_s0_lives0_dlg0[] = { /* 0x8234d94 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000043), MSG_NPC(3, _(" Owowowow...{WAIT_PRESS}\nYou'll pay for this!\nDon't you forget it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -62,10 +62,10 @@ static const struct ScriptCommand s_gs185_g1_s0_lives0_dlg0[] = { /* 0x8234d94 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Well, those pests are gone.\nLet's find {NAME_2}.")), VARIANT_DEFAULT(_(" No one should hold us back\nnow. Let's find {NAME_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Um, excuse me...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -78,21 +78,21 @@ static const struct ScriptCommand s_gs185_g1_s0_lives0_dlg0[] = { /* 0x8234d94 * PORTRAIT(PLACEMENT_MIDDLE_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 0, -3), MSG_NPC(2, _(" Did you maybe come looking\nfor me?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" You must be {NAME_2}.")), MSG_NPC(1, _(" Let's get you home.\nCaterpie was worried about you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Yay!")), MSG_NPC(2, _(" I was scared, so I kept my\nshell hardened...and waited and waited.")), MSG_NPC(2, _(" Thank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d05p01_station.h b/src/data/ground/ground_data_d05p01_station.h index 34fa2e4e8..6ae3f5651 100644 --- a/src/data/ground/ground_data_d05p01_station.h +++ b/src/data/ground/ground_data_d05p01_station.h @@ -55,7 +55,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Whew, this is some cliff.")), VARIANT_DEFAULT(_(" Wow! This cliff is steep!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -66,11 +66,11 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So your friend {NAME_2}\nis somewhere deep in this canyon?")), VARIANT_DEFAULT(_(" Your friend {NAME_2}\nis lost deep in this canyon?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Yes...\nI'm sorry to ask, but please help.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, no problem.")), @@ -80,7 +80,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's roll, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's go, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x89, 0x10, 0x0100, 0x00000004, 0x00000000, NULL }, @@ -88,7 +88,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ...Wait!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000b, 0x00000003, 0x00000000, NULL }, FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -96,38 +96,38 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah? What's up?")), VARIANT_DEFAULT(_(" Yes? What is it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" There's something I forgot\nto mention...")), MSG_NPC(2, _(" This canyon is known as\nthe {COLOR YELLOW_D}Silent Chasm{RESET}, but...")), MSG_NPC(2, _(" It's rumored that an amazing\nmonster sleeps here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(473), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" M...{WAIT_PRESS}monster?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Yes, but!{WAIT_PRESS}\nIt's only folklore!")), MSG_NPC(2, _(" It's also true that\nShiftry hasn't returned...")), MSG_NPC(2, _(" I just thought I should\nlet you know...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000006), MSG_NPC(1, _(" Owowow!\nMy stomach! It hurts...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000005, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Oh!{WAIT_PRESS}\nWhat's wrong?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -137,13 +137,13 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * VARIANT(/* == */ 1, _(" I think it's something I ate\nthis morning...")), VARIANT_DEFAULT(_(" It's my stomach!\nIt suddenly cramped up! Owowow...")), VARIANT_DEFAULT(_(" I think my breakfast was\nspoiled or something...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_0}, you too,\nright?")), VARIANT_DEFAULT(_(" Say, {NAME_0}, you're\nfeeling sick too, aren't you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" {NAME_0}, you have\na stomachache too, don't you?")), VARIANT_DEFAULT(_(" {NAME_0}, your stomach\nhurts too, doesn't it?")), @@ -151,7 +151,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * CHOICE(/* label */ 13, _("Huh? I'm perfectly fine.")), LABEL(12), /* = 0x0c */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(457), { 0x56, 0x00, 0x0000, 0x00000047, 0x00000000, NULL }, @@ -166,7 +166,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * VARIANT(/* == */ 1, _(" Sorry, but we can't handle\nthis rescue...")), VARIANT_DEFAULT(_(" See...\n{NAME_0} is hurting too.")), VARIANT_DEFAULT(_(" I'm sorry, but we won't\nbe able to handle this rescue...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -175,7 +175,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_NPC(2, _(" But {NAME_0}...")), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Hasn't had anything to\neat yet this morning.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -186,7 +186,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * WAIT(20), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Owowow...{WAIT_PRESS}\nI guess the cramping settled down...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SMILE_START_FUNC), @@ -194,13 +194,13 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * CALL_SCRIPT(SMILE_END_FUNC), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Hahahahaha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(16), LABEL(13), /* = 0x0d */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Huh...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(457), @@ -212,17 +212,17 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * VARIANT(/* == */ 1, _(" You're my partner!\nYou have to catch my drift better!")), VARIANT_DEFAULT(_(" What's the matter,\n{NAME_0}?!\nI need you to back me!")), VARIANT_DEFAULT(_(" If you're my partner, you\nneed to read my cues better!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Wh-why this sudden\noutburst, {NAME_1}?")), MSG_NPC(2, _(" Don't you have a\nstomachache?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000003, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -230,14 +230,14 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * VARIANT(/* == */ 1, _(" Owowow...{WAIT_PRESS}\nI guess the cramping settled down...")), VARIANT_DEFAULT(_(" Uh, yes...")), VARIANT_DEFAULT(_(" Owowow...{WAIT_PRESS}\nI guess the cramping settled down...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000b, 0x00000005, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(470), CALL_SCRIPT(SWEAT_FUNC), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Hahahahaha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), LABEL(16), /* = 0x10 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -248,26 +248,26 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So, this monster.\nWhat is it like?")), VARIANT_DEFAULT(_(" So, anyway, you said there\nmay be a monster.\nWhat is it like?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" I don't know very much\nat all...")), MSG_NPC(2, _(" It is an old folktale.\nI wouldn't know if it existed or not.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right...{WAIT_PRESS}\nThere's nothing we can do about that.")), VARIANT(/* == */ 1, _(" We'll just have to hope the\nmonster doesn't really exist.")), VARIANT_DEFAULT(_(" OK...{WAIT_PRESS}\nWell, it can't be helped.")), VARIANT_DEFAULT(_(" Let's just hope that monster\ndoesn't exist.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x0a, 0x0000, 0x00000006, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" My friend Jumpluff should\nbe around B{VALUE_0}F.{WAIT_PRESS}\nPlease take care!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -279,7 +279,7 @@ static const struct ScriptCommand s_gs186_g1_s0_lives0_dlg0[] = { /* 0x8235ba8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's roll, {NAME_0}!")), VARIANT_DEFAULT(_(" Let's get going,\n{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, { 0x7a, 0x00, 0x005f, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d05p02_station.h b/src/data/ground/ground_data_d05p02_station.h index 0236dc811..aaca9860b 100644 --- a/src/data/ground/ground_data_d05p02_station.h +++ b/src/data/ground/ground_data_d05p02_station.h @@ -53,36 +53,36 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_2}'s friend is\nsupposed to be around here, right?")), VARIANT_DEFAULT(_(" Isn't this the place?\nWhere {NAME_2}'s friend is supposed\nto be?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Oh, hey!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0x89, 0x20, 0x0100, 0x00000004, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" We came for you!\nAre you all right?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0002, 0x00000041), MSG_NPC(2, _(" Yes...\nI'm fine, but...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Great!\nYour friend is waiting for you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" {NAME_3} is in the\nback...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Huh? {NAME_3}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, WAIT(5), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -93,7 +93,7 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Let's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, @@ -105,15 +105,15 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey! Are you all right?\nGet it together!")), VARIANT_DEFAULT(_(" Listen! Are you OK?\nSnap out of it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000041), MSG_NPC(3, _(" ...Urrrgh.\nForget about me...")), MSG_NPC(3, _(" Get away from here!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Get...{WAIT_PRESS}\nGet away?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_STOP, FANFARE_PLAY2(502), { 0x28, 0x01, 0x0005, 0x00000002, 0x00777700, NULL }, @@ -124,15 +124,15 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wh-what happened?!\nIt's pitch-black! I can't see!")), VARIANT_DEFAULT(_(" Wh-what's going on?!\nWhy did it turn pitch-black?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), FANFARE_PLAY2(474), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gyaoooooh!") }, WAIT(90), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" It's coming!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(502), { 0x27, 0x01, 0x0005, 0x00000002, 0x00000000, NULL }, { 0x28, 0x01, 0x0005, 0x00000002, 0x00777700, NULL }, @@ -141,7 +141,7 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * { 0x28, 0x01, 0x0005, 0x00000002, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Move aside, you!") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" He dared to disturb my sleep!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(502), { 0x27, 0x01, 0x0005, 0x00000002, 0x00000000, NULL }, { 0x28, 0x01, 0x0005, 0x00000002, 0x00777700, NULL }, @@ -149,7 +149,7 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * { 0x28, 0x00, 0x0005, 0x00000002, 0x00777700, NULL }, { 0x28, 0x01, 0x0005, 0x00000002, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I have no mercy for meddlers!\nAnd that includes you!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x27, 0x00, 0x0005, 0x00000020, 0x00000000, NULL }, WAIT(32), FANFARE_PLAY2(517), @@ -157,7 +157,7 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * WAIT(32), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gyaooooh!") }, WAIT(90), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x27, 0x00, 0x0005, 0x00000010, 0x00ffffff, NULL }, WAIT(64), @@ -167,7 +167,7 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * CALL_SCRIPT(LOOK_AROUND_FUNC), WAIT(30), MSG_NPC(1, _(" Shi-{NAME_3}'s gone!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, @@ -176,14 +176,14 @@ static const struct ScriptCommand s_gs187_g1_s0_lives0_dlg0[] = { /* 0x8237d1c * { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I am {NAME_6}!\nThe embodiment of lightning!") }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0006, 0x00000000), MSG_NPC(6, _(" If you wish to save\n{NAME_3}, then scale {COLOR YELLOW_D}Mt. Thunder{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" {NAME_6}...")), MSG_NPC(1, _(" So that's the legendary\nmonster...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -316,7 +316,7 @@ static const struct ScriptCommand s_gs187_g1_s1_lives0_dlg0[] = { /* 0x8238f38 * FANFARE_PLAY2(459), { 0x70, 0x00, 0x0400, 0x00000080, 0x00000000, NULL }, WAIT(90), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, END_DELETE, }; diff --git a/src/data/ground/ground_data_d06p01_station.h b/src/data/ground/ground_data_d06p01_station.h index eacfb9cb4..a15778d00 100644 --- a/src/data/ground/ground_data_d06p01_station.h +++ b/src/data/ground/ground_data_d06p01_station.h @@ -56,7 +56,7 @@ static const struct ScriptCommand s_gs188_g1_s0_lives0_dlg0[] = { /* 0x82392cc * VARIANT(/* == */ 1, _(" I wonder if {NAME_3}'s\nteam is already on the way...")), VARIANT_DEFAULT(_(" This is the foot of\n{COLOR YELLOW_D}Mt. Thunder{RESET}.")), VARIANT_DEFAULT(_(" I wonder...\nIs {NAME_3}'s team already on\ntheir way?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_2}, huh...{WAIT_PRESS}\nIt sounds really tough.")), @@ -64,7 +64,7 @@ static const struct ScriptCommand s_gs188_g1_s0_lives0_dlg0[] = { /* 0x82392cc * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" Brr... I'm shaking...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -79,7 +79,7 @@ static const struct ScriptCommand s_gs188_g1_s0_lives0_dlg0[] = { /* 0x82392cc * VARIANT_DEFAULT(_(" I can't be scared now.")), VARIANT_DEFAULT(_(" Our objective is simple.\nWe're rescuing {NAME_4}.")), VARIANT_DEFAULT(_(" {NAME_0}, let's try\nour best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x00, 0x003c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -150,7 +150,7 @@ static const struct ScriptCommand s_gs188_g2_s0_lives0_dlg0[] = { /* 0x8239a30 * VARIANT(/* == */ 1, _(" Let's give it our best!")), VARIANT_DEFAULT(_(" {NAME_0}!\nWe'll rescue {NAME_2} this time for\nsure!")), VARIANT_DEFAULT(_(" Let's work hard at it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x00, 0x003c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), diff --git a/src/data/ground/ground_data_d06p02_station.h b/src/data/ground/ground_data_d06p02_station.h index 21637449b..bf91ae70c 100644 --- a/src/data/ground/ground_data_d06p02_station.h +++ b/src/data/ground/ground_data_d06p02_station.h @@ -50,7 +50,7 @@ static const struct ScriptCommand s_gs189_g0_s0_evt0_sref_script[] = { /* 0x823a LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x02, 0x00, 0x001e, 0x00000008, 0x00000000, NULL }, COND_EQUAL(-1, /* to label */ 1), @@ -67,7 +67,7 @@ static const struct ScriptCommand s_gs189_g0_s0_evt1_sref_script[] = { /* 0x823a LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -159,7 +159,7 @@ static const struct ScriptCommand s_gs189_g1_s0_lives0_dlg0[] = { /* 0x823a4d8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But we should be getting\nclose.{WAIT_PRESS}\nLet's keep going hard at it!")), VARIANT_DEFAULT(_(" But we shouldn't be far.{WAIT_PRESS}\nLet's keep doing our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d06p03_station.h b/src/data/ground/ground_data_d06p03_station.h index 1cbbe4acb..5b222f260 100644 --- a/src/data/ground/ground_data_d06p03_station.h +++ b/src/data/ground/ground_data_d06p03_station.h @@ -63,7 +63,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * WAIT(60), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _("Gyaoooh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -71,10 +71,10 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Wh-what is going on...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Urrggh!{WAIT_PRESS}\nUwoah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -96,14 +96,14 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" You want more?\nI'll take you on!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Enough!{WAIT_PRESS}\nThat's enough fighting.")), MSG_NPC(2, _(" I've calmed down.\nTake {NAME_6} back.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -111,7 +111,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_NPC(2, _(" But...{WAIT_PRESS}\nThings won't be this easy next time.")), MSG_NPC(2, _(" I will go all out next time,\nso you'd best be prepared!")), MSG_NPC(2, _(" Until then, you'd better\nhone your skills!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -134,7 +134,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * CALL_SCRIPT(NOTICE_FUNC), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Look!\nThere's {NAME_6}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -145,23 +145,23 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * WAIT(16), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" Are you OK?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" Ungh... Uh, yeah...{WAIT_PRESS}\nSomehow, I am...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000001), MSG_NPC(1, _(" I'm glad you're safe!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0005, 0x00000000), MSG_NPC(5, _(" But that was an eye-opener.")), MSG_NPC(5, _(" Driving off that\n{NAME_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -169,7 +169,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" I agree.")), MSG_NPC(4, _(" You're awfully strong for\na plain {POKEMON_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(32), { 0x91, 0x04, 0x0002, 0x00000005, 0x00000000, NULL }, WAIT(32), @@ -177,7 +177,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_NPC(3, _(" ......")), MSG_NPC(3, _(" I sensed it when we first\nmet...")), MSG_NPC(3, _(" Perhaps...{WAIT_PRESS}\nYou aren't a Pokémon, are you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -186,7 +186,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_NPC(1, _(" Wow!\nHow can you tell that?!")), MSG_NPC(1, _(" But you're right.\n{NAME_0} isn't a Pokémon.")), MSG_NPC(1, _(" {NAME_0} is a human.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(473), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -198,7 +198,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_NPC(4, _(" A human?!")), PORTRAIT(PLACEMENT_LEFT_, 0x0005, 0x00000041), MSG_NPC(5, _(" Is that possible?\nCan something like that happen?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -208,7 +208,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * VARIANT_DEFAULT(_(" {NAME_0} doesn't\nunderstand very much, either.")), VARIANT_DEFAULT(_(" {NAME_0} woke up\none morning here as a Pokémon...")), VARIANT_DEFAULT(_(" ...And doesn't remember\nanything about being a human.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -220,34 +220,34 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * VARIANT_DEFAULT(_(" Oh, wait!{WAIT_PRESS}\nLombre said something in the square!")), VARIANT_DEFAULT(_(" He said {NAME_3} knows\neverything!")), VARIANT_DEFAULT(_(" {NAME_3}, could you\nfigure out why {NAME_0} became a\nPokémon?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" ......")), MSG_NPC(3, _(" No...{WAIT_PRESS}\nI can't determine that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000005), MSG_NPC(1, _(" Oh...\nI thought you would know...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" However...{WAIT_PRESS}\nThere is a way for unveiling the truth.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000b), MSG_NPC(1, _(" Oh, really? How?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Make way to the\n{COLOR CYAN}Hill of the Ancients{RESET}.")), MSG_NPC(3, _(" There, you will find a\nPokémon that stares into the sun all day...")), MSG_NPC(3, _(" A Pokémon who is said to\nsee into the future.")), MSG_NPC(3, _(" Xatu is his name.{WAIT_PRESS}\nHe should shed light on your puzzling\nfriend.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" OK!\nSo we should go see Xatu.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -262,13 +262,13 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Shiftry, you too.{WAIT_PRESS}\nLet's hurry back.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0006, 0x00000000), MSG_NPC(6, _(" Uh... Yeah...{WAIT_PRESS}\nI guess we should...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -289,7 +289,7 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Don't just stand around.\nLet's go back.")), VARIANT_DEFAULT(_(" Don't just stand there.\nLet's go home.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -309,12 +309,12 @@ static const struct ScriptCommand s_gs190_g1_s0_lives0_dlg0[] = { /* 0x823ac18 * MSG_NPC(4, _(" Alakazam.{WAIT_PRESS}\nI know you.")), MSG_NPC(4, _(" I don't think you're \ncompletely ignorant about this.")), MSG_NPC(4, _(" ......{WAIT_PRESS}\nYou know something, don't you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" There is something that\nconcerns me.{WAIT_PRESS}\nBut it should go unspoken for now.")), MSG_NPC(3, _(" ...For their sake...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d07p01_station.h b/src/data/ground/ground_data_d07p01_station.h index e7d0d853f..f771ccafb 100644 --- a/src/data/ground/ground_data_d07p01_station.h +++ b/src/data/ground/ground_data_d07p01_station.h @@ -45,7 +45,7 @@ static const struct ScriptCommand s_gs191_g1_s0_lives0_dlg0[] = { /* 0x823d8e0 * WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" This is the {COLOR YELLOW_D}Great Canyon{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" The peak is called the\n{COLOR CYAN}Hill of the Ancients{RESET}.")), @@ -58,7 +58,7 @@ static const struct ScriptCommand s_gs191_g1_s0_lives0_dlg0[] = { /* 0x823d8e0 * VARIANT(/* == */ 1, _(" That's where we'll find\n{NAME_3}.{WAIT_PRESS}\n{NAME_0}, let's give it our best!")), VARIANT_DEFAULT(_(" According to {NAME_2},\nthe {COLOR CYAN}Hill of the Ancients{RESET} is on {VALUE_0}F.")), VARIANT_DEFAULT(_(" {NAME_3} should be\nthere.{WAIT_PRESS}\n{NAME_0}, let's do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0028, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -119,7 +119,7 @@ static const struct ScriptCommand s_gs191_g2_s0_lives0_dlg0[] = { /* 0x823ddac * VARIANT_DEFAULT(_(" {NAME_0}!\nLet's make it to the peak this time!")), VARIANT_DEFAULT(_(" We have to meet\n{NAME_3} and get some information\non you, {NAME_0}.")), VARIANT_DEFAULT(_(" Let's do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0028, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d07p02_station.h b/src/data/ground/ground_data_d07p02_station.h index 2b3335ed6..5e97ddd11 100644 --- a/src/data/ground/ground_data_d07p02_station.h +++ b/src/data/ground/ground_data_d07p02_station.h @@ -54,7 +54,7 @@ static const struct ScriptCommand s_gs192_g1_s0_lives0_dlg0[] = { /* 0x823e36c * WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ............{WAIT_PRESS}\nWhat is it?{WAIT_PRESS}\nHave you reason to see me?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000008, NULL }, { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -67,23 +67,23 @@ static const struct ScriptCommand s_gs192_g1_s0_lives0_dlg0[] = { /* 0x823e36c * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Hm! This...{WAIT_PRESS}\nThis is a {COLOR GREEN_I}Clear Wing{RESET}...")), MSG_NPC(2, _(" ...{WAIT_PRESS}I see.{WAIT_PRESS}\nAbout the mirage Pokémon...{WAIT_PRESS}\nThat is what you wish to know?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _(" {COLOR YELLOW}{RESET}Kwaaaaah!") }, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(JUMP_SURPRISE_FUNC), WAIT(60), MSG_NPC(2, _(" .......{WAIT_PRESS}\nThe mirage Pokémon...")), MSG_NPC(2, _(" I know...{WAIT_PRESS}\nLittle about it...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" ............")), MSG_NPC(2, _(" ........................")), MSG_NPC(2, _(" ....................................\n................................................\n................................................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(470), CALL_SCRIPT(SWEAT_FUNC), @@ -97,7 +97,7 @@ static const struct ScriptCommand s_gs192_g1_s0_lives0_dlg0[] = { /* 0x823e36c * MSG_NPC(2, _(" They...{WAIT_PRESS}\nrage with the eruptions of volcanoes...")), MSG_NPC(2, _(" Roar as one with thunder...")), MSG_NPC(2, _(" And race with the north\nwind.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), MSG_NPC(2, _(" They are said to be\nshadows.\nShadows of the mirage Pokémon.")), MSG_NPC(2, _(" To the northwest, there lies\na large island.")), @@ -108,19 +108,19 @@ static const struct ScriptCommand s_gs192_g1_s0_lives0_dlg0[] = { /* 0x823e36c * MSG_NPC(2, _(" An island known as the\n“Three Fields.”")), MSG_NPC(2, _(" There is one such field.\nThe {COLOR YELLOW_D}Fiery Field{RESET}!")), MSG_NPC(2, _(" One of the Pokémon...\nA shadow of the mirage...is there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_NPC(2, _(" Go.\nYou must go to the {COLOR YELLOW_D}Fiery Field{RESET}.")), MSG_NPC(2, _(" The answers you seek...\nPerhaps they await you there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_STOP, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Fiery Field{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -196,7 +196,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Yes! We finally made it to\nthe top, {NAME_0}!")), VARIANT_DEFAULT(_(" Yes! We've finally made it\nto the top, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0x91, 0x08, 0x0002, 0x00000004, 0x00000000, NULL }, @@ -204,12 +204,12 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So this is the {COLOR CYAN}Hill of\nthe Ancients{RESET}...")), VARIANT_DEFAULT(_(" This is the {COLOR CYAN}Hill of the\nAncients{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Look!\nOver there!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -218,7 +218,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" {NAME_0}!{WAIT_PRESS}\nIs that {NAME_2} over there?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -227,35 +227,35 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, WAIT(20), MSG_NPC(1, _(" Excuse me?{WAIT_PRESS}\nAre you maybe {NAME_2}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ......") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Hello?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Maybe he doesn't hear me?\nHello?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ..................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(40), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, MSG_NPC(1, _(" Hellooooooooooooooo?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ........................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -270,14 +270,14 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * CHOICE(/* label */ 2, _("Tickle him.")), CHOICE(/* label */ 3, _("Attack him.")), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah? Tickle him?{WAIT_PRESS}\n...OK. I'll try it.")), VARIANT_DEFAULT(_(" Huh? Tickle him?{WAIT_PRESS}\n...OK. It's worth a try.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -287,31 +287,31 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * TEXTBOX_AUTO_PRESS(30, 30), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Tickle, tickle, tickle.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(-1, -1), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ............") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(10), TEXTBOX_AUTO_PRESS(30, 30), MSG_NPC(1, _(" Tickle, tickle, tickle, tickle,\ntickle, tickle.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(-1, -1), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ....................................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(20), TEXTBOX_AUTO_PRESS(20, 20), MSG_NPC(1, _(" Tickle, tickle, tickle, tickle,\ntickle, tickle, tickle, tickle, tickle, tickle,\ntickle, tickle, tickle, tickle, tickle, tickle.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(-1, -1), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ................................................\n............................................................\n............................................................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, TEXTBOX_AUTO_PRESS(30, 30), @@ -322,7 +322,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" Gasp, gasp...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -331,25 +331,25 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" It's useless, {NAME_0}.\nI'm not getting any response.")), VARIANT_DEFAULT(_(" It's no good, {NAME_0}.\nHe's not responding.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Snort...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000003, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Snort...{WAIT_PRESS} Giggle...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Bufufufufufufufufu...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -361,7 +361,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * VARIANT(/* == */ 1, _(" Maybe...{WAIT_PRESS}\nIs he just dense?")), VARIANT_DEFAULT(_(" He's finally laughing now...")), VARIANT_DEFAULT(_(" Is he...{WAIT_PRESS}\njust dense?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), BGM_STOP, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -369,17 +369,17 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Kwaaaaaaaaah!") }, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(JUMP_SURPRISE_FUNC), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Yikes!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), JUMP_LABEL(4), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -388,7 +388,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?\nWe're gonna attack?")), VARIANT_DEFAULT(_(" Huh?\nWe're going to attack?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000007), @@ -397,19 +397,19 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" It'd be scary for\nsure!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000002), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...{WAIT_PRESS}Oh, all right. \nYou really want me to do this.")), VARIANT_DEFAULT(_(" ...{WAIT_PRESS}Fine, then.\nI'll do it, OK?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" If something happens to me,\npromise you'll help me.\nI'm counting on you.")), VARIANT(/* == */ 3, _(" If anything happens to me,\nyou have to help me. You have to promise!")), VARIANT_DEFAULT(_(" If anything happens\nto me, you have to help me.\nI'm counting on you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_FADEOUT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -422,7 +422,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right. Counting down.{WAIT_PRESS}\nThree...{WAIT_PRESS} Two...{WAIT_PRESS} One...{WAIT_PRESS} Now...!")), VARIANT_DEFAULT(_(" OK. Counting down.{WAIT_PRESS}\nThree...{WAIT_PRESS} Two...{WAIT_PRESS} One...{WAIT_PRESS} Now...!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), TEXTBOX_AUTO_PRESS(-1, -1), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -430,20 +430,20 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Kwaaaaaaaaah!") }, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(JUMP_SURPRISE_FUNC), { 0x8b, 0x0a, 0x0003, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Yikes!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), JUMP_LABEL(4), LABEL(4), /* = 0x04 */ { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Witness it...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" The sinking of the sun...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_FADEIN(60, 6), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -451,7 +451,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Indeed.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I am {NAME_2}.") }, MSG_NPC(2, _(" You discerned my true\nidentity...{WAIT_PRESS}\nYou are not an ordinary sort...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -460,14 +460,14 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Guessed your identity?\nThat's a bit much.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ...No.\nI can tell this.")), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" You there.")), MSG_NPC(2, _(" You are no ordinary\nPokémon.")), MSG_NPC(2, _(" You are...{WAIT_PRESS}\nhuman, yes?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -476,7 +476,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Huh?!\nHow can you tell that?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -486,7 +486,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" The past and the future, too.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -496,7 +496,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Then, you've got to tell us,\n{NAME_2}!")), VARIANT_DEFAULT(_(" If you know, please tell us,\n{NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -514,7 +514,7 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_2}, you can tell,\ncan't you?{WAIT_PRESS}\nCan't you tell us?")), VARIANT_DEFAULT(_(" {NAME_2}, you can tell,\ncan't you?{WAIT_PRESS}\nPlease tell us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ..................")), MSG_NPC(2, _(" The calamities of nature.\nThere have been many in recent times.")), @@ -523,17 +523,17 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, MSG_NPC(2, _(" And your becoming a\nPokémon...")), MSG_NPC(2, _(" They are tied together.\nInseparably so.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Wait. {NAME_0}\nbecoming a Pokémon and...{WAIT_PRESS}the natural\ndisasters...{WAIT_PRESS}are related?!")), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" What do you mean?!")), MSG_NPC(1, _(" What does {NAME_0}\nhave to do with the natural disasters\nwe've been seeing?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -543,13 +543,13 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * VARIANT(/* == */ 1, _(" Why did you clam up?\nCome on, tell us, please!")), VARIANT_DEFAULT(_(" What is it?!")), VARIANT_DEFAULT(_(" Why did you clam up?!\nPlease, tell us! Please!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" There are bigger concerns...{WAIT_PRESS}\nI am afraid...")), MSG_NPC(2, _(" The world's balance...\nIt must be restored.")), MSG_NPC(2, _(" Or the unthinkable shall\nbefall our world.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -560,23 +560,23 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * VARIANT(/* == */ 1, _(" The world...{WAIT_PRESS}\nThe unthinkable is going to happen?")), VARIANT_DEFAULT(_(" Huh...?{WAIT_PRESS}\nYou're serious?!")), VARIANT_DEFAULT(_(" The world...{WAIT_PRESS}\nThe unthinkable is coming?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Every day I see it.\nThe same future every day...")), MSG_NPC(2, _(" I dread it...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000005), MSG_NPC(1, _(" Xa-{NAME_2}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" I fear it...{WAIT_PRESS}\nThe world's destruction.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), SELECT_LIVES(-1, 1), MSG_NPC(1, _(" The world's destruction...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(150), @@ -584,12 +584,12 @@ static const struct ScriptCommand s_gs192_g2_s0_lives0_dlg0[] = { /* 0x823ef68 * MSG_NPC(3, _(" Kekeh!\nIsn't that a surprise!")), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000044), MSG_NPC(3, _(" That {NAME_0}...\nwas human...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" That's going to be useful!\nThis should be interesting! Kekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d08p01_station.h b/src/data/ground/ground_data_d08p01_station.h index ed43d5f64..30cb31e59 100644 --- a/src/data/ground/ground_data_d08p01_station.h +++ b/src/data/ground/ground_data_d08p01_station.h @@ -163,26 +163,26 @@ static const struct ScriptCommand s_gs193_g1_s0_lives0_dlg0[] = { /* 0x824313c * VARIANT_DEFAULT(_(" All sorts of places have\nbeen affected by the natural disasters.")), VARIANT_DEFAULT(_(" I'm sure many Pokémon are\nsuffering because of the calamities.")), VARIANT_DEFAULT(_(" I wish we could get back to\ndoing our rescue work...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" Sorry, I shouldn't complain.\nWe have to get away now, period.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Huh? I hear voices...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0001, 0x00000006, 0x00000000, NULL }, WAIT(20), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I think they went this way.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" They can't get away.\nNot from all of us.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" We have to get rid of {NAME_0}\nquickly...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -193,7 +193,7 @@ static const struct ScriptCommand s_gs193_g1_s0_lives0_dlg0[] = { /* 0x824313c * VARIANT(/* == */ 1, _(" {NAME_0}, we have to\nroll.")), VARIANT_DEFAULT(_(" Aww, no!\nAre they catching up to us?")), VARIANT_DEFAULT(_(" {NAME_0}, we'd better\ngo.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, { 0x86, 0x00, 0x0100, 0x00000002, 0x00000000, NULL }, @@ -258,7 +258,7 @@ static const struct ScriptCommand s_gs193_g2_s0_lives0_dlg0[] = { /* 0x8243ab8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -270,7 +270,7 @@ static const struct ScriptCommand s_gs193_g2_s0_lives0_dlg0[] = { /* 0x8243ab8 * VARIANT_DEFAULT(_(" I guess we got a little\ncareless, {NAME_0}.")), VARIANT_DEFAULT(_(" I wonder what became of\nthe Pokémon chasing us?\nAre they in the dungeon?")), VARIANT_DEFAULT(_(" We sure don't want to run\ninto them.\nLet's get through this quickly.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -347,7 +347,7 @@ static const struct ScriptCommand s_gs193_g3_s1_lives0_dlg0[] = { /* 0x8244078 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right.\nWe'll go when you're ready.")), VARIANT_DEFAULT(_(" OK.\nLet's go when you're ready.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ @@ -359,7 +359,7 @@ static const struct ScriptCommand s_gs193_g3_s1_lives0_dlg0[] = { /* 0x8244078 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right!\nLet's roll out!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 4), COND_EQUAL(3, /* to label */ 4), @@ -385,7 +385,7 @@ static const struct ScriptCommand s_gs193_g3_s1_lives0_dlg0[] = { /* 0x8244078 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right!\nLet's roll out!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(2, /* to label */ 6), COND_EQUAL(3, /* to label */ 6), @@ -460,7 +460,7 @@ static const struct ScriptCommand s_gs193_g4_s0_lives0_dlg0[] = { /* 0x8244804 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" What the...?{WAIT_PRESS}\nIsn't this where we started from?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -475,7 +475,7 @@ static const struct ScriptCommand s_gs193_g4_s0_lives0_dlg0[] = { /* 0x8244804 * VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nI guess that path we took just loops back\nto where it started.")), VARIANT_DEFAULT(_(" It looks like we have to go\nthrough the {COLOR YELLOW_D}Lapis Cave{RESET} to move on.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -526,7 +526,7 @@ static const struct ScriptCommand s_gs193_g5_s0_lives0_dlg0[] = { /* 0x8244d30 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -536,7 +536,7 @@ static const struct ScriptCommand s_gs193_g5_s0_lives0_dlg0[] = { /* 0x8244d30 * VARIANT(/* == */ 1, _(" {NAME_0}, let's give it\nour best!")), VARIANT_DEFAULT(_(" If we don't get through here\nfast, they'll catch up to us.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, diff --git a/src/data/ground/ground_data_d08p02_station.h b/src/data/ground/ground_data_d08p02_station.h index e983b6953..92a05fa06 100644 --- a/src/data/ground/ground_data_d08p02_station.h +++ b/src/data/ground/ground_data_d08p02_station.h @@ -26,12 +26,12 @@ static const struct ScriptCommand s_gs194_g1_s0_station_sref_script[] = { /* 0x8 { 0xe3, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Stop right there!\nDon't let them get away!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sure. Like we're really\ngoing to wait because they said so.")), VARIANT_DEFAULT(_(" They expect us to stop and\nwait for them?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), RET, }; @@ -60,7 +60,7 @@ static const struct ScriptCommand s_gs194_g1_s0_lives0_dlg0[] = { /* 0x8245734 * VARIANT(/* == */ 1, _(" Where are the Pokémon\nwho are chasing us?")), VARIANT_DEFAULT(_(" Whew!\nFinally, we made it through that cave.")), VARIANT_DEFAULT(_(" Where's the Pokémon mob\nthat's after us?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -69,12 +69,12 @@ static const struct ScriptCommand s_gs194_g1_s0_lives0_dlg0[] = { /* 0x8245734 * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Catch {NAME_0}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000005, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Whoa! Here they come!\nRun!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), { 0x89, 0x50, 0x0200, 0x00000002, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d09p01_station.h b/src/data/ground/ground_data_d09p01_station.h index 28a4b4a09..6648bbf76 100644 --- a/src/data/ground/ground_data_d09p01_station.h +++ b/src/data/ground/ground_data_d09p01_station.h @@ -142,25 +142,25 @@ static const struct ScriptCommand s_gs195_g1_s0_station_sref_script[] = { /* 0x8 WAIT(4), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Darn it!\nWhere'd they go?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" They had to go this way!\nKeep your eyes open!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Rooooooaaaar!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), FANFARE_PLAY2(503), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Tromp, tromp, tromp, tromp, tromp!") }, WAIT(120), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("........................") }, WAIT(120), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), MSG_NPC(1, _(" ............")), MSG_NPC(1, _(" ........................")), MSG_NPC(1, _(" ...I think...{WAIT_PRESS}\nThey're gone.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(25), { 0x3b, 0x3a, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x22, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, @@ -205,7 +205,7 @@ static const struct ScriptCommand s_gs195_g1_s0_lives0_dlg0[] = { /* 0x8246544 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Whew.\nI think we gave them the slip.")), VARIANT_DEFAULT(_(" Whew.\nI think we managed to evade them.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000002, 0x00000000, NULL }, @@ -216,7 +216,7 @@ static const struct ScriptCommand s_gs195_g1_s0_lives0_dlg0[] = { /* 0x8246544 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000b, 0x00000004, 0x00000000, NULL }, MSG_NPC(1, _(" We have to get over this\nmountain to get away.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -224,7 +224,7 @@ static const struct ScriptCommand s_gs195_g1_s0_lives0_dlg0[] = { /* 0x8246544 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}, we need to\nroll as soon as we're ready.")), VARIANT_DEFAULT(_(" Let's go as soon as we're\nready, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -305,7 +305,7 @@ static const struct ScriptCommand s_gs195_g2_s1_lives0_dlg0[] = { /* 0x8246bd0 * VARIANT(/* == */ 1, _(" Other Pokémon are\nwandering about, so make it quick.")), VARIANT_DEFAULT(_(" I'll be waiting while you get\nready.")), VARIANT_DEFAULT(_(" Try to be quick.\nOther Pokémon are out looking for us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), JUMP_SCRIPT(END_TALK), LABEL(2), /* = 0x02 */ @@ -319,7 +319,7 @@ static const struct ScriptCommand s_gs195_g2_s1_lives0_dlg0[] = { /* 0x8246bd0 * VARIANT(/* == */ 1, _(" It looks like one wicked\nplace, but let's give it our best!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), VARIANT_DEFAULT(_(" It sounds very rough,\nbut let's try our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 7), COND_EQUAL(3, /* to label */ 7), @@ -346,7 +346,7 @@ static const struct ScriptCommand s_gs195_g2_s1_lives0_dlg0[] = { /* 0x8246bd0 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sure thing!\nLet's roll on out!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 9), COND_EQUAL(3, /* to label */ 9), @@ -427,7 +427,7 @@ static const struct ScriptCommand s_gs195_g3_s0_lives0_dlg0[] = { /* 0x82474ec * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -435,35 +435,35 @@ static const struct ScriptCommand s_gs195_g3_s0_lives0_dlg0[] = { /* 0x82474ec * { 0x91, 0x04, 0x000b, 0x00000002, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT_FLIP, 0x0001, 0x0000000c), MSG_NPC(1, _(" Ssh!{WAIT_PRESS}\nSomeone's coming.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x86, 0x00, 0x0200, 0x00000007, 0x00000000, NULL }, { 0x6b, 0x00, 0x0200, 0x00000008, 0x00000000, NULL }, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Where are they?\n{NAME_0} and that sidekick.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Do you think they tried getting over\nMt. Blaze?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" No, that's impossible.{WAIT_PRESS}\nNobody could ever get past it.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" They should be around here still.\nKeep looking!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Rooooooaaaar!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), FANFARE_PLAY2(503), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Tromp, tromp, tromp, tromp, tromp!") }, WAIT(120), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("........................") }, WAIT(120), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" ............")), MSG_NPC(1, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x6b, 0x00, 0x0200, 0x00000007, 0x00000000, NULL }, @@ -480,7 +480,7 @@ static const struct ScriptCommand s_gs195_g3_s0_lives0_dlg0[] = { /* 0x82474ec * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" We'll have to get over this\nmountain to get away from them.")), VARIANT_DEFAULT(_(" If we're going to get away,\nwe'll have to go over the mountain.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -542,7 +542,7 @@ static const struct ScriptCommand s_gs195_g4_s0_lives0_dlg0[] = { /* 0x8247d30 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" What the...?{WAIT_PRESS}\nIsn't this where we started from?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -557,7 +557,7 @@ static const struct ScriptCommand s_gs195_g4_s0_lives0_dlg0[] = { /* 0x8247d30 * VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nI guess that path we took just loops back\nto where it started.")), VARIANT_DEFAULT(_(" It looks like we have to go\nover {COLOR YELLOW_D}Mt. Blaze{RESET} to move on.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -607,7 +607,7 @@ static const struct ScriptCommand s_gs195_g5_s0_lives0_dlg0[] = { /* 0x8248230 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -617,7 +617,7 @@ static const struct ScriptCommand s_gs195_g5_s0_lives0_dlg0[] = { /* 0x8248230 * VARIANT(/* == */ 1, _(" {NAME_0}, let's give it\nour best!")), VARIANT_DEFAULT(_(" If we don't get through here\nfast, they'll catch up to us.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, diff --git a/src/data/ground/ground_data_d09p02_station.h b/src/data/ground/ground_data_d09p02_station.h index 8a69f3b4b..7b54cb192 100644 --- a/src/data/ground/ground_data_d09p02_station.h +++ b/src/data/ground/ground_data_d09p02_station.h @@ -55,7 +55,7 @@ static const struct ScriptCommand s_gs196_g0_s0_evt0_sref_script[] = { /* 0x8248 LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x02, 0x00, 0x001e, 0x0000000c, 0x00000000, NULL }, COND_EQUAL(-1, /* to label */ 1), @@ -73,7 +73,7 @@ static const struct ScriptCommand s_gs196_g0_s0_evt1_sref_script[] = { /* 0x8248 LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -87,7 +87,7 @@ static const struct ScriptCommand s_gs196_g0_s0_evt1_sref_script[] = { /* 0x8248 LABEL(4), /* = 0x04 */ JUMP_SCRIPT(END_TALK), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x01, 0x00, 0x001e, 0x000000c3, 0x00000000, NULL }, HALT, }; @@ -174,7 +174,7 @@ static const struct ScriptCommand s_gs196_g1_s0_lives0_dlg0[] = { /* 0x82491e4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But we almost made it.{WAIT_PRESS}\nLet's give it our best again!")), VARIANT_DEFAULT(_(" But we came close.{WAIT_PRESS}\nLet's keep doing our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d09p03_station.h b/src/data/ground/ground_data_d09p03_station.h index 0498880e0..1f1f69ee3 100644 --- a/src/data/ground/ground_data_d09p03_station.h +++ b/src/data/ground/ground_data_d09p03_station.h @@ -52,7 +52,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _("Urggggh!")), MSG_NPC(2, _(" I'm not done!\nI'm not finished yet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(460), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -67,7 +67,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT(/* == */ 3, _(" We're not here to cause\nany trouble.")), VARIANT_DEFAULT(_(" Wait! Listen!")), VARIANT_DEFAULT(_(" We're not here to cause\ntrouble.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" We came here because we\nwere chased here.")), @@ -85,12 +85,12 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT_DEFAULT(_(" Natural calamities are\noccurring all over the place.")), VARIANT_DEFAULT(_(" We're fugitives now, so\nwe can't do anything...")), VARIANT_DEFAULT(_(" But we want to help other\nPokémon that are suffering from these\nnatural disasters.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nDo you say that sincerely?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -100,19 +100,19 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT(/* == */ 3, _(" If you think I'm lying...{WAIT_PRESS}\nPlease, look at my eyes!")), VARIANT_DEFAULT(_(" It's true!\nPlease believe me!")), VARIANT_DEFAULT(_(" If you think I'm lying...{WAIT_PRESS}\nLook at my eyes!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), MSG_NPC(2, _(" ......")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_NPC(1, _(" ............")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_NPC(2, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_NPC(1, _(" ....................................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gyaaaaaah!") }, @@ -128,18 +128,18 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * { 0x28, 0x01, 0x0005, 0x00000005, 0x00ffffff, NULL }, { 0x27, 0x01, 0x0005, 0x0000000a, 0x00ffffff, NULL }, WAIT(90), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), CALL_SCRIPT(SPREE_START_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Aiyiyiyi!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SPREE_END_FUNC), WAIT(15), MSG_NPC(2, _(" ............{WAIT_PRESS}Fine.")), MSG_NPC(2, _(" I trust that you aren't lying.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(470), @@ -153,14 +153,14 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT(/* == */ 3, _(" I thought my knees turned\nto jelly.")), VARIANT_DEFAULT(_(" Whew... That was scary...")), VARIANT_DEFAULT(_(" It felt like my knees turned\nto jelly.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), MSG_NPC(2, _(" You may pass.")), MSG_NPC(2, _(" Get through Mt. Blaze.")), MSG_NPC(2, _(" And...{WAIT_PRESS}\nPromise me this.")), MSG_NPC(2, _(" Promise me that you will\nfind the cause of the calamities that\nwrack our world...")), MSG_NPC(2, _(" And stop the disasters\nfrom sowing more destruction and\nsuffering.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -168,7 +168,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT(/* == */ 1, _(" ...Of course, we can't get\nto that right away, but...")), VARIANT_DEFAULT(_(" OK. I promise.")), VARIANT_DEFAULT(_(" ...Of course, that's not\npossible right now, but...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gyaaaaah!") }, WAIT(10), @@ -183,7 +183,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * { 0x28, 0x01, 0x0005, 0x00000005, 0x00ffffff, NULL }, { 0x27, 0x01, 0x0005, 0x0000000a, 0x00ffffff, NULL }, WAIT(90), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000007), @@ -202,14 +202,14 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT_DEFAULT(_(" We're being hunted, so we\ncan't get to it right away...")), VARIANT_DEFAULT(_(" But we're a rescue team.")), VARIANT_DEFAULT(_(" We'll investigate what's\nbehind the natural calamities.{WAIT_PRESS}\nI promise.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ............{WAIT_PRESS}\nI will hold you to that promise.")), MSG_NPC(2, _(" You've made me believe that\nyou will honor that promise.")), MSG_NPC(2, _(" If you do not forget...{WAIT_PRESS}\nthe courage you showed in facing me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(474), @@ -218,27 +218,27 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(JUMP_SURPRISE_FUNC), WAIT(80), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Waaaah!\nIs...is there anything else?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SPREE_END_FUNC), WAIT(15), MSG_NPC(2, _(" No.")), MSG_NPC(2, _(" I was only preparing to\ntake off.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SWEAT_FUNC), WAIT(15), PORTRAIT_REP(0x0001, 0x00000002), { 0x34, 0x00, 0x0001, 0x00000000, 0x00000000, _(" Oh...\n(Does it need to do that?)") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" Farewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Gyaaaaaaaah!") }, @@ -246,7 +246,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, WAIT(100), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, WAIT(90), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -272,7 +272,7 @@ static const struct ScriptCommand s_gs197_g1_s0_lives0_dlg0[] = { /* 0x82498b0 * VARIANT(/* == */ 3, _(" Anyway...{WAIT_PRESS}\nWe should get off Mt. Blaze, too.")), VARIANT_DEFAULT(_(" But I'm glad {NAME_2}\nunderstood us. That was key.")), VARIANT_DEFAULT(_(" Anyway...{WAIT_PRESS}\nLet's get off Mt. Blaze ourselves.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), BGM_FADEOUT(150), { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d10p01_station.h b/src/data/ground/ground_data_d10p01_station.h index e49ab334a..4b54b7a51 100644 --- a/src/data/ground/ground_data_d10p01_station.h +++ b/src/data/ground/ground_data_d10p01_station.h @@ -163,19 +163,19 @@ static const struct ScriptCommand s_gs198_g1_s0_lives0_dlg0[] = { /* 0x824c290 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...So, we do have to get\nthrough this, huh?")), VARIANT_DEFAULT(_(" OK.\nWe don't have a choice--we have to\nget through this place.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(0), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" It's going to be awfully cold.\nIt's not anywhere I really want to go...")), VARIANT_DEFAULT(_(" It will be horribly cold.\nI'd rather not go if I didn't have to...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But there's no point in us\nsticking around here forever...")), VARIANT(/* == */ 1, _(" We can only go forward!{WAIT_PRESS}\nWe'll just have to go for it and get\nthrough this, {NAME_0}!")), VARIANT_DEFAULT(_(" But hiding out in this area\nisn't the answer either...")), VARIANT_DEFAULT(_(" We can only go forward.{WAIT_PRESS}\nWe'll just have to keep our spirits up\nand keep going, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000006, 0x00000000, NULL }, WAIT(10), { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, @@ -242,7 +242,7 @@ static const struct ScriptCommand s_gs198_g2_s1_lives0_dlg0[] = { /* 0x824c7d4 * VARIANT(/* == */ 1, _(" All right.\nI'll wait till you're ready.")), VARIANT_DEFAULT(_(" Huh? Not yet?")), VARIANT_DEFAULT(_(" OK.\nI'll wait while you get ready.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), JUMP_SCRIPT(END_TALK), LABEL(2), /* = 0x02 */ @@ -256,7 +256,7 @@ static const struct ScriptCommand s_gs198_g2_s1_lives0_dlg0[] = { /* 0x824c7d4 * VARIANT(/* == */ 1, _(" It's freezing cold, but let's\ngive it our best!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), VARIANT_DEFAULT(_(" It's going to be freezing\ncold, but let's try our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 7), COND_EQUAL(3, /* to label */ 7), @@ -283,7 +283,7 @@ static const struct ScriptCommand s_gs198_g2_s1_lives0_dlg0[] = { /* 0x824c7d4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Sure thing!\nLet's roll on out!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 9), COND_EQUAL(3, /* to label */ 9), @@ -365,7 +365,7 @@ static const struct ScriptCommand s_gs198_g3_s0_lives0_dlg0[] = { /* 0x824d0c0 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is a tough place...")), @@ -374,7 +374,7 @@ static const struct ScriptCommand s_gs198_g3_s0_lives0_dlg0[] = { /* 0x824d0c0 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But let's give it our best\nand get through this, {NAME_0}!")), VARIANT_DEFAULT(_(" But let's keep trying our\nbest and get through this, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -428,7 +428,7 @@ static const struct ScriptCommand s_gs198_g4_s0_lives0_dlg0[] = { /* 0x824d500 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hmmm...{WAIT_PRESS}\nWell, that didn't go well.")), VARIANT_DEFAULT(_(" Hmm...{WAIT_PRESS}\nWe didn't do well at all...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That {NAME_2}...\nHe's one tough customer.")), @@ -437,7 +437,7 @@ static const struct ScriptCommand s_gs198_g4_s0_lives0_dlg0[] = { /* 0x824d500 * VARIANT_DEFAULT(_(" That Pokémon,\n{NAME_2}, is pretty tough.")), VARIANT_DEFAULT(_(" But why are we forbidden\nfrom entering this forest?")), VARIANT_DEFAULT(_(" It makes no difference.\n{NAME_0}, let's try our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -485,7 +485,7 @@ static const struct ScriptCommand s_gs198_g5_s0_lives0_dlg0[] = { /* 0x824d980 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" What the...?{WAIT_PRESS}\nIsn't this where we started from?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -500,7 +500,7 @@ static const struct ScriptCommand s_gs198_g5_s0_lives0_dlg0[] = { /* 0x824d980 * VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nI guess that path we took just loops back\nto where it started.")), VARIANT_DEFAULT(_(" It looks like we have to get\nthrough the {COLOR YELLOW_D}Frosty Forest{RESET} to move on.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -555,7 +555,7 @@ static const struct ScriptCommand s_gs198_g6_s0_lives0_dlg0[] = { /* 0x824ded4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -563,7 +563,7 @@ static const struct ScriptCommand s_gs198_g6_s0_lives0_dlg0[] = { /* 0x824ded4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is one harsh place,\nbut let's bear down and get through,\n{NAME_0}!")), VARIANT_DEFAULT(_(" This is a harsh place,\nso let's do our best to get through,\n{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, diff --git a/src/data/ground/ground_data_d10p02_station.h b/src/data/ground/ground_data_d10p02_station.h index 4cab9971f..4812c0380 100644 --- a/src/data/ground/ground_data_d10p02_station.h +++ b/src/data/ground/ground_data_d10p02_station.h @@ -55,7 +55,7 @@ static const struct ScriptCommand s_gs199_g0_s0_evt0_sref_script[] = { /* 0x824e LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x02, 0x00, 0x001e, 0x0000000e, 0x00000000, NULL }, COND_EQUAL(-1, /* to label */ 1), @@ -73,7 +73,7 @@ static const struct ScriptCommand s_gs199_g0_s0_evt1_sref_script[] = { /* 0x824e LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -87,7 +87,7 @@ static const struct ScriptCommand s_gs199_g0_s0_evt1_sref_script[] = { /* 0x824e LABEL(4), /* = 0x04 */ JUMP_SCRIPT(END_TALK), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x01, 0x00, 0x001e, 0x000000c6, 0x00000000, NULL }, HALT, }; @@ -171,7 +171,7 @@ static const struct ScriptCommand s_gs199_g1_s0_lives0_dlg0[] = { /* 0x824eea4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hmm...{WAIT_PRESS}\nWell, that didn't go well.")), VARIANT_DEFAULT(_(" Hmm...{WAIT_PRESS}\nThat didn't work out...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), @@ -182,7 +182,7 @@ static const struct ScriptCommand s_gs199_g1_s0_lives0_dlg0[] = { /* 0x824eea4 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But let's give it our best\nand get through this, {NAME_0}!")), VARIANT_DEFAULT(_(" But let's keep trying our\nbest and get through this, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -239,7 +239,7 @@ static const struct ScriptCommand s_gs199_g2_s0_lives0_dlg0[] = { /* 0x824f33c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hmmm...{WAIT_PRESS}\nWell, that didn't go well.")), VARIANT_DEFAULT(_(" Hmm...{WAIT_PRESS}\nWe didn't do well at all...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), @@ -250,7 +250,7 @@ static const struct ScriptCommand s_gs199_g2_s0_lives0_dlg0[] = { /* 0x824f33c * VARIANT_DEFAULT(_(" That Pokémon,\n{NAME_2}, is pretty tough.")), VARIANT_DEFAULT(_(" But why are we forbidden\nfrom entering this forest?")), VARIANT_DEFAULT(_(" It makes no difference.\n{NAME_0}, let's try our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d10p03_station.h b/src/data/ground/ground_data_d10p03_station.h index 6b1692340..41e590073 100644 --- a/src/data/ground/ground_data_d10p03_station.h +++ b/src/data/ground/ground_data_d10p03_station.h @@ -32,7 +32,7 @@ static const struct ScriptCommand s_gs200_g1_s0_station_sref_script[] = { /* 0x8 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(120), @@ -60,41 +60,41 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * VARIANT_DEFAULT(_(" Please, {NAME_2}!")), VARIANT_DEFAULT(_(" We have to get through.\nNo matter what it takes.")), VARIANT_DEFAULT(_(" Please, let us pass!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, 3, 0), MSG_NPC(2, _(" No!\nI cannot allow your passage!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Why?{WAIT_PRESS}\nWhy can't we pass?")), VARIANT_DEFAULT(_(" Why?{WAIT_PRESS}\nWhy can't we pass?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" The frigid forest's air...")), MSG_NPC(2, _(" It has warmed considerably\nin recent times.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" W-warmed up?\n(I'm still freezing, but...)")), VARIANT(/* == */ 3, _(" W-warmed up?\n(I'm still freezing, but...)")), VARIANT_DEFAULT(_(" W-warmed up?\n(I'm still freezing, but...)")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The flow of frigid air has\nbeen disturbed in the forest.{WAIT_PRESS}\nSnow has started to melt.")), MSG_NPC(2, _(" Snow is melting.\nSnow that has never melted before.")), MSG_NPC(2, _(" This has never happened,\neven once.")), MSG_NPC(2, _(" Then you appeared in the\nforest.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Is this not your doing?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -117,10 +117,10 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * VARIANT_DEFAULT(_(" It isn't our fault that the\nsnow started melting here.")), VARIANT_DEFAULT(_(" It's not just here.{WAIT_PRESS}\nNatural calamities are taking place\neverywhere right now.")), VARIANT_DEFAULT(_(" The forest's frigid airflow\nwould have been disturbed even if we\nhadn't come.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Is that all?{WAIT_PRESS}\nYou expect me to believe that?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(685), { 0x28, 0x01, 0x0005, 0x00000002, 0x00ccccff, NULL }, @@ -133,10 +133,10 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * CALL_SCRIPT(NOTICE_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Waaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" Enough of your foolish talk!{WAIT_PRESS}\nPrepare for your end!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(685), @@ -161,7 +161,7 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(120), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Stop it!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), { 0x27, 0x00, 0x0005, 0x00000028, 0x00ffffff, NULL }, SELECT_ENTITIES(-1, 1), @@ -169,54 +169,54 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" A-Absol!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, -2, 2), MSG_NPC(3, _(" There is nothing false in\nwhat they said.")), MSG_NPC(3, _(" Calamities are indeed\noccurring in nature everywhere.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Is...\nIs that true?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes.")), BGM_FADEIN(150, 114), MSG_NPC(3, _(" I have the ability to sense\nnatural disasters.")), MSG_NPC(3, _(" The calamities taking place\nnow are of a special nature.\nI've never experienced such before.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ............{WAIT_PRESS}\nSo, there are calamities besides this...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}Fine.{WAIT_PRESS}\nI will choose to believe you.")), MSG_NPC(2, _(" You may pass.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" However!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), CALL_SCRIPT(SHOCK_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Waah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" You must try to prevent\nthe calamities from spreading.")), MSG_NPC(2, _(" I'm counting on you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Yup! We promise,\n{NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -225,13 +225,13 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" Whew...\nThat was too close...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Thank you.{WAIT_PRESS}\nYou saved us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, WAIT(30), @@ -239,27 +239,27 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * MSG_NPC(3, _(" ..................")), MSG_NPC(3, _(" Rather than saying thanks,\nfocus on stopping the calamities before\nthey worsen.")), MSG_NPC(3, _(" If they are left unchecked,\nworse will befall us...{WAIT_PRESS}\nMy instinct warns me so.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" Groan...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" I sensed the terrible\npower of the natural calamities...")), MSG_NPC(3, _(" I was led here by my\nfeelings of foreboding...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(3, _(" ............{WAIT_PRESS}\nI think it would be best if we combined\nforces...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(3, _(" I will join you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(463), @@ -267,25 +267,25 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Huh?{WAIT_PRESS}\nYou will? Really?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Really.")), MSG_NPC(3, _(" To put an end to the\ncalamities, cooperation is vital.")), MSG_NPC(3, _(" Let me lend you my powers.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000b), MSG_NPC(1, _(" Sniffle...\nThank you, {NAME_3}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), BGM_STOP, FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_3} joined the team!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x1a, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_3}?")), CHOICE(/* label */ 29, _("*Yes.")), @@ -294,7 +294,7 @@ static const struct ScriptCommand s_gs200_g1_s0_lives0_dlg0[] = { /* 0x824fcb4 * { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(30), /* = 0x1e */ { 0x3b, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d11p01_station.h b/src/data/ground/ground_data_d11p01_station.h index 320670194..4cfa0c072 100644 --- a/src/data/ground/ground_data_d11p01_station.h +++ b/src/data/ground/ground_data_d11p01_station.h @@ -159,7 +159,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * VARIANT_DEFAULT(_(" ...Oh.\nSo something like that happened.")), VARIANT_DEFAULT(_(" {NAME_2} appeared to\nyou...")), VARIANT_DEFAULT(_(" That's why you were\nlooking so stunned earlier.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -170,7 +170,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" And that {NAME_3} is\nat the peak way up there.")), VARIANT_DEFAULT(_(" And that {NAME_3} is up\nat the peak...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -182,7 +182,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * VARIANT_DEFAULT(_(" Sniffle...{WAIT_PRESS}\n{NAME_0}!")), VARIANT_DEFAULT(_(" All the effort we put into\ngetting here...\nIt's finally going to bear fruit!")), VARIANT_DEFAULT(_(" We'll meet {NAME_3}\nand get the truth!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000001), ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" We'll finally clear your\nreputation, {NAME_0}!{WAIT_PRESS}\nThat'll be great!")), @@ -190,7 +190,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * CHOICE(/* label */ 2, _("........................")), CHOICE(/* label */ 2, _("........................")), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -204,7 +204,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * VARIANT_DEFAULT(_(" It's only natural that you\nwould be scared of meeting {NAME_3},\n{NAME_0}.")), VARIANT_DEFAULT(_(" The heartless human who\nabandoned {NAME_2}...{WAIT_PRESS}\nIt may be you...")), VARIANT_DEFAULT(_(" I can understand how\nyou could think that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000000), ASK3(FALSE, /*default*/ -1, /* speaker */ 1, _(" But that's impossible.\nYou're not that human--I'm sure.")), CHOICE(/* label */ 4, _("How can you say that?")), @@ -215,7 +215,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" ...I wonder why?{WAIT_PRESS}\nI really don't know why.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But it doesn't matter now.{WAIT_PRESS}\n{NAME_0}, you're a really good sort.")), @@ -238,7 +238,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * VARIANT(/* == */ 1, _(" This is kind of weird,\nisn't it?{WAIT_PRESS}\nBut I believe in you, {NAME_0}.")), VARIANT(/* == */ 3, _(" It is weird, isn't it?{WAIT_PRESS}\nBut I believe in you, {NAME_0}.")), VARIANT_DEFAULT(_(" It is strange, isn't it?{WAIT_PRESS}\nBut, {NAME_0}, I believe in you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -249,7 +249,7 @@ static const struct ScriptCommand s_gs201_g1_s0_lives0_dlg0[] = { /* 0x8252548 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}, let's give it\nour best!")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -335,7 +335,7 @@ static const struct ScriptCommand s_gs201_g2_s1_lives0_dlg0[] = { /* 0x8253910 * LABEL(3), /* = 0x03 */ MSG_NPC(1, _(" Hmm? Is that so?")), MSG_NPC(1, _(" OK.\nLet's go when you're ready.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), JUMP_SCRIPT(END_TALK), LABEL(2), /* = 0x02 */ @@ -349,7 +349,7 @@ static const struct ScriptCommand s_gs201_g2_s1_lives0_dlg0[] = { /* 0x8253910 * VARIANT(/* == */ 1, _(" We want the peak.\nLet's give it our best!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), VARIANT_DEFAULT(_(" Let's do our best to reach\nthe peak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 7), COND_EQUAL(3, /* to label */ 7), @@ -377,7 +377,7 @@ static const struct ScriptCommand s_gs201_g2_s1_lives0_dlg0[] = { /* 0x8253910 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right!\nLet's roll out!")), VARIANT_DEFAULT(_(" OK!\nLet's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CJUMP_UNK_C8(34), COND_EQUAL(4, /* to label */ 9), COND_EQUAL(3, /* to label */ 9), @@ -472,7 +472,7 @@ static const struct ScriptCommand s_gs201_g3_s0_lives0_dlg0[] = { /* 0x82541ac * VARIANT(/* == */ 1, _(" But let's storm our way\nto the peak, {NAME_0}!")), VARIANT_DEFAULT(_(" This is a seriously tough\nchallenge, but...")), VARIANT_DEFAULT(_(" Let's be sure to reach the\npeak, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -527,7 +527,7 @@ static const struct ScriptCommand s_gs201_g4_s0_lives0_dlg0[] = { /* 0x82545ec * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" What the...?{WAIT_PRESS}\nIsn't this where we started from?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -542,7 +542,7 @@ static const struct ScriptCommand s_gs201_g4_s0_lives0_dlg0[] = { /* 0x82545ec * VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nI guess that path we took just loops back\nto where it started.")), VARIANT_DEFAULT(_(" It looks like we have to get\nover {COLOR YELLOW_D}Mt. Freeze{RESET} to move on.")), VARIANT_DEFAULT(_(" {NAME_0}, let's do our\nbest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -597,7 +597,7 @@ static const struct ScriptCommand s_gs201_g5_s0_lives0_dlg0[] = { /* 0x8254af8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Urrggh...{WAIT_PRESS}\nWe couldn't get through...")), VARIANT_DEFAULT(_(" Ouch...{WAIT_PRESS}\nWe couldn't break through...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -605,7 +605,7 @@ static const struct ScriptCommand s_gs201_g5_s0_lives0_dlg0[] = { /* 0x8254af8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is one harsh place,\nbut let's bear down and get through,\n{NAME_0}!")), VARIANT_DEFAULT(_(" This is a harsh place,\nso let's do our best to get through,\n{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, RET, @@ -661,7 +661,7 @@ static const struct ScriptCommand s_gs201_g6_s0_lives0_dlg0[] = { /* 0x8254f30 * { 0x91, 0x04, 0x000a, 0x00000007, 0x00000000, NULL }, MSG_NPC(2, _(" You're going to {COLOR YELLOW_D}Mt. Freeze{RESET}?")), MSG_NPC(2, _(" Don't forget to take me,\nkekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d11p02_station.h b/src/data/ground/ground_data_d11p02_station.h index 5a4076df2..857b1d20e 100644 --- a/src/data/ground/ground_data_d11p02_station.h +++ b/src/data/ground/ground_data_d11p02_station.h @@ -57,7 +57,7 @@ static const struct ScriptCommand s_gs202_g0_s0_evt0_sref_script[] = { /* 0x8255 LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), JUMPIF_ARRAY(RESCUE_SCENARIO_JOB_LIST, 29, /* to label */ 2), { 0x02, 0x00, 0x001e, 0x00000010, 0x00000000, NULL }, @@ -80,7 +80,7 @@ static const struct ScriptCommand s_gs202_g0_s0_evt1_sref_script[] = { /* 0x8255 LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -94,7 +94,7 @@ static const struct ScriptCommand s_gs202_g0_s0_evt1_sref_script[] = { /* 0x8255 LABEL(4), /* = 0x04 */ JUMP_SCRIPT(END_TALK), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x01, 0x00, 0x001e, 0x000000c9, 0x00000000, NULL }, HALT, }; @@ -191,7 +191,7 @@ static const struct ScriptCommand s_gs202_g1_s0_lives0_dlg0[] = { /* 0x8255f00 * VARIANT(/* == */ 1, _(" Let's storm our way to the\ntop this time, {NAME_0}!")), VARIANT_DEFAULT(_(" But we were very close!")), VARIANT_DEFAULT(_(" Let's be sure to reach the\npeak this time, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d11p03_station.h b/src/data/ground/ground_data_d11p03_station.h index 68b42800d..57cedfbbf 100644 --- a/src/data/ground/ground_data_d11p03_station.h +++ b/src/data/ground/ground_data_d11p03_station.h @@ -70,12 +70,12 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000041), MSG_NPC(2, _(" Kekeh! Here at last!\nWe're at the peak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Hey, Ninetales!{WAIT_PRESS}\nWhere are you?! Come out!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), FANFARE_PLAY2(506), { 0x28, 0x01, 0x0005, 0x0000003c, 0x00ffffff, NULL }, @@ -89,13 +89,13 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * { 0x91, 0x04, 0x000a, 0x00000005, 0x00000000, NULL }, MSG_NPC(2, _(" Kekeh!\nLong time, Ninetales!")), MSG_NPC(2, _(" Recognize me?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" ............{WAIT_PRESS}What do you want?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -104,7 +104,7 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * MSG_NPC(2, _(" Kekeh!\nYou want to know what I want?!")), MSG_NPC(2, _(" Look at me!\nIsn't it your fault that I look like this?!")), MSG_NPC(2, _(" What, you can't even begin\nby apologizing?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" It is not my fault.")), MSG_NPC(3, _(" It all arose because you\nfled, isn't that so?")), @@ -112,34 +112,34 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * MSG_NPC(3, _(" It was I who cast the curse.")), MSG_NPC(3, _(" But you became\n{POKEMON_2} because you\nabandoned Gardevoir.")), MSG_NPC(3, _(" It was Gardevoir that bore\nmy curse, not you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000043), MSG_NPC(2, _(" Keh! You're quibbling!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" Anyway...{WAIT_PRESS}\nAbout that curse...{WAIT_PRESS}\nHow about lifting it already?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(464), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" You...{WAIT_PRESS}\nYou have the nerve to ask that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Keh! That's right!")), MSG_NPC(2, _(" Imagine! Me asking anyone\nfor a favor!{WAIT_PRESS}\nI'm breaking out in hives at the thought!")), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" Turn me down, and I'll\nKO you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ...Well, it won't be me\ndoing the fighting, but those behind me...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), CALL_SCRIPT(SHOCK_FUNC), @@ -148,19 +148,19 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" I'll see this curse lifted\neven if it means taking you on!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Humph. I regret to inform...{WAIT_PRESS}\nEven if you could defeat me, the curse\nwould remain.")), MSG_NPC(3, _(" I don't have the power to\nlift curses.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" Gegeh!\nWhat are you saying?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" We {POKEMON_3} are known\nto be vengeful in the extreme.")), MSG_NPC(3, _(" Once we cast a curse,\nit is final...")), @@ -168,7 +168,7 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * MSG_NPC(3, _(" I became enraged at your\ntreacherous heart...{WAIT_PRESS}\nAnd on it, I laid my curse.")), MSG_NPC(3, _(" For that reason, depending\non your heart now, the curse may be\nlifted.")), MSG_NPC(3, _(" Take this with you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -176,13 +176,13 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} received the\n{CENTER_ALIGN}{COLOR GREEN_I}9-Tail Crest{RESET} from {NAME_3}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Gardevoir's physical form\nis sealed within the {COLOR YELLOW_D}Murky Cave{RESET}.")), MSG_NPC(3, _(" The seal can be broken\nby that stone.{WAIT_PRESS}\nThe {COLOR GREEN_I}9-Tail Crest{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -194,7 +194,7 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Kekeh!\nHow do you like that?\nIt's ridiculously simple!")), MSG_NPC(2, _(" There was a way to lift\nthe curse after all!{WAIT_PRESS}\nYou had me scared! Kekeke!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -202,7 +202,7 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Hey!\nI kept you waiting!\nLet's get home! Kekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(150), { 0x53, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -215,7 +215,7 @@ static const struct ScriptCommand s_gs203_g1_s0_lives0_dlg0[] = { /* 0x82566f8 * MSG_NPC(3, _(" That oaf...{WAIT_PRESS}\nHe has changed in many ways...")), MSG_NPC(3, _(" But he is wavering...{WAIT_PRESS}\nHis old and new emotions are clashing\nwithin his heart...")), MSG_NPC(3, _(" If he would only realize that\nupon reaching the {COLOR YELLOW_D}Murky Cave{RESET}...{WAIT_PRESS}\nIf he does not...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -343,14 +343,14 @@ static const struct ScriptCommand s_gs203_g2_s0_lives0_dlg0[] = { /* 0x8257ee8 * VARIANT_DEFAULT(_(" We've finally arrived.")), VARIANT_DEFAULT(_(" This is the summit.{WAIT_PRESS}\n...Isn't it?")), VARIANT_DEFAULT(_(" I wonder where\n{NAME_5} is?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" There they are!{WAIT_PRESS}\nI've spotted {NAME_0}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" All right!\nI see them!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, @@ -360,18 +360,18 @@ static const struct ScriptCommand s_gs203_g2_s0_lives0_dlg0[] = { /* 0x8257ee8 * BGM_SWITCH(10), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" A-{NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" It's about time.\nWe finally caught up to you.")), MSG_NPC(4, _(" Your fugitive act dragged\nus all the way out here...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Pipe down, {NAME_4}.")), MSG_NPC(3, _(" We can finally settle\nthings here.")), MSG_NPC(3, _(" I can barely contain myself.\nI'm itching for a fight.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -379,7 +379,7 @@ static const struct ScriptCommand s_gs203_g2_s0_lives0_dlg0[] = { /* 0x8257ee8 * PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_1}.{WAIT_PRESS}\nDon't think badly of me.")), MSG_NPC(3, _(" I don't know how to show\nmercy.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -390,7 +390,7 @@ static const struct ScriptCommand s_gs203_g2_s0_lives0_dlg0[] = { /* 0x8257ee8 * MSG_NPC(2, _(" The role of a rescue team\nis to help bring peace.")), MSG_NPC(2, _(" We will...{WAIT_PRESS}\ncrush you with every shred of our power!")), MSG_NPC(2, _(" Get them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -655,7 +655,7 @@ static const struct ScriptCommand s_gs203_g3_s0_station_sref_script[] = { /* 0x8 { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(120), @@ -676,7 +676,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * BGM_FADEOUT(30), FANFARE_PLAY2(466), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Cease this at once!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x27, 0x00, 0x0001, 0x0000001e, 0x00ffffff, NULL }, SELECT_ENTITIES(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -687,13 +687,13 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000041), PORTRAIT_POS(2, 0, 3), MSG_NPC(2, _(" Wuh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" ...!{WAIT_PRESS}\n{NAME_5}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -703,15 +703,15 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * CALL_SCRIPT(JUMP_SURPRISE_FUNC), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0003, 0x00000041), MSG_NPC(3, _(" W-what?!{WAIT_PRESS}\n{NAME_5}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Th-that's {NAME_5}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000041), MSG_NPC(4, _(" The legend...\nIt was real...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -719,21 +719,21 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * PORTRAIT_POS(5, 1, -1), BGM_SWITCH(6), MSG_NPC(5, _(" Cease fighting at once,\n{NAME_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" They are...{WAIT_PRESS}\nmy guests.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Tell us, {NAME_5}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Who was the human that\nappeared in your legend?")), MSG_NPC(2, _(" No, even before that, was\nthe legend itself a true event?")), MSG_NPC(2, _(" Depending on your reply...{WAIT_PRESS}\nI may have no choice but to eliminate\nthem!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Whether they consider my\ncurse to be a legend or not...")), MSG_NPC(5, _(" I care not.")), @@ -745,35 +745,35 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * MSG_NPC(5, _(" They abandoned\n{NAME_6} and fled.")), MSG_NPC(5, _(" The human eventually\nbecame a Pokémon.")), MSG_NPC(5, _(" Transformed into a\nPokémon, the human...{WAIT_PRESS}\nThe human lives on.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(150), MSG_NPC(2, _(" ...And that human would be?")), MSG_NPC(2, _(" Who is the human that you\nspeak of?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" {NAME_0}...")), MSG_NPC(5, _(" You may relax.\nIt is not you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(24), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000b), MSG_NPC(1, _(" ............{WAIT_PRESS}Just now...{WAIT_PRESS}\n...What did you just say?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" {NAME_0} is not the\nhuman that appears in the legend.\nThat is what I said.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ...Wh-{WAIT_PRESS}what...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -782,7 +782,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT(/* == */ 1, _(" ............{WAIT_PRESS}\nWhat's wrong with me?{WAIT_PRESS}\nI'm too tensed up to move...")), VARIANT(/* == */ 3, _(" ............{WAIT_PRESS}\nThere's something wrong...{WAIT_PRESS}\nI'm too tensed up to move...")), VARIANT_DEFAULT(_(" ............{WAIT_PRESS}\nWhat's happening to me...?{WAIT_PRESS}\nI'm too tensed up to move...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Oo-oof...")), @@ -790,7 +790,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" ...Oof...")), { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -798,7 +798,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT(/* == */ 1, _(" ..................{WAIT_PRESS}Whew...")), VARIANT_DEFAULT(_(" Deep breaths...\nIn... Out... In... Out... In... Out...")), VARIANT_DEFAULT(_(" ..................{WAIT_PRESS}Whew...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -806,7 +806,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Oh, wow, awesome!")), VARIANT_DEFAULT(_(" Oh, wow, fantastic!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(15), { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, @@ -827,14 +827,14 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT(/* == */ 3, _(" I knew it!{WAIT_PRESS}\n{NAME_0} couldn't possibly be\nanyone that terrible!")), VARIANT_DEFAULT(_(" That's great!{WAIT_PRESS}\nI knew that {NAME_0} wasn't involved!")), VARIANT_DEFAULT(_(" I knew it!{WAIT_PRESS}\nThere's no way that {NAME_0} would\ndo those terrible things!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" I have another thing to say.")), MSG_NPC(5, _(" It is true that I foretold\nof the world's balance becoming unstable...")), MSG_NPC(5, _(" However, that human\nbecoming a Pokémon and the world's\nbalance are not linked in any way.")), MSG_NPC(5, _(" The cause of the natural\ncalamities...{WAIT_PRESS}\nIt exists elsewhere.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -844,7 +844,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT(/* == */ 1, _(" You doubted and hounded\n{NAME_0}!")), VARIANT_DEFAULT(_(" Hey, you!{WAIT_PRESS}\nYou were wrong!")), VARIANT_DEFAULT(_(" You were wrong to hound\nand harass {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -853,28 +853,28 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ...Uh...er...{WAIT_PRESS}\nWe...uh...apologize.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" ...We're sorry.\nWe got worked up by that Gengar.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000042), MSG_NPC(3, _(" No.{WAIT_PRESS}\nI suspected Gengar right from the start.")), MSG_NPC(3, _(" {NAME_0} just doesn't\nlook like the treacherous type!{WAIT_PRESS}\nHahahahaha...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" It'd be nice if I could\nbelieve that...")), VARIANT_DEFAULT(_(" If only that were true...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" But I must say...")), MSG_NPC(2, _(" You are to be commended\nfor prevailing through this cruel\njourney and discovering the truth.")), MSG_NPC(2, _(" Impressive, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -884,7 +884,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT(/* == */ 1, _(" Hahaha! Isn't this great?\nI was convinced I was right!")), VARIANT(/* == */ 3, _(" Hahaha! This is fantastic!\nI knew I wasn't wrong!")), VARIANT_DEFAULT(_(" Hahaha! Excellent!\nI knew I was right!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -903,7 +903,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * VARIANT_DEFAULT(_(" I understand that\n{NAME_0} isn't the human from that\nlegend...")), VARIANT_DEFAULT(_(" Then, how do you explain\n{NAME_0} becoming a Pokémon?")), VARIANT_DEFAULT(_(" {NAME_0}...{WAIT_PRESS}\nWho are you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(453), { 0x97, 0x00, 0x0002, 0x00000001, 0x00000003, NULL }, @@ -921,11 +921,11 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * { 0x91, 0x04, 0x0002, 0x00000005, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Waah! The ground's heaving!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" ...Qu...quake?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_FADEIN(60, 9), MSG_NPC(5, _(" The world's crust is\nshifting.")), @@ -933,7 +933,7 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * MSG_NPC(5, _(" And...{WAIT_PRESS}\nThe shifting of the ground...")), MSG_NPC(5, _(" It will awaken the beast\nthat embodies the ground...\nThe beast that slept deep underground...")), MSG_NPC(5, _(" Groudon will be awakened!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -944,18 +944,18 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * WAIT(5), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" What?!\nGroudon is rising?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(4, _(" Groudon?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000004), MSG_NPC(1, _(" What is that?{WAIT_PRESS}\nWhat's a Groudon?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -963,39 +963,39 @@ static const struct ScriptCommand s_gs203_g3_s0_lives0_dlg0[] = { /* 0x8259658 * MSG_NPC(2, _(" A legendary Pokémon that\nhas been spoken of only in myths.")), MSG_NPC(2, _(" It is the Pokémon that\nraised the land masses and created\ncontinents...")), MSG_NPC(2, _(" It is said to have taken to\nsleep after catastrophic battles with\nits archenemy Kyogre.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" If Groudon were to get\nloose, there would be chaos.")), MSG_NPC(5, _(" It must be stopped!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" We will go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So will we!")), VARIANT(/* == */ 3, _(" We'll go too!")), VARIANT_DEFAULT(_(" We'll go too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" No.\nYou must remain behind.")), MSG_NPC(2, _(" Groudon is far more\npowerful than any Pokémon you have\nfaced.")), MSG_NPC(2, _(" Leave it to us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" That's how it goes.\nYou go back to your rescue team base\nfor a well-earned rest.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(4, _(" Don't worry about us.\nWe didn't get our Gold Rank the easy way.")), MSG_NPC(4, _(" We'll get the job done, and\nwe'll be back before you know it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Fine.\nWe're off to quell Groudon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_STOP2(453), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d12p01_station.h b/src/data/ground/ground_data_d12p01_station.h index 9e1d3a56f..4444406d4 100644 --- a/src/data/ground/ground_data_d12p01_station.h +++ b/src/data/ground/ground_data_d12p01_station.h @@ -116,7 +116,7 @@ static const struct ScriptCommand s_gs204_g1_s0_lives0_dlg0[] = { /* 0x825d228 * VARIANT_DEFAULT(_(" This must be it...{WAIT_PRESS}\n{NAME_2} is in this underground\ncavern.")), VARIANT_DEFAULT(_(" Whew...\nLook at the streams of lava.")), VARIANT_DEFAULT(_(" It's going to be scorching\nhot in the dungeon, I think.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(5), { 0x93, 0x04, 0x000b, 0x00000022, 0x00000000, NULL }, @@ -128,7 +128,7 @@ static const struct ScriptCommand s_gs204_g1_s0_lives0_dlg0[] = { /* 0x825d228 * VARIANT(/* == */ 3, _(" Let's get going and try our\nbest!")), VARIANT_DEFAULT(_(" There should be other\nrescue teams making their way through\neven now.")), VARIANT_DEFAULT(_(" Let's try our best like\nalways!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -177,7 +177,7 @@ static const struct ScriptCommand s_gs204_g2_s0_lives0_dlg0[] = { /* 0x825d818 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This time, we'll rescue\n{NAME_2}'s team!\nLet's get it done!")), VARIANT_DEFAULT(_(" This time, we have to\nrescue {NAME_2}'s team!\nLet's not blow it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, WAIT(15), diff --git a/src/data/ground/ground_data_d12p02_station.h b/src/data/ground/ground_data_d12p02_station.h index 76eefb2dc..d7e8dbe8d 100644 --- a/src/data/ground/ground_data_d12p02_station.h +++ b/src/data/ground/ground_data_d12p02_station.h @@ -50,7 +50,7 @@ static const struct ScriptCommand s_gs205_g0_s0_evt0_sref_script[] = { /* 0x825d LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x02, 0x00, 0x001e, 0x00000012, 0x00000000, NULL }, COND_EQUAL(-1, /* to label */ 1), @@ -67,7 +67,7 @@ static const struct ScriptCommand s_gs205_g0_s0_evt1_sref_script[] = { /* 0x825d LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -158,7 +158,7 @@ static const struct ScriptCommand s_gs205_g1_s0_lives0_dlg0[] = { /* 0x825e344 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But we didn't have far to\ngo!{WAIT_PRESS}\nLet's give it our best!")), VARIANT_DEFAULT(_(" But we were very close!{WAIT_PRESS}\nLet's keep trying our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d12p04_station.h b/src/data/ground/ground_data_d12p04_station.h index 489eb0416..8984d670f 100644 --- a/src/data/ground/ground_data_d12p04_station.h +++ b/src/data/ground/ground_data_d12p04_station.h @@ -34,7 +34,7 @@ static const struct ScriptCommand s_gs206_g1_s0_station_sref_script[] = { /* 0x8 { 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.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(120), @@ -71,7 +71,7 @@ static const struct ScriptCommand s_gs206_g1_s0_lives0_dlg0[] = { /* 0x825eb18 * WAIT(20), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _("Grgaaaaaah!") }, WAIT(120), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), FANFARE_PLAY2(499), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -86,12 +86,12 @@ static const struct ScriptCommand s_gs206_g1_s0_lives0_dlg0[] = { /* 0x825eb18 * { 0x91, 0x04, 0x000a, 0x00000005, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" Look! It's {NAME_3}!{WAIT_PRESS}\n{NAME_4} and {NAME_5} too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" Urrgggh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -103,13 +103,13 @@ static const struct ScriptCommand s_gs206_g1_s0_lives0_dlg0[] = { /* 0x825eb18 * WAIT(10), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0004, 0x00000043), MSG_NPC(4, _(" Did you do it?\n{NAME_2}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Are you all right?")), VARIANT_DEFAULT(_(" Are you OK?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -117,17 +117,17 @@ static const struct ScriptCommand s_gs206_g1_s0_lives0_dlg0[] = { /* 0x825eb18 * PORTRAIT(PLACEMENT_TOP_FLIP, 0x0003, 0x00000000), MSG_NPC(3, _(" Yes, fine.")), MSG_NPC(3, _(" We will be fine.\nBut we must get out immediately.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0005, 0x00000005), MSG_NPC(1, _(" What about {NAME_2}?{WAIT_PRESS}\nWill it be OK?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Your concern is unneeded.\nIt will awaken soon enough.")), MSG_NPC(3, _(" It had lost control only\nbecause it was enraged from having its\nsleep disturbed.")), MSG_NPC(3, _(" It should calm down.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(453), { 0x97, 0x00, 0x0002, 0x00000001, 0x00000003, NULL }, WAIT(30), @@ -138,10 +138,10 @@ static const struct ScriptCommand s_gs206_g1_s0_lives0_dlg0[] = { /* 0x825eb18 * WAIT(30), PORTRAIT_REP(0x0005, 0x0000000c), MSG_NPC(1, _(" Waah...{WAIT_PRESS}\nAnother quake!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Out! Quickly!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d13p01_station.h b/src/data/ground/ground_data_d13p01_station.h index fd532e980..d3033d2b0 100644 --- a/src/data/ground/ground_data_d13p01_station.h +++ b/src/data/ground/ground_data_d13p01_station.h @@ -56,7 +56,7 @@ static const struct ScriptCommand s_gs207_g1_s0_lives0_dlg0[] = { /* 0x826008c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Ouch...{WAIT_PRESS}\nWhere are we?")), VARIANT_DEFAULT(_(" Owowow...{WAIT_PRESS}\nWhere are we?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -65,7 +65,7 @@ static const struct ScriptCommand s_gs207_g1_s0_lives0_dlg0[] = { /* 0x826008c * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Wah!\n{NAME_0}, this is cool!{WAIT_PRESS}\nWe're on clouds!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -73,12 +73,12 @@ static const struct ScriptCommand s_gs207_g1_s0_lives0_dlg0[] = { /* 0x826008c * { 0x91, 0x04, 0x000a, 0x00000007, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Oh, wow!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" {NAME_0}, look up there!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -187,14 +187,14 @@ static const struct ScriptCommand s_gs207_g2_s0_lives0_dlg0[] = { /* 0x8260934 * VARIANT(/* == */ 1, _(" That must be where\n{NAME_2} is...")), VARIANT_DEFAULT(_(" It's at the top of this\ntower...")), VARIANT_DEFAULT(_(" That's where {NAME_2}\nis...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}!\nLet's give it our best!")), VARIANT_DEFAULT(_(" {NAME_0}!\nLet's do our best on the climb!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -266,7 +266,7 @@ static const struct ScriptCommand s_gs207_g3_s0_lives0_dlg0[] = { /* 0x8260d38 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" All right.\nWe're up in the sky again.")), VARIANT_DEFAULT(_(" OK.\nHere we are in the sky again.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -274,7 +274,7 @@ static const struct ScriptCommand s_gs207_g3_s0_lives0_dlg0[] = { /* 0x8260d38 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Let's storm our way to\nthe top floor!")), VARIANT_DEFAULT(_(" Let's head for the top!\nThis is it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x23, 0x00, 0x0050, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d13p02_station.h b/src/data/ground/ground_data_d13p02_station.h index 6a9104e92..df68094d2 100644 --- a/src/data/ground/ground_data_d13p02_station.h +++ b/src/data/ground/ground_data_d13p02_station.h @@ -50,7 +50,7 @@ static const struct ScriptCommand s_gs208_g0_s0_evt0_sref_script[] = { /* 0x8261 LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), { 0x02, 0x00, 0x001e, 0x00000014, 0x00000000, NULL }, COND_EQUAL(-1, /* to label */ 1), @@ -67,7 +67,7 @@ static const struct ScriptCommand s_gs208_g0_s0_evt1_sref_script[] = { /* 0x8261 LABEL(1), /* = 0x01 */ JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), { 0x23, 0x01, -0x0001, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(DISMISSAL_SALLY_MEMBER4_FUNC), @@ -159,7 +159,7 @@ static const struct ScriptCommand s_gs208_g1_s0_lives0_dlg0[] = { /* 0x8261b84 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" But we didn't have far to\ngo!{WAIT_PRESS}\nLet's give it our best!")), VARIANT_DEFAULT(_(" But we were very close!{WAIT_PRESS}\nLet's keep trying our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d13p03_station.h b/src/data/ground/ground_data_d13p03_station.h index 898654a7a..1cd330e4a 100644 --- a/src/data/ground/ground_data_d13p03_station.h +++ b/src/data/ground/ground_data_d13p03_station.h @@ -57,14 +57,14 @@ static const struct ScriptCommand s_gs209_g1_s0_lives0_dlg0[] = { /* 0x826223c * WAIT(5), { 0x27, 0x00, 0x0005, 0x00000008, 0x00ffffff, NULL }, WAIT(120), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, FANFARE_PLAY2(848), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x2e, 0x0f, 0x0002, -0x00000002, 0x00000000, NULL }, { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Gwaargh!") }, WAIT(90), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -90,14 +90,14 @@ static const struct ScriptCommand s_gs209_g1_s0_lives0_dlg0[] = { /* 0x826223c * VARIANT(/* == */ 1, _(" We're up on clouds...")), VARIANT_DEFAULT(_(" Wh-wh-what?!\nAn earthquake?!{WAIT_PRESS}\nIt's not possible!")), VARIANT_DEFAULT(_(" We're on top of clouds...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" These are shock waves!{WAIT_PRESS}\nAnd they're huge!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -105,7 +105,7 @@ static const struct ScriptCommand s_gs209_g1_s0_lives0_dlg0[] = { /* 0x826223c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That's it! I get it now!{WAIT_PRESS}\nLook straight up, {NAME_2}!")), VARIANT_DEFAULT(_(" That's it! I got it!{WAIT_PRESS}\nLook straight up, {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -205,7 +205,7 @@ static const struct ScriptCommand s_gs209_g1_s0_lives4_dlg0[] = { /* 0x8262a4c * WAIT(5), { 0x27, 0x00, 0x0005, 0x00000008, 0x00ffffff, NULL }, WAIT(90), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, { 0x54, 0x00, 0x0018, 0x00000000, 0x00000000, NULL }, { 0xdd, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(517), @@ -263,7 +263,7 @@ static const struct ScriptCommand s_gs209_g2_s0_lives0_dlg0[] = { /* 0x8262f4c * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" What is that?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -275,32 +275,32 @@ static const struct ScriptCommand s_gs209_g2_s0_lives0_dlg0[] = { /* 0x8262f4c * VARIANT(/* == */ 1, _(" That's why we came,\n{NAME_2}. We need you to destroy\nthat falling star!")), VARIANT(/* == */ 3, _(" That's why we came,\n{NAME_2}.\nPlease, destroy the falling star!")), VARIANT_DEFAULT(_(" That's why we came,\n{NAME_2}.\nPlease, destroy the falling star!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), MSG_NPC(2, _(" ...So, that is why...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Yes! Hurry!\nDestroy it!")), VARIANT_DEFAULT(_(" Yes!\nPlease hurry and destroy it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ............{WAIT_PRESS}Before I try...{WAIT_PRESS}\nI need to know your resolve.")), MSG_NPC(2, _(" The star has come too close.")), MSG_NPC(2, _(" If I were to loose my\nHyper Beam here...")), MSG_NPC(2, _(" You would not escape\nunscathed!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" So what?!{WAIT_PRESS}\nWe knew that right from the start!")), VARIANT_DEFAULT(_(" So?!{WAIT_PRESS}\nWe accepted that from the start!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Well said!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -309,7 +309,7 @@ static const struct ScriptCommand s_gs209_g2_s0_lives0_dlg0[] = { /* 0x8262f4c * { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Take charge of your destiny!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(513), @@ -404,7 +404,7 @@ static const struct ScriptCommand s_gs209_g3_s0_station_sref_script[] = { /* 0x8 BGM_FADEOUT(60), { 0x28, 0x01, 0x0005, 0x0000003c, 0x00ffffff, NULL }, WAIT(120), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, TEXTBOX_AUTO_PRESS(-1, -1), WAIT(240), RET, diff --git a/src/data/ground/ground_data_d15p01_station.h b/src/data/ground/ground_data_d15p01_station.h index 2d4e14a3e..42bb99358 100644 --- a/src/data/ground/ground_data_d15p01_station.h +++ b/src/data/ground/ground_data_d15p01_station.h @@ -35,23 +35,23 @@ static const struct ScriptCommand s_gs211_g1_s0_lives0_dlg0[] = { /* 0x826425c * { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Gwooooooooooh!{WAIT_PRESS}\n...H-how dare you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" How...{WAIT_PRESS}\nHow did this happen...?")), MSG_NPC(2, _(" But regardless, you have\nwon.{WAIT_PRESS}\nLet me hear your wish.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" ...Hm?! This...{WAIT_PRESS}\nThis is the {COLOR GREEN_I}Red Wing{RESET}...")), MSG_NPC(2, _(" ............{WAIT_PRESS}You...{WAIT_PRESS}\nStand back!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Raikou's thunderbolt\n{CENTER_ALIGN}electrified the {COLOR GREEN_I}Red Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR GREEN_I}Red Wing{RESET}...{WAIT_PRESS}\n{CENTER_ALIGN}transformed into\n{CENTER_ALIGN}the {COLOR GREEN_I}Sunset Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Its subtle gradation of yellow\n{CENTER_ALIGN}to red is a truly beauteous sight!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" Go northeast!")), MSG_NPC(2, _(" To a place called the\n{COLOR YELLOW_D}Northwind Field{RESET}.")), MSG_NPC(2, _(" You will find a Pokémon\nthere named Suicune.")), MSG_NPC(2, _(" If you are lucky enough to\nmeet Suicune...")), MSG_NPC(2, _(" Perhaps your wish will\ncome true!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} received\n{CENTER_ALIGN}the {COLOR GREEN_I}Sunset Wing{RESET}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, @@ -59,7 +59,7 @@ static const struct ScriptCommand s_gs211_g1_s0_lives0_dlg0[] = { /* 0x826425c * FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Northwind Field{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_d16p01_station.h b/src/data/ground/ground_data_d16p01_station.h index bee59e8c5..c4b60075e 100644 --- a/src/data/ground/ground_data_d16p01_station.h +++ b/src/data/ground/ground_data_d16p01_station.h @@ -65,11 +65,11 @@ static const struct ScriptCommand s_gs212_g1_s0_lives0_dlg0[] = { /* 0x82649c8 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Gwooooooh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Urghgh...{WAIT_PRESS}\nI... I lost...")), MSG_NPC(2, _(" You...{WAIT_PRESS}\nWhat do you wish?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(60), @@ -79,7 +79,7 @@ static const struct ScriptCommand s_gs212_g1_s0_lives0_dlg0[] = { /* 0x82649c8 * MSG_NPC(2, _(" ...Wh-what?! This is...\nthe {COLOR GREEN_I}Clear Wing{RESET}...")), MSG_NPC(2, _(" ...I understand now.{WAIT_PRESS}\nTo meet that Pokémon...")), MSG_NPC(2, _(" ............{WAIT_PRESS}Stand aside.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x62, 0x00, 0x0100, 0x00000000, 0x00000008, NULL }, BGM_FADEOUT(30), @@ -97,7 +97,7 @@ static const struct ScriptCommand s_gs212_g1_s0_lives0_dlg0[] = { /* 0x82649c8 * { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Entei's fiery blast made\n{CENTER_ALIGN}the {COLOR GREEN_I}Clear Wing{RESET} flare!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR GREEN_I}Clear Wing{RESET}...{WAIT_PRESS}\n{CENTER_ALIGN}transformed into the {COLOR GREEN_I}Red Wing{RESET}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(10), FANFARE_PLAY2(507), @@ -114,7 +114,7 @@ static const struct ScriptCommand s_gs212_g1_s0_lives0_dlg0[] = { /* 0x82649c8 * MSG_NPC(2, _(" There, you will find\nthe {COLOR YELLOW_D}Lightning Field{RESET}.")), MSG_NPC(2, _(" You will know your path\nthere!")), MSG_NPC(2, _(" Now go!\nTo the {COLOR YELLOW_D}Lightning Field{RESET}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x62, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(20), CANCEL_EFFECTS(1, 1), @@ -123,13 +123,13 @@ static const struct ScriptCommand s_gs212_g1_s0_lives0_dlg0[] = { /* 0x82649c8 * FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} received\n{CENTER_ALIGN}the {COLOR GREEN_I}Red Wing{RESET}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And...") }, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Lightning Field{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d17p01_station.h b/src/data/ground/ground_data_d17p01_station.h index 055bf4544..1222d4f6f 100644 --- a/src/data/ground/ground_data_d17p01_station.h +++ b/src/data/ground/ground_data_d17p01_station.h @@ -66,12 +66,12 @@ static const struct ScriptCommand s_gs213_g1_s0_lives0_dlg0[] = { /* 0x82657d4 * PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), FANFARE_PLAY2(685), MSG_NPC(2, _(" Gwooooooooooh!{WAIT_PRESS}\n...H-how dare you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" How...{WAIT_PRESS}\nHow did this happen...?")), MSG_NPC(2, _(" But regardless, you have\nwon.{WAIT_PRESS}\nLet me hear your wish.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(60), @@ -80,7 +80,7 @@ static const struct ScriptCommand s_gs213_g1_s0_lives0_dlg0[] = { /* 0x82657d4 * { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ...Hm?! This...{WAIT_PRESS}\nThis is the {COLOR GREEN_I}Red Wing{RESET}...")), MSG_NPC(2, _(" ............{WAIT_PRESS}You...{WAIT_PRESS}\nStand back!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x62, 0x00, 0x0100, 0x00000000, 0x00000008, NULL }, BGM_FADEOUT(30), @@ -96,7 +96,7 @@ static const struct ScriptCommand s_gs213_g1_s0_lives0_dlg0[] = { /* 0x82657d4 * { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Raikou's thunderbolt\n{CENTER_ALIGN}electrified the {COLOR GREEN_I}Red Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR GREEN_I}Red Wing{RESET}...{WAIT_PRESS}\n{CENTER_ALIGN}transformed into\n{CENTER_ALIGN}the {COLOR GREEN_I}Sunset Wing{RESET}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(10), FANFARE_PLAY2(507), @@ -109,14 +109,14 @@ static const struct ScriptCommand s_gs213_g1_s0_lives0_dlg0[] = { /* 0x82657d4 * BGM_SWITCH(114), WAIT(60), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Its subtle gradation of yellow\n{CENTER_ALIGN}to red is a truly beauteous sight!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" Go northeast!")), MSG_NPC(2, _(" To a place called the\n{COLOR YELLOW_D}Northwind Field{RESET}.")), MSG_NPC(2, _(" You will find a Pokémon\nthere named Suicune.")), MSG_NPC(2, _(" If you are lucky enough to\nmeet Suicune...")), MSG_NPC(2, _(" Perhaps your wish will\ncome true!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x62, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(20), CANCEL_EFFECTS(1, 1), @@ -125,13 +125,13 @@ static const struct ScriptCommand s_gs213_g1_s0_lives0_dlg0[] = { /* 0x82657d4 * FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} received\n{CENTER_ALIGN}the {COLOR GREEN_I}Sunset Wing{RESET}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And...") }, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Northwind Field{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d18p01_station.h b/src/data/ground/ground_data_d18p01_station.h index 183bedeca..abbb3897e 100644 --- a/src/data/ground/ground_data_d18p01_station.h +++ b/src/data/ground/ground_data_d18p01_station.h @@ -65,11 +65,11 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Gwoooooooh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" I have lost...")), MSG_NPC(2, _(" I admit it.\nYou are strong.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(60), @@ -79,13 +79,13 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * MSG_NPC(2, _(" This!{WAIT_PRESS}\nThe {COLOR GREEN_I}Sunset Wing{RESET}!")), MSG_NPC(2, _(" ...I see.{WAIT_PRESS}\nYou came seeking the mirage Pokémon...")), MSG_NPC(2, _(" ...{WAIT_PRESS}Step back.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x62, 0x00, 0x0100, 0x00000000, 0x00000008, NULL }, BGM_FADEOUT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Kyuuuuuuuuhn!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, SELECT_OBJECTS(1, 1), @@ -98,7 +98,7 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * { 0x54, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The north wind swirled\n{CENTER_ALIGN}around the {COLOR GREEN_I}Sunset Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR GREEN_I}Sunset Wing{RESET}...{WAIT_PRESS}\n{CENTER_ALIGN}transformed into the {COLOR GREEN_I}Rainbow Wing{RESET}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(10), FANFARE_PLAY2(507), @@ -111,7 +111,7 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * BGM_SWITCH(114), WAIT(60), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Glittering in the seven colors\n{CENTER_ALIGN}of the rainbow, this wing is\n{CENTER_ALIGN}beautiful beyond description!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(2, _(" This {COLOR GREEN_I}Rainbow Wing{RESET}...")), MSG_NPC(2, _(" It is the key to meeting\nthe mirage Pokémon.")), @@ -119,7 +119,7 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * MSG_NPC(2, _(" Take it to the mountain so\nhigh that its peak is obscured by clouds.")), MSG_NPC(2, _(" Yes...\nTake it to {COLOR YELLOW_D}Mt. Faraway{RESET}!")), MSG_NPC(2, _(" The mirage Pokémon is at\nits peak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x62, 0x00, 0x0100, 0x00000000, -0x00000018, NULL }, WAIT(20), CANCEL_EFFECTS(1, 1), @@ -128,13 +128,13 @@ static const struct ScriptCommand s_gs214_g1_s0_lives0_dlg0[] = { /* 0x8266664 * FANFARE_PLAY(212), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} received\n{CENTER_ALIGN}the {COLOR GREEN_I}Rainbow Wing{RESET}.") }, { 0xe1, 0x00, 0x00d4, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And...") }, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}{COLOR YELLOW_D}Mt. Faraway{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d19p01_station.h b/src/data/ground/ground_data_d19p01_station.h index fb8627fa0..a35573040 100644 --- a/src/data/ground/ground_data_d19p01_station.h +++ b/src/data/ground/ground_data_d19p01_station.h @@ -35,31 +35,31 @@ static const struct ScriptCommand s_gs215_g1_s0_lives0_dlg0[] = { /* 0x82674cc * { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Gwoooooooh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" I have lost...")), MSG_NPC(2, _(" I admit it.\nYou are strong.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" This!{WAIT_PRESS}\nThe {COLOR GREEN_I}Sunset Wing{RESET}!")), MSG_NPC(2, _(" ...I see.{WAIT_PRESS}\nYou came seeking the mirage Pokémon...")), MSG_NPC(2, _(" ...{WAIT_PRESS}Step back.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" Kyuuuuuuuuhn!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The north wind swirled\n{CENTER_ALIGN}around the {COLOR GREEN_I}Sunset Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR GREEN_I}Sunset Wing{RESET}...{WAIT_PRESS}\n{CENTER_ALIGN}transformed into the {COLOR GREEN_I}Rainbow Wing{RESET}!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Glittering in the seven colors\n{CENTER_ALIGN}of the rainbow, this wing is\n{CENTER_ALIGN}beautiful beyond description!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(2, _(" This {COLOR GREEN_I}Rainbow Wing{RESET}...")), MSG_NPC(2, _(" It is the key to meeting\nthe mirage Pokémon.")), MSG_NPC(2, _(" Take this wing...")), MSG_NPC(2, _(" Take it to the mountain so\nhigh that its peak is obscured by clouds.")), MSG_NPC(2, _(" Yes...\nTake it to {COLOR YELLOW_D}Mt. Faraway{RESET}!")), MSG_NPC(2, _(" The mirage Pokémon is at\nits peak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} received\n{CENTER_ALIGN}the {COLOR GREEN_I}Rainbow Wing{RESET}.") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And...") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}{COLOR YELLOW_D}Mt. Faraway{RESET}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_d20p01_station.h b/src/data/ground/ground_data_d20p01_station.h index 5b6a5f4e9..c94470c75 100644 --- a/src/data/ground/ground_data_d20p01_station.h +++ b/src/data/ground/ground_data_d20p01_station.h @@ -26,7 +26,7 @@ static const struct ScriptCommand s_gs216_g1_s0_station_sref_script[] = { /* 0x8 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -56,7 +56,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * { 0x56, 0x00, 0x0000, 0x0000005a, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0000, 0x00000000), MSG_NPC(0, _(" Hey!{WAIT_PRESS}\nGet a move on!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x56, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -64,24 +64,24 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000003), MSG_NPC(1, _(" Gasp, gasp...{WAIT_PRESS}\nThis is rough going...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(0, _(" Heh! What's with you?\nYou're gonna whine about it now?")), MSG_NPC(0, _(" Let me think--wasn't it you\nwho wanted to explore this place?")), MSG_NPC(0, _(" Saying you'd found a new\ncave and all!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Yeah...{WAIT_PRESS}\nI just happened to be swimming by in\nthe sea when I spotted this cave...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" I didn't expect it to be\na dungeon this rough...\nGasp, gasp...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(0, _(" Heh!{WAIT_PRESS}\nI thought a different combo would be\na good change of pace...")), MSG_NPC(0, _(" But you're pathetic!{WAIT_PRESS}\nSo much for Mr. Big Shot {NAME_1}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(472), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -93,7 +93,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * PORTRAIT_REP(0x0001, 0x00000002), MSG_NPC(1, _(" Never...{WAIT_PRESS}\nunderestimate {NAME_1}!")), MSG_NPC(1, _(" Wroooooooaaaaar!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -103,14 +103,14 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * { 0x56, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0000, 0x00000000), MSG_NPC(0, _(" That's the spirit!{WAIT_PRESS}\nI think we're getting close.\nLet's keep it going!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" ...!{WAIT_PRESS}\nSo you did that to motivate me...{WAIT_PRESS}\n...Thanks.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(0, _(" Hey, no problem.\nLet's move!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6a, 0x00, 0x0100, 0x00000000, -0x00000020, NULL }, @@ -121,13 +121,13 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * { 0x93, 0x04, 0x000a, 0x00000068, 0x00000000, NULL }, WAIT(30), MSG_NPC(0, _(" Hm?{WAIT_PRESS} What's wrong?{WAIT_PRESS}\nAre you still wiped out?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), WAIT(30), MSG_NPC(1, _(" ...No. That's not it.")), MSG_NPC(1, _(" ...Just now.{WAIT_PRESS}\nDid you hear something?")), MSG_NPC(1, _(" I thought I heard a voice...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x92, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, WAIT(15), @@ -137,13 +137,13 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * WAIT(30), { 0x93, 0x04, 0x000a, 0x00000068, 0x00000000, NULL }, MSG_NPC(0, _(" ...No?{WAIT_PRESS}\nI don't hear anything.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_SWITCH(35), TEXTBOX_AUTO_PRESS(60, 60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ............{WAIT_PRESS}Is it{WAIT_PRESS} \nyou...?") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ......Who...disturbs...my sleep...{WAIT_PRESS}\nIs it{WAIT_PRESS} you?!\n") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x92, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, @@ -157,7 +157,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * TEXTBOX_AUTO_PRESS(-1, -1), MSG_NPC(0, _(" Wh-who's there?!")), MSG_NPC(0, _(" Who are you?!{WAIT_PRESS}\nShow yourself!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), FANFARE_PLAY2(453), { 0x97, 0x00, 0x0001, 0x00000000, 0x00000000, NULL }, @@ -165,7 +165,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * TEXTBOX_AUTO_PRESS(90, 90), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Me...?") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I was...{WAIT_PRESS}\nEngineered...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), WAIT(60), FANFARE_PLAY2(705), @@ -174,7 +174,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * WAIT(10), { 0x27, 0x01, 0x0001, 0x00000005, 0x00ffffff, NULL }, { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Created only to fight...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_STOP, FANFARE_PLAY2(705), @@ -190,7 +190,7 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * { 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!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x22, 0x01, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -202,12 +202,12 @@ static const struct ScriptCommand s_gs216_g1_s0_lives0_dlg0[] = { /* 0x8267cc8 * PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000003), FANFARE_PLAY2(877), MSG_NPC(0, _(" Gwaaaaaaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000003), FANFARE_PLAY2(877), MSG_NPC(1, _(" Gyaaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(-1, -1), BGM_FADEOUT(60), WAIT(60), diff --git a/src/data/ground/ground_data_d21p01_station.h b/src/data/ground/ground_data_d21p01_station.h index a43727b4c..78bc016c7 100644 --- a/src/data/ground/ground_data_d21p01_station.h +++ b/src/data/ground/ground_data_d21p01_station.h @@ -45,14 +45,14 @@ static const struct ScriptCommand s_gs217_g1_s0_lives0_dlg0[] = { /* 0x8269878 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Urghgh...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ............{WAIT_PRESS}Please...\nPlease let me go...")), MSG_NPC(2, _(" I have to go...{WAIT_PRESS}\nThere's somewhere that I have to go...")), MSG_NPC(2, _(" If...I don't hurry...{WAIT_PRESS}\nM-my little sister...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d22p01_station.h b/src/data/ground/ground_data_d22p01_station.h index ecfa98989..ce2a79243 100644 --- a/src/data/ground/ground_data_d22p01_station.h +++ b/src/data/ground/ground_data_d22p01_station.h @@ -89,7 +89,7 @@ static const struct ScriptCommand s_gs218_g1_s0_lives0_dlg0[] = { /* 0x826a108 * { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ............") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Y-you are...?") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Did you maybe...{WAIT_PRESS}\ncome to save me?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEIN(20, 114), WAIT(10), { 0x22, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, @@ -100,7 +100,7 @@ static const struct ScriptCommand s_gs218_g1_s0_lives0_dlg0[] = { /* 0x826a108 * PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" ............{WAIT_PRESS}\nYes, I'll be fine.")), MSG_NPC(2, _(" My wing is still damaged\na little, but...{WAIT_PRESS}\nI can go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x6a, 0x00, 0x0100, 0x00000008, 0x00000000, NULL }, { 0x6b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d23p01_station.h b/src/data/ground/ground_data_d23p01_station.h index b8a480ad8..1270e68d8 100644 --- a/src/data/ground/ground_data_d23p01_station.h +++ b/src/data/ground/ground_data_d23p01_station.h @@ -45,7 +45,7 @@ static const struct ScriptCommand s_gs219_g1_s0_lives0_dlg0[] = { /* 0x826a6b8 * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Look. Over there.\nLet's get this rescue done.")), VARIANT_DEFAULT(_(" Look, there's our Pokémon.\nWe can get this rescue done.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, WAIT(1), diff --git a/src/data/ground/ground_data_d24p01_station.h b/src/data/ground/ground_data_d24p01_station.h index 77820761a..5d68baf93 100644 --- a/src/data/ground/ground_data_d24p01_station.h +++ b/src/data/ground/ground_data_d24p01_station.h @@ -57,14 +57,14 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh!\nWe're here at last!")), MSG_NPC(2, _(" This is it?\nThis is the deepest floor of the\n{COLOR YELLOW_D}Murky Cave{RESET}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Oh, look!{WAIT_PRESS}\nThere's a dais!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -72,13 +72,13 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * WAIT(15), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" There's a hollow spot.\nI guess that stone goes in there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(348), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2} placed the {COLOR GREEN_I}9-Tail Crest{RESET}\n{CENTER_ALIGN}in the hollow spot.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), BGM_STOP, FANFARE_PLAY2(502), @@ -102,19 +102,19 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * MSG_NPC(2, _(" ........................")), MSG_NPC(2, _(" ....................................")), MSG_NPC(2, _(" Kekeh!\nWhat's this about?\nNothing's happening?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ............?{WAIT_PRESS}\nHuh? I thought I heard something...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh!\nDid you just say something?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(468), { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, @@ -130,16 +130,16 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" That's odd...\nI could've sworn I heard something...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}...Wel...co...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}...W...e...lc...ome...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Welcome to\n{CENTER_ALIGN}the Murky Cave!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(469), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x08, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -150,33 +150,33 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * { 0x91, 0x08, 0x0001, 0x00000004, 0x00000000, NULL }, MSG_NPC(2, _(" What? What?!\nWhere is that voice coming from?")), MSG_NPC(2, _(" Who are you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_SWITCH(6), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I am the\n{CENTER_ALIGN}judge of darkness.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}You have nothing to fear from me.\n{CENTER_ALIGN}I mean you no harm.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Just now, a key was\n{CENTER_ALIGN}inserted to break a curse.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The curse...\n{CENTER_ALIGN}It is the one on {NAME_3}?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh! Exactly!{WAIT_PRESS}\nPlease lift the curse now!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I cannot allow that right away.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I must first know if you\n{CENTER_ALIGN}have earned the right.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I must evaluate you.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}You must bare your\n{CENTER_ALIGN}true feelings to me.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Kekeh? What?{WAIT_PRESS}\nYou're going to test me?")), MSG_NPC(2, _(" What, I have to fight some\nboss creature?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Oh, no.\n{CENTER_ALIGN}Nothing so barbaric.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}All that I need is for some\n{CENTER_ALIGN}questions to be answered.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}However...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(502), { 0x28, 0x01, 0x0005, 0x00000004, 0x00ffffff, NULL }, @@ -192,19 +192,19 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" Gegeh?! What the...?!{WAIT_PRESS}\nI can't move!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2}, you will not\n{CENTER_ALIGN}be doing the answering...") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), CALL_SCRIPT(NOTICE_FUNC), { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(30), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}.\n{CENTER_ALIGN}You will answer.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x6b, 0x00, 0x0080, 0x00000001, 0x00000000, NULL }, WAIT(30), @@ -216,20 +216,20 @@ static const struct ScriptCommand s_gs220_g1_s0_lives0_dlg0[] = { /* 0x826abb0 * MSG_NPC(2, _(" Gegegeh!\nWhat are you saying?!")), MSG_NPC(2, _(" Why is someone else\nspeaking for me?!")), MSG_NPC(2, _(" Let me do it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2}.{WAIT_PRESS}\n{CENTER_ALIGN}Your heart is interwoven\n{CENTER_ALIGN}with conflicting emotions.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}You will probably never show\n{CENTER_ALIGN}the truth within your heart.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Kekeh?!\nWhat?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} will enter\n{CENTER_ALIGN}{NAME_2}'s heart.") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Please navigate carefully\n{CENTER_ALIGN}through {NAME_2}'s emotions.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -339,23 +339,23 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * WAIT(80), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_2}.\n{CENTER_ALIGN}Whether you have the right\n{CENTER_ALIGN}to break the curse or not...") }, { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}I will now render\n{CENTER_ALIGN}my judgment.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The curse...{WAIT_PRESS}\n{CENTER_ALIGN}could not be lifted.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000043), MSG_NPC(2, _(" W-wait...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}It is most regrettable, but\n{CENTER_ALIGN}the curse on {NAME_3}\n{CENTER_ALIGN}will last all eternity...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Wait!\nWait a minute!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(666), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -366,14 +366,14 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, WAIT(20), MSG_NPC(2, _(" Let me...{WAIT_PRESS}\nLet me say something!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEIN(60, 24), WAIT(60), MSG_NPC(2, _(" It's true.\nI abandoned {NAME_3} and ran.")), MSG_NPC(2, _(" I was afraid that the curse\nwould fall on me.")), MSG_NPC(2, _(" I had to get away, no matter\nwhat...{WAIT_PRESS}\nThat's what I thought.")), MSG_NPC(2, _(" It didn't take long for me\nto forget about the curse and about\n{NAME_3}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" Many long years passed...")), @@ -381,7 +381,7 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * MSG_NPC(2, _(" One night...{WAIT_PRESS}\nIn {NAME_4}'s dream, {NAME_3}\nsaid this...")), MSG_NPC(2, _(" That she considered me an\nirreplaceable friend, and that she still\nbelieved we would meet again...")), MSG_NPC(2, _(" {NAME_3} kept thinking\nabout someone like me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT_REP(0x0002, 0x00000045), MSG_NPC(2, _(" But I...\nHow selfish I was.")), @@ -390,7 +390,7 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * MSG_NPC(2, _(" {COLOR CYAN}Team {TEAM_NAME}{RESET} put up\nwith my selfishness and brought me here.")), MSG_NPC(2, _(" I finally know what I was\nmissing.")), MSG_NPC(2, _(" What I lacked...{WAIT_PRESS}\nIt was something for the others...{WAIT_PRESS}\nA sense of gratitude.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(120), BGM_STOP, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -416,7 +416,7 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * CALL_SCRIPT(LOOK_AROUND_FUNC), WAIT(15), { 0x33, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The lock bearing the curse...{WAIT_PRESS}\n{CENTER_ALIGN}It has opened.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(506), { 0x28, 0x01, 0x0005, 0x0000001e, 0x00ffffff, NULL }, @@ -430,7 +430,7 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" Ga-{NAME_3}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_FADEIN(60, 5), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -438,7 +438,7 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" It worked, {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, @@ -446,27 +446,27 @@ static const struct ScriptCommand s_gs220_g2_s0_lives0_dlg0[] = { /* 0x826c278 * PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000044), MSG_NPC(2, _(" N-{NAME_5}!")), MSG_NPC(2, _(" ...But...\nI don't know what you're saying...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" The curse has been broken.")), MSG_NPC(5, _(" I cast my curse, enraged at\nyour twisted heart.")), MSG_NPC(5, _(" When your heart gained\nwhat it had been missing...\nThe curse was shattered.")), MSG_NPC(5, _(" The final key to break the\ncurse...{WAIT_PRESS}\nwas your sense of gratitude.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Then, Gardevoir...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" You may be reassured.\n{NAME_3} has returned.{WAIT_PRESS}\nShe will soon awaken.")), MSG_NPC(5, _(" However...{WAIT_PRESS}\nThat you were her partner in the past...")), MSG_NPC(5, _(" {NAME_3} will have no\nrecollection of that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ............{WAIT_PRESS}That doesn't matter.")), MSG_NPC(2, _(" {NAME_3} is back.{WAIT_PRESS}\nThat's enough for me...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, diff --git a/src/data/ground/ground_data_d24p02_station.h b/src/data/ground/ground_data_d24p02_station.h index e5ab37a5d..c221e6349 100644 --- a/src/data/ground/ground_data_d24p02_station.h +++ b/src/data/ground/ground_data_d24p02_station.h @@ -47,7 +47,7 @@ static const struct ScriptCommand s_gs221_g1_s0_lives0_dlg0[] = { /* 0x826d898 * { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" You're going to the\n{COLOR YELLOW_D}Murky Cave{RESET}?")), MSG_NPC(2, _(" Don't forget to take me,\nkekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x89, 0x50, 0x0080, 0x00000004, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_d25p01_station.h b/src/data/ground/ground_data_d25p01_station.h index dfa34a8ec..bb0eb9c7c 100644 --- a/src/data/ground/ground_data_d25p01_station.h +++ b/src/data/ground/ground_data_d25p01_station.h @@ -45,7 +45,7 @@ static const struct ScriptCommand s_gs222_g1_s0_lives0_dlg0[] = { /* 0x826dc2c * MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Look. Over there.\nLet's get this rescue done.")), VARIANT_DEFAULT(_(" Look, there's our Pokémon.\nWe can get this rescue done.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, WAIT(1), diff --git a/src/data/ground/ground_data_h29p01_station.h b/src/data/ground/ground_data_h29p01_station.h index 03ef4bcf3..a99655304 100644 --- a/src/data/ground/ground_data_h29p01_station.h +++ b/src/data/ground/ground_data_h29p01_station.h @@ -285,31 +285,31 @@ static const struct ScriptCommand s_gs158_g2_s0_lives0_dlg0[] = { /* 0x820d22c * PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Fire, ice, and electricity...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" When the three powers\nmerge as one...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The guardian of the sea is\nsaid to arise.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Our arrival at the\n{COLOR GREEN_H}Legendary Island{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The three of us caused\nthe sea guardian to awaken.")), MSG_NPC(2, _(" It is what caused whirlpools\nto grow into tornadoes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" I have here the\n{COLOR GREEN}Vortex Stone{RESET}.")), MSG_NPC(1, _(" Bearing it, you will gain\npassage through the sea's tornadoes...")), MSG_NPC(1, _(" It will lead you to a place\ncalled the {COLOR YELLOW_D}Silver Trench{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" There, you will find the\nguardian of the sea.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Now go.\nThe guardian of the sea awaits you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x6a, 0x00, 0x0080, 0x00000000, -0x00000010, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -322,7 +322,7 @@ static const struct ScriptCommand s_gs158_g2_s0_lives0_dlg0[] = { /* 0x820d22c * FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Silver Trench{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; diff --git a/src/data/ground/ground_data_s01_station.h b/src/data/ground/ground_data_s01_station.h index fc545e430..e8637ad27 100644 --- a/src/data/ground/ground_data_s01_station.h +++ b/src/data/ground/ground_data_s01_station.h @@ -25,7 +25,7 @@ static const struct ScriptCommand s_gs223_g1_s0_station_sref_script[] = { /* 0x8 { 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!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 0), BGM_SWITCH(12), { 0x22, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_t00p01_station.h b/src/data/ground/ground_data_t00p01_station.h index cead507f9..8f6467c1b 100644 --- a/src/data/ground/ground_data_t00p01_station.h +++ b/src/data/ground/ground_data_t00p01_station.h @@ -292,31 +292,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 28, _("Main 1A-3")), JUMP_LABEL(1), LABEL(22), /* = 0x16 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(DEMO_01), HALT, LABEL(23), /* = 0x17 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(DEMO_02), HALT, LABEL(24), /* = 0x18 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(DEMO_03), HALT, LABEL(25), /* = 0x19 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M00E01A_L001), HALT, LABEL(26), /* = 0x1a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E01A_L001), HALT, LABEL(27), /* = 0x1b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E01A_L002), HALT, LABEL(28), /* = 0x1c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E01A_L003), HALT, LABEL(5), /* = 0x05 */ @@ -329,27 +329,27 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 34, _("Main 2A-6")), JUMP_LABEL(1), LABEL(29), /* = 0x1d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L001), HALT, LABEL(30), /* = 0x1e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L002), HALT, LABEL(31), /* = 0x1f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L003), HALT, LABEL(32), /* = 0x20 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L004), HALT, LABEL(33), /* = 0x21 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L005), HALT, LABEL(34), /* = 0x22 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02A_L006), HALT, LABEL(6), /* = 0x06 */ @@ -364,35 +364,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 42, _("Main 2B-8")), JUMP_LABEL(1), LABEL(35), /* = 0x23 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L001), HALT, LABEL(36), /* = 0x24 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L002), HALT, LABEL(37), /* = 0x25 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L003), HALT, LABEL(38), /* = 0x26 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L004), HALT, LABEL(39), /* = 0x27 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L005), HALT, LABEL(40), /* = 0x28 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L006), HALT, LABEL(41), /* = 0x29 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L007), HALT, LABEL(42), /* = 0x2a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E02B_L008), HALT, LABEL(7), /* = 0x07 */ @@ -407,35 +407,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 50, _("Main 3A-7")), JUMP_LABEL(1), LABEL(43), /* = 0x2b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L000), HALT, LABEL(44), /* = 0x2c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L001), HALT, LABEL(45), /* = 0x2d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L002), HALT, LABEL(46), /* = 0x2e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L003), HALT, LABEL(47), /* = 0x2f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L004), HALT, LABEL(48), /* = 0x30 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L005), HALT, LABEL(49), /* = 0x31 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L006), HALT, LABEL(50), /* = 0x32 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L007), HALT, LABEL(8), /* = 0x08 */ @@ -446,19 +446,19 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 54, _("Main 3A-11")), JUMP_LABEL(1), LABEL(51), /* = 0x33 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L008), HALT, LABEL(52), /* = 0x34 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L009), HALT, LABEL(53), /* = 0x35 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L010), HALT, LABEL(54), /* = 0x36 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E03A_L011), HALT, LABEL(9), /* = 0x09 */ @@ -472,31 +472,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 61, _("Main 4A-6")), JUMP_LABEL(1), LABEL(55), /* = 0x37 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L000), HALT, LABEL(56), /* = 0x38 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L001), HALT, LABEL(57), /* = 0x39 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L002), HALT, LABEL(58), /* = 0x3a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L003), HALT, LABEL(59), /* = 0x3b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L004), HALT, LABEL(60), /* = 0x3c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L005), HALT, LABEL(61), /* = 0x3d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04A_L006), HALT, LABEL(10), /* = 0x0a */ @@ -511,35 +511,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 69, _("Main 4B-7")), JUMP_LABEL(1), LABEL(62), /* = 0x3e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L000), HALT, LABEL(63), /* = 0x3f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L001), HALT, LABEL(64), /* = 0x40 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L002), HALT, LABEL(65), /* = 0x41 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L003), HALT, LABEL(66), /* = 0x42 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L004), HALT, LABEL(67), /* = 0x43 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L005), HALT, LABEL(68), /* = 0x44 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L006), HALT, LABEL(69), /* = 0x45 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E04B_L007), HALT, LABEL(11), /* = 0x0b */ @@ -553,31 +553,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 76, _("Main 5A-6")), JUMP_LABEL(2), LABEL(70), /* = 0x46 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L000), HALT, LABEL(71), /* = 0x47 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L001), HALT, LABEL(72), /* = 0x48 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L002), HALT, LABEL(73), /* = 0x49 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L003), HALT, LABEL(74), /* = 0x4a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L004), HALT, LABEL(75), /* = 0x4b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L005), HALT, LABEL(76), /* = 0x4c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05A_L006), HALT, LABEL(12), /* = 0x0c */ @@ -590,27 +590,27 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 82, _("Main 5B-5")), JUMP_LABEL(2), LABEL(77), /* = 0x4d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L000), HALT, LABEL(78), /* = 0x4e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L001), HALT, LABEL(79), /* = 0x4f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L002), HALT, LABEL(80), /* = 0x50 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L003), HALT, LABEL(81), /* = 0x51 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L004), HALT, LABEL(82), /* = 0x52 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E05B_L005), HALT, LABEL(13), /* = 0x0d */ @@ -620,15 +620,15 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 85, _("Main 6A-2")), JUMP_LABEL(2), LABEL(83), /* = 0x53 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E06A_L001), HALT, LABEL(84), /* = 0x54 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E06A_L002), HALT, LABEL(85), /* = 0x55 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E06A_L003), HALT, LABEL(14), /* = 0x0e */ @@ -640,23 +640,23 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 90, _("Main 7A-5")), JUMP_LABEL(2), LABEL(86), /* = 0x56 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07A_L001), HALT, LABEL(87), /* = 0x57 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07A_L002), HALT, LABEL(88), /* = 0x58 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07A_L003), HALT, LABEL(89), /* = 0x59 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07A_L004), HALT, LABEL(90), /* = 0x5a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07A_L005), HALT, LABEL(15), /* = 0x0f */ @@ -668,23 +668,23 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */ 95, _("Main 7B-5")), JUMP_LABEL(2), LABEL(91), /* = 0x5b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07B_L001), HALT, LABEL(92), /* = 0x5c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07B_L002), HALT, LABEL(93), /* = 0x5d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07B_L003), HALT, LABEL(94), /* = 0x5e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07B_L004), HALT, LABEL(95), /* = 0x5f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E07B_L005), HALT, LABEL(16), /* = 0x10 */ @@ -696,23 +696,23 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */100, _("Main 8A-5")), JUMP_LABEL(3), LABEL(96), /* = 0x60 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08A_L001), HALT, LABEL(97), /* = 0x61 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08A_L002), HALT, LABEL(98), /* = 0x62 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08A_L003), HALT, LABEL(99), /* = 0x63 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08A_L004), HALT, LABEL(100), /* = 0x64 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08A_L005), HALT, LABEL(17), /* = 0x11 */ @@ -725,27 +725,27 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */106, _("Main 8B-6")), JUMP_LABEL(3), LABEL(101), /* = 0x65 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L001), HALT, LABEL(102), /* = 0x66 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L002), HALT, LABEL(103), /* = 0x67 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L003), HALT, LABEL(104), /* = 0x68 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L004), HALT, LABEL(105), /* = 0x69 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L005), HALT, LABEL(106), /* = 0x6a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E08B_L006), HALT, LABEL(18), /* = 0x12 */ @@ -760,35 +760,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */114, _("Main 9A-8")), JUMP_LABEL(3), LABEL(107), /* = 0x6b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L001), HALT, LABEL(108), /* = 0x6c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L002), HALT, LABEL(109), /* = 0x6d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L003), HALT, LABEL(110), /* = 0x6e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L004), HALT, LABEL(111), /* = 0x6f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L005), HALT, LABEL(112), /* = 0x70 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L006), HALT, LABEL(113), /* = 0x71 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L007), HALT, LABEL(114), /* = 0x72 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L008), HALT, LABEL(19), /* = 0x13 */ @@ -802,31 +802,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */121, _("Main 9A-15")), JUMP_LABEL(3), LABEL(115), /* = 0x73 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L009), HALT, LABEL(116), /* = 0x74 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L010), HALT, LABEL(117), /* = 0x75 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L011), HALT, LABEL(118), /* = 0x76 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L012), HALT, LABEL(119), /* = 0x77 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L013), HALT, LABEL(120), /* = 0x78 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L014), HALT, LABEL(121), /* = 0x79 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E09A_L015), HALT, LABEL(20), /* = 0x14 */ @@ -841,35 +841,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */129, _("Main 10A-8")), JUMP_LABEL(3), LABEL(122), /* = 0x7a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L001), HALT, LABEL(123), /* = 0x7b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L002), HALT, LABEL(124), /* = 0x7c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L003), HALT, LABEL(125), /* = 0x7d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L004), HALT, LABEL(126), /* = 0x7e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L005), HALT, LABEL(127), /* = 0x7f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L006), HALT, LABEL(128), /* = 0x80 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L007), HALT, LABEL(129), /* = 0x81 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01E10A_L008), HALT, LABEL(21), /* = 0x15 */ @@ -882,27 +882,27 @@ static const struct ScriptCommand s_gs0_g1_s0_lives10_dlg2[] = { /* 0x8133068 */ CHOICE(/* label */135, _("Main2 ExD")), JUMP_LABEL(3), LABEL(130), /* = 0x82 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M01END_L001), HALT, LABEL(131), /* = 0x83 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M02E01A_L001), HALT, LABEL(132), /* = 0x84 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M02E01A_L002), HALT, LABEL(133), /* = 0x85 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M02E01A_L003), HALT, LABEL(134), /* = 0x86 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M02E02A_L001), HALT, LABEL(135), /* = 0x87 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_M02END_L001), HALT, }; @@ -943,15 +943,15 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 15, _("Sub0 1A-3")), JUMP_LABEL(1), LABEL(13), /* = 0x0d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S00E01A_L001), HALT, LABEL(14), /* = 0x0e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S00E01A_L002), HALT, LABEL(15), /* = 0x0f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S00E01A_L003), HALT, LABEL(4), /* = 0x04 */ @@ -965,31 +965,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 22, _("Sub1 2A-2")), JUMP_LABEL(1), LABEL(16), /* = 0x10 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E01A_L001), HALT, LABEL(17), /* = 0x11 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E01A_L002), HALT, LABEL(18), /* = 0x12 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E01A_L003), HALT, LABEL(19), /* = 0x13 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E01B_L001), HALT, LABEL(20), /* = 0x14 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E01C_L001), HALT, LABEL(21), /* = 0x15 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E02A_L001), HALT, LABEL(22), /* = 0x16 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E02A_L002), HALT, LABEL(5), /* = 0x05 */ @@ -1003,31 +1003,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 29, _("Sub2 2A-3")), JUMP_LABEL(1), LABEL(23), /* = 0x17 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E01A_L001), HALT, LABEL(24), /* = 0x18 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E01A_L002), HALT, LABEL(25), /* = 0x19 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E01A_L003), HALT, LABEL(26), /* = 0x1a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E01A_L004), HALT, LABEL(27), /* = 0x1b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E02A_L001), HALT, LABEL(28), /* = 0x1c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E02A_L002), HALT, LABEL(29), /* = 0x1d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S02E02A_L003), HALT, LABEL(6), /* = 0x06 */ @@ -1036,11 +1036,11 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 31, _("Sub3 1A-2")), JUMP_LABEL(1), LABEL(30), /* = 0x1e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S03E01A_L001), HALT, LABEL(31), /* = 0x1f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S03E01A_L002), HALT, LABEL(7), /* = 0x07 */ @@ -1054,31 +1054,31 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 38, _("Sub4 1F-1")), JUMP_LABEL(1), LABEL(32), /* = 0x20 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01A_L001), HALT, LABEL(33), /* = 0x21 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01A_L002), HALT, LABEL(34), /* = 0x22 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01B_L001), HALT, LABEL(35), /* = 0x23 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01C_L001), HALT, LABEL(36), /* = 0x24 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01D_L001), HALT, LABEL(37), /* = 0x25 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01E_L001), HALT, LABEL(38), /* = 0x26 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S04E01F_L001), HALT, LABEL(8), /* = 0x08 */ @@ -1087,11 +1087,11 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 40, _("Sub5 1A-2")), JUMP_LABEL(2), LABEL(39), /* = 0x27 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S05E01A_L001), HALT, LABEL(40), /* = 0x28 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S05E01A_L002), HALT, LABEL(9), /* = 0x09 */ @@ -1102,19 +1102,19 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 44, _("Sub6 1B-2")), JUMP_LABEL(2), LABEL(41), /* = 0x29 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S06E01A_L001), HALT, LABEL(42), /* = 0x2a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S06E01A_L002), HALT, LABEL(43), /* = 0x2b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S06E01B_L001), HALT, LABEL(44), /* = 0x2c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S06E01B_L002), HALT, LABEL(10), /* = 0x0a */ @@ -1124,15 +1124,15 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 47, _("Sub7 1A-3")), JUMP_LABEL(2), LABEL(45), /* = 0x2d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S07E01A_L001), HALT, LABEL(46), /* = 0x2e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S07E01A_L002), HALT, LABEL(47), /* = 0x2f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S07E01A_L003), HALT, LABEL(11), /* = 0x0b */ @@ -1147,35 +1147,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 55, _("Sub8 1A-8")), JUMP_LABEL(2), LABEL(48), /* = 0x30 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L001), HALT, LABEL(49), /* = 0x31 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L002), HALT, LABEL(50), /* = 0x32 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L003), HALT, LABEL(51), /* = 0x33 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L004), HALT, LABEL(52), /* = 0x34 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L005), HALT, LABEL(53), /* = 0x35 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L006), HALT, LABEL(54), /* = 0x36 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L007), HALT, LABEL(55), /* = 0x37 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S08E01A_L008), HALT, LABEL(12), /* = 0x0c */ @@ -1190,35 +1190,35 @@ static const struct ScriptCommand s_gs0_g1_s0_lives11_dlg2[] = { /* 0x8136060 */ CHOICE(/* label */ 63, _("Sub9 1C-1")), JUMP_LABEL(2), LABEL(56), /* = 0x38 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L001), HALT, LABEL(57), /* = 0x39 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L002), HALT, LABEL(58), /* = 0x3a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L003), HALT, LABEL(59), /* = 0x3b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L004), HALT, LABEL(60), /* = 0x3c */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01A_L005), HALT, LABEL(61), /* = 0x3d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01B_L001), HALT, LABEL(62), /* = 0x3e */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01B_L002), HALT, LABEL(63), /* = 0x3f */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S09E01C_L001), HALT, }; @@ -1242,15 +1242,15 @@ static const struct ScriptCommand s_gs0_g1_s0_lives13_dlg2[] = { /* 0x81376f8 */ MSG_NPC(1, _(" Farewell.")), JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SPAWN_EFFECT(/*kind*/7, /*script*/EFFECT_TEST1, /*group/sector*/ 1, 0), JUMP_LABEL(4), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SPAWN_EFFECT(/*kind*/7, /*script*/EFFECT_TEST2, /*group/sector*/ 1, 0), JUMP_LABEL(4), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x56, 0x00, 0x0000, 0x00000047, 0x00000000, NULL }, { 0xde, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, { 0x56, 0x00, 0x0000, 0x00000008, 0x00000000, NULL }, @@ -1263,7 +1263,7 @@ static const struct ScriptCommand s_gs0_g1_s0_lives13_dlg2[] = { /* 0x81376f8 */ { 0xde, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_LABEL(4), LABEL(3), /* = 0x03 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x97, 0x00, 0x0002, 0x00000001, 0x00000002, NULL }, WAIT(30), { 0x97, 0x00, 0x0002, 0x00000002, 0x00000003, NULL }, diff --git a/src/data/ground/ground_data_t01p01_station.h b/src/data/ground/ground_data_t01p01_station.h index da93db0ff..155be91eb 100644 --- a/src/data/ground/ground_data_t01p01_station.h +++ b/src/data/ground/ground_data_t01p01_station.h @@ -392,7 +392,7 @@ static const struct ScriptCommand s_gs1_g0_s0_obj0_dlg2[] = { /* 0x8138fc0 */ WAIT(1), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Welcome!\n{CENTER_ALIGN}The fun and bustling Pokémon Square!") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("Whiscash Pond ↑\n Pelipper Post Office →") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, RET, }; @@ -403,7 +403,7 @@ static const struct ScriptCommand s_gs1_g0_s0_obj1_dlg2[] = { /* 0x81390c0 */ { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(1), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}↑\n{CENTER_ALIGN}Whiscash Pond") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, RET, }; @@ -414,7 +414,7 @@ static const struct ScriptCommand s_gs1_g0_s0_obj2_dlg2[] = { /* 0x8139158 */ { 0x2d, 0x07, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(1), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("\n{CENTER_ALIGN}Pelipper Post Office →") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, RET, }; @@ -628,7 +628,7 @@ static const struct ScriptCommand s_gs1_g1_s0_lives11_dlg2[] = { /* 0x8139c9c */ MSG_NPC(1, _(" It's Lucario...{WAIT_PRESS}\nwhose exploits as a rescue leader are the\nstuff of legend.")), MSG_NPC(1, _(" I aspire to become like\nLucario.")), MSG_NPC(1, _(" To become even closer to\nLucario's greatness...\nThat is my goal and my dream.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), JUMP_SCRIPT(END_TALK), }; @@ -771,12 +771,12 @@ static const struct ScriptCommand s_gs1_g3_s0_lives0_dlg2[] = { /* 0x813a610 */ LABEL(3), /* = 0x03 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CANCEL_ENTITIES(3, 0), SELECT_ENTITIES(4, 0), JUMP_SCRIPT(END_TALK), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CANCEL_ENTITIES(3, 0), SELECT_ENTITIES(5, 0), JUMP_SCRIPT(END_TALK), @@ -836,7 +836,7 @@ static const struct ScriptCommand s_gs1_g4_s1_lives0_dlg0[] = { /* 0x813a9b4 */ FANFARE_PLAY2(515), { 0x36, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Grrruummmmmbbbbblle...!") }, WAIT(60), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), FANFARE_PLAY2(465), SELECT_ENTITIES(-1, 2), @@ -847,7 +847,7 @@ static const struct ScriptCommand s_gs1_g4_s1_lives0_dlg0[] = { /* 0x813a9b4 */ WAIT(60), MSG_NPC(2, _(" ....................................\n................................................\n................................................")), MSG_NPC(2, _(" ...Belly...rumbling...{WAIT_PRESS}\nHungry...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -1005,7 +1005,7 @@ static const struct ScriptCommand s_gs1_g4_s3_lives0_dlg2[] = { /* 0x813b1ac */ JUMP_LABEL(3), LABEL(2), /* = 0x02 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000045), MSG_NPC(1, _(" ...Nnnnn?{WAIT_PRESS}\nOh... Don't have food...")), @@ -1014,10 +1014,10 @@ static const struct ScriptCommand s_gs1_g4_s3_lives0_dlg2[] = { /* 0x813b1ac */ LABEL(3), /* = 0x03 */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} gave Munchlax\n{CENTER_ALIGN}one {COLOR GREEN_I}{MOVE_ITEM_0}{RESET}.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000041), MSG_NPC(1, _(" Th-this {COLOR GREEN_I}{MOVE_ITEM_0}{RESET}!{WAIT_PRESS}\nM-Munchlax big favorite!")), @@ -1031,21 +1031,21 @@ static const struct ScriptCommand s_gs1_g4_s3_lives0_dlg2[] = { /* 0x813b1ac */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000044), MSG_NPC(1, _(" Nnnnnnnnn!{WAIT_PRESS}\nDeeeeelicious!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000043), MSG_NPC(1, _(" Munchlax satisfied!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" ............{WAIT_PRESS}\nYou, good to Munchlax.")), MSG_NPC(1, _(" Munchlax say thank you\nwith this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x3c, 0x2c, 0x0000, 0x0000002b, 0x00000000, NULL }, WAIT(30), MSG_NPC(1, _(" Munchlax go now.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 4), RET, }; @@ -1152,7 +1152,7 @@ static const struct ScriptCommand s_gs1_g5_s1_lives0_dlg0[] = { /* 0x813bbf0 */ FANFARE_PLAY2(900), SELECT_OBJECTS(-1, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), FANFARE_PLAY2(465), SELECT_ENTITIES(-1, 2), @@ -1163,7 +1163,7 @@ static const struct ScriptCommand s_gs1_g5_s1_lives0_dlg0[] = { /* 0x813bbf0 */ WAIT(60), PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000045), MSG_NPC(2, _(" ....................................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1415,27 +1415,27 @@ static const struct ScriptCommand s_gs1_g5_s4_lives0_dlg0[] = { /* 0x813c7e4 */ CHOICE(/* label */ 1, _("Return it.")), CHOICE(/* label */ 2, _("Keep it.")), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), FANFARE_PLAY2(333), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} returned\n{CENTER_ALIGN}the {COLOR GREEN_I}Apple{RESET} to Munchlax.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" R-really?!")), MSG_NPC(2, _(" Really, you give food back\nto Munchlax?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000042), MSG_NPC(2, _(" Snivel...\nMunchlax feel all squishy inside...")), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" ............{WAIT_PRESS}\nYou honest and nice.\nMunchlax like.")), MSG_NPC(2, _(" Munchlax say thank you\nwith this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x3c, 0x2c, 0x0000, 0x0000002b, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Munchlax go now.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_ENTITIES(-1, 5), { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -1443,24 +1443,24 @@ static const struct ScriptCommand s_gs1_g5_s4_lives0_dlg0[] = { /* 0x813c7e4 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, RET, LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0002, 0x00000045), MSG_NPC(2, _(" Nnnnnnnnnnnn!{WAIT_PRESS}\nNnnnnnnnnnnnnnnnnnnnnnnnnnnnnn!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nMunchlax sad...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(20), MSG_NPC(2, _(" ..................{WAIT_PRESS}\nMeanie...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 6), @@ -1620,7 +1620,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" This is Pokémon Square.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1628,7 +1628,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That's the {COLOR CYAN}Kecleon Shop{RESET}.{WAIT_PRESS}\nYou can buy and sell items there.")), VARIANT_DEFAULT(_(" That's the {COLOR CYAN}Kecleon Shop{RESET}.{WAIT_PRESS}\nYou can buy and sell items there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -1636,7 +1636,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ VARIANT(/* == */ 1, _(" You can save your money\nthere.")), VARIANT_DEFAULT(_(" That's {COLOR CYAN}Felicity Bank{RESET}.")), VARIANT_DEFAULT(_(" You can save your money\nthere.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -1649,7 +1649,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ VARIANT_DEFAULT(_(" This is the\n{COLOR CYAN}Gulpin Link Shop{RESET}.{WAIT_PRESS}\nGulpin can link moves for you.")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS} What's linking?{WAIT_PRESS}\nWell, if you link moves...{WAIT_PRESS}\nYou can use them at the same time.")), VARIANT_DEFAULT(_(" I think you should ask Gulpin\nif you want to know more.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -1657,7 +1657,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ VARIANT(/* == */ 1, _(" If you have important\nitems, you should store them before you\nhead out to a dungeon.")), VARIANT_DEFAULT(_(" This is {COLOR CYAN}Kangaskhan Storage{RESET}.\nIf you store items here, they'll never go\nmissing.")), VARIANT_DEFAULT(_(" You should store important\nitems here before you go out on any\ndungeon adventure.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -1665,7 +1665,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" How do you like it?\nThe shops are useful, huh?")), VARIANT_DEFAULT(_(" What do you think?\nThe businesses here help us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1681,7 +1681,7 @@ static const struct ScriptCommand s_gs1_g6_s0_lives0_dlg0[] = { /* 0x813d45c */ VARIANT(/* == */ 3, _(" So, how about we go to\nthe {COLOR CYAN}Pelipper Post Office{RESET} first?")), VARIANT_DEFAULT(_(" I think we can get some\ninformation on rescue jobs.")), VARIANT_DEFAULT(_(" Let's first go to the\n{COLOR CYAN}Pelipper Post Office{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -1851,7 +1851,7 @@ static const struct ScriptCommand s_gs1_g7_s1_lives0_dlg0[] = { /* 0x813e880 */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Huh?\nAre you going home already?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x93, 0x08, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -1859,7 +1859,7 @@ static const struct ScriptCommand s_gs1_g7_s1_lives0_dlg0[] = { /* 0x813e880 */ VARIANT(/* == */ 1, _(" You can go home after we\ngo to the {COLOR CYAN}Pelipper Post Office{RESET}.")), VARIANT_DEFAULT(_(" We haven't gone to the\n{COLOR CYAN}Pelipper Post Office{RESET} yet.")), VARIANT_DEFAULT(_(" Let's go to the {COLOR CYAN}Pelipper\nPost Office{RESET} at least.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2000,11 +2000,11 @@ static const struct ScriptCommand s_gs1_g8_s1_lives0_dlg0[] = { /* 0x813f0dc */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000000), MSG_NPC(1, _(" Huh?\nYou want to go home already?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x93, 0x08, 0x000a, 0x00000004, 0x00000000, NULL }, WAIT(10), MSG_NPC(1, _(" We're already here.\nLet me show you around a bit more.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2130,7 +2130,7 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ MSG_NPC(2, _(" You've come to the right\nplace!{WAIT_PRESS} I sell Friend Areas to add\nmembers to your rescue team.")), MSG_NPC(2, _(" Since you're here for the\nvery first time, I'll give you two Friend\nAreas for free!")), MSG_NPC(2, _(" Let's do it!{WAIT_PRESS}\nWigglytuff〜♪ Wigglytuff〜♪{WAIT_PRESS}\nLet's be friends... Taaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(603), { 0x28, 0x01, 0x0005, 0x00000002, 0x00808010, NULL }, { 0x27, 0x01, 0x0005, 0x00000002, 0x00808010, NULL }, @@ -2145,7 +2145,7 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ MSG_NPC(2, _(" How do you recruit new\nmembers?{WAIT_PRESS} Well, if you're fighting\nPokémon that live in a Friend Area...")), MSG_NPC(2, _(" Sometimes, they will come\nto admire you as a friend.")), MSG_NPC(2, _(" In that case, they may ask\nto join your team.{WAIT_PRESS}\nJust keep trying!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_ENTITIES(-1, 1), WAIT(1), @@ -2157,17 +2157,17 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ MSG_NPC(3, _(" BZBZBZZT!{WAIT_PRESS}\nIF YOU'RE GIVING FRIEND AREAS AWAY...")), MSG_NPC(3, _(" CAN YOU ALSO GIVE MY\nFRIENDS ACCESS TO THE {COLOR GREEN_H}POWER PLANT{RESET}\nFRIEND AREA?")), MSG_NPC(3, _(" I ALSO WANT TO JOIN\nTHEIR RESCUE TEAM.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" OK! Gotcha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_NPC(2, _(" I'm giving it away today!{WAIT_PRESS}\nWigglytuff〜♪ Wigglytuff〜♪{WAIT_PRESS}\nLet's be friends... Taaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(603), { 0x28, 0x01, 0x0005, 0x00000002, 0x00808010, NULL }, { 0x27, 0x01, 0x0005, 0x00000002, 0x00808010, NULL }, @@ -2176,14 +2176,14 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ { 0xe2, 0x00, 0x025b, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY(206), MSG_NPC(2, _(" Congratulations!{WAIT_PRESS}\nYou can go to the {COLOR GREEN_H}Power Plant{RESET} now.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000041), MSG_NPC(4, _(" YES!\nNOW I CAN JOIN THEIR TEAM!")), MSG_NPC(4, _(" YAY! BZBZBZZT!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -2195,42 +2195,42 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" SORRY.{WAIT_PRESS}\nI KNOW MY FRIEND TURNED DOWN YOUR\nOFFER TO JOIN YOUR TEAM YESTERDAY...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" BUT AFTER MULLING IT\nOVER ALL LAST NIGHT...")), MSG_NPC(3, _(" MY FRIEND DEVELOPED AN\nOVERWHELMING DESIRE TO BECOME YOUR\nTEAM MEMBER.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" I APOLOGIZE, BUT COULD\nYOU ALLOW MY FRIEND TO JOIN YOUR\nRESCUE TEAM?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Oh, wow!{WAIT_PRESS}\nDon't forget, we were the ones that asked\nyour friend to join us.")), PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" So, yes, that'd be awesome!\nGlad to have your friend on board!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" ALL RIGHT!\nGOOD ON YOU! BZBZBZZ!")), MSG_NPC(3, _(" DO YOUR BEST, AND TRY\nNOT TO HINDER YOUR RESCUE\nTEAMMATES! BZBZBZZT!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000041), MSG_NPC(4, _(" YEAH! I'LL DO MY BEST!")), MSG_NPC(4, _(" YAY, BZBZBZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_4} became a team member!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x3b, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_4}?")), @@ -2240,7 +2240,7 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(1), /* = 0x01 */ { 0x3b, 0x19, 0x0004, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -2251,7 +2251,7 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ MSG_NPC(4, _(" I'LL BE RESTING UP IN THE\n{COLOR GREEN_H}POWER PLANT{RESET} FRIEND AREA.")), MSG_NPC(4, _(" IF YOU WANT ME ALONG\nFOR A RESCUE, COME GET ME AT THE\n{COLOR GREEN_H}POWER PLANT{RESET}.")), MSG_NPC(4, _(" OK! BZBZBZZ!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2262,7 +2262,7 @@ static const struct ScriptCommand s_gs1_g9_s0_lives0_dlg0[] = { /* 0x813f614 */ MSG_NPC(2, _(" You can go to your Friend\nAreas by taking the left path from your\nrescue team base.")), MSG_NPC(2, _(" There's a sign on the path\nto the left of your rescue team base,\nso you shouldn't have any trouble.")), MSG_NPC(2, _(" That's all the giveaways\ntoday!{WAIT_PRESS} If you want more Friend Areas,\nyou'll have to buy them now.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2459,7 +2459,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Huh? What's going on over\nthere?{WAIT_PRESS}\nThere seems to be a commotion.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0x53, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, @@ -2471,14 +2471,14 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ WAIT(15), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000041), MSG_NPC(2, _(" Please help my friend!\nPlease, I need help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" Forget it.\nWe're not about to work for that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" But my friend needs a gust\nof wind! Please!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2488,7 +2488,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, what's up?")), VARIANT_DEFAULT(_(" Hi, what's going on?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x93, 0x04, 0x000b, 0x0000004d, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -2496,12 +2496,12 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Huh? That scene there?")), MSG_NPC(4, _(" {NAME_2}'s begging for\na rescue mission, but not finding any luck.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" See that guy?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000b, 0x00000055, 0x00000000, NULL }, @@ -2510,7 +2510,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0x2e, 0x00, 0x0004, -0x00000002, 0x00000000, NULL }, MSG_NPC(4, _(" There, the one in the middle\nwith the pointy nose.")), MSG_NPC(4, _(" He's a Pokémon named\n{POKEMON_3}.\nHe's got his own rescue team.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -2519,12 +2519,12 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" But his team's greedy.\nThey don't work unless they get paid\nroyally.")), MSG_NPC(4, _(" {NAME_2}'s been begging\nfor help, but...{WAIT_PRESS}\nI feel sorry for that poor Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wait!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, WAIT(4), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -2545,11 +2545,11 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000041), MSG_NPC(3, _(" Oh! Wh-what do you want?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oh! It's {NAME_5}!") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That's {NAME_5}?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2561,13 +2561,13 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ MSG_NPC(5, _(" To save {NAME_2}'s\nfriend, a strong wind is needed.")), MSG_NPC(5, _(" Your leafy fans can whip up\npowerful winds.")), MSG_NPC(5, _(" It's an easy matter for you.{WAIT_PRESS}\nHelp that Pokémon out.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_FLIP, 0x0003, 0x00000041), MSG_NPC(3, _(" Grr...{WAIT_PRESS}\nTch! OK, we'll do it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -2578,7 +2578,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0xe4, 0x00, 0x000e, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wow...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That {NAME_3} agreed without\nany argument...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), BGM_FADEIN(80, 7), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -2589,7 +2589,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, who are those guys?")), VARIANT_DEFAULT(_(" Say, who are they?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -2597,7 +2597,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" What? You don't know?!\nIt's {NAME_5}'s team!")), MSG_NPC(4, _(" They're the most famous\nrescue team around these parts.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(5), @@ -2608,12 +2608,12 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x2e, 0x00, 0x0004, -0x00000002, 0x00000000, NULL }, MSG_NPC(4, _(" That's {NAME_6}.{WAIT_PRESS}\nHis Flamethrower can melt mountains!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" That's {NAME_7}.{WAIT_PRESS}\nHe takes great pride in his armored\nbody and amazing strength.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2622,18 +2622,18 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ MSG_NPC(4, _(" He's endowed with an\namazing brain and an IQ of 5,000.")), MSG_NPC(4, _(" Apparently, he's memorized\neverything that's happened in the world.")), MSG_NPC(4, _(" {NAME_5} does all the\ncommanding in the team.{WAIT_PRESS}\nHe's clearly in charge.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(16), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Th-thank you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_LEFT_, 0x0005, 0x00000000), MSG_NPC(5, _(" No need for thanks.\nIt is only natural that you get help.")), MSG_NPC(5, _(" If anyone turns you down\nagain, come see me.\nTake care.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), WAIT(1), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2652,14 +2652,14 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(70), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(30), WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0005, 0x00000000), MSG_NPC(5, _(" ...!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, @@ -2670,23 +2670,23 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ WAIT(24), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Wah! What's wrong?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" What's up?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" ......{WAIT_PRESS}\nIt's fine. Nothing.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, WAIT(64), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0005, 0x00000000), MSG_NPC(5, _(" Let's go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -2697,13 +2697,13 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ BGM_FADEIN(60, 7), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" Whew!\nThat was scary! Sheesh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0001, 0x0000000b), MSG_NPC(1, _(" ...C-cool...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -2713,8 +2713,8 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ VARIANT(/* == */ 3, _(" Let's recruit more members\nand make our rescue team first-class!")), VARIANT_DEFAULT(_(" Whew, {NAME_0}!{WAIT_PRESS}\nWe need to become like them!")), VARIANT_DEFAULT(_(" Let's recruit more members\nand make our rescue team first-class!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2722,7 +2722,7 @@ static const struct ScriptCommand s_gs1_g10_s0_lives2_dlg0[] = { /* 0x81412bc */ PORTRAIT(PLACEMENT_LEFT, 0x0005, 0x00000000), WAIT(32), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Not if I can help it!\nKekeh!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, BGM_FADEOUT(120), @@ -3270,14 +3270,14 @@ static const struct ScriptCommand s_gs1_g12_s0_lives0_dlg0[] = { /* 0x8144c8c */ { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0000, 0x00000041), MSG_NPC(0, _(" Please help my friend!\nPlease, I need help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" Forget it.\nWe're not about to work for that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(0, _(" But my friend needs a gust\nof wind! Please!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -3549,11 +3549,11 @@ static const struct ScriptCommand s_gs1_g14_s0_lives8_dlg2[] = { /* 0x8145944 */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000001), MSG_NPC(2, _(" I'm glad to see you're\nback safe.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Thank you.\nBut Shiftry is in trouble now...")), MSG_NPC(3, _(" Shiftry came and rescued\nme...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000001), MSG_NPC(3, _(" I hope he is safe...")), @@ -3575,11 +3575,11 @@ static const struct ScriptCommand s_gs1_g14_s0_lives9_dlg2[] = { /* 0x8145b14 */ WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000001), MSG_NPC(2, _(" I'm glad to see you're\nback safe.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Thank you.\nBut Shiftry is in trouble now...")), MSG_NPC(3, _(" Shiftry came and rescued\nme...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000001), MSG_NPC(3, _(" I hope he is safe...")), @@ -3601,11 +3601,11 @@ static const struct ScriptCommand s_gs1_g14_s0_lives10_dlg2[] = { /* 0x8145c54 * WAIT(1), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000001), MSG_NPC(2, _(" I'm glad to see you're\nback safe.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Thank you.\nBut Shiftry is in trouble now...")), MSG_NPC(3, _(" Shiftry came and rescued\nme...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000001), MSG_NPC(3, _(" I hope he is safe...")), @@ -3832,22 +3832,22 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?{WAIT_PRESS}\nWhat are those guys talking about?")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS}\nWhat are they chatting about?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Yeah, I'm kind of shocked.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" I always thought it was\nonly a legend.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" But could it be true?{WAIT_PRESS}\nI'm having a hard time believing it...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6b, 0x00, 0x0100, 0x0000002d, 0x00000000, NULL }, @@ -3856,7 +3856,7 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, what's up?")), VARIANT_DEFAULT(_(" Hi, what's happening?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -3864,7 +3864,7 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Well, you know the\n{COLOR GREEN}{NAME_6} legend{RESET}?\nThat old story?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6a, 0x00, 0x0100, 0x00000010, 0x00000000, NULL }, @@ -3872,7 +3872,7 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_NPC(1, _(" The {NAME_6} legend?{WAIT_PRESS}\nWhat's that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -3880,31 +3880,31 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ MSG_NPC(2, _(" What, you don't know?")), MSG_NPC(2, _(" You know, it's that old\nfairy tale.")), MSG_NPC(2, _(" How you'll get cursed if you\never grab one of Ninetales's tails.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" All this time, everyone\nthought it was just a legend.")), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" But lately, it's been rumored\nthat maybe it really happened.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Well, it is still a mere\nrumor.")), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, MSG_NPC(3, _(" I wouldn't put too much\nstock in that story if I were you.")), MSG_NPC(3, _(" Personally, I don't believe\nin rumors of that sort.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" If you want to know more\nabout the {NAME_6} legend...")), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, MSG_NPC(2, _(" You should go see a\nPokémon named {NAME_5}.\nHe knows the story well.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" {NAME_5} is uh...{WAIT_PRESS}\nYou know, in his pond.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, @@ -3915,7 +3915,7 @@ static const struct ScriptCommand s_gs1_g17_s0_lives0_dlg0[] = { /* 0x8146704 */ { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" You should visit him if you\nwant to know more.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -4131,14 +4131,14 @@ static const struct ScriptCommand s_gs1_g19_s0_lives0_dlg0[] = { /* 0x8147af4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...Listen, {NAME_0}.")), VARIANT_DEFAULT(_(" ...Say, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000005), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Want to knock\noff for today?\nI can't seem to get into it...")), VARIANT_DEFAULT(_(" Want to call it a day now?\nI can't seem to get motivated today...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -4207,14 +4207,14 @@ static const struct ScriptCommand s_gs1_g20_s0_lives0_dlg0[] = { /* 0x8147f8c */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_NPC(1, _(" Huh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x91, 0x05, 0x000a, 0x00000005, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(20), { 0x91, 0x0a, 0x0001, 0x00000002, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" The town's atmosphere\nfeels different somehow...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4222,7 +4222,7 @@ static const struct ScriptCommand s_gs1_g20_s0_lives0_dlg0[] = { /* 0x8147f8c */ PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" Maybe something's happened.")), MSG_NPC(1, _(" {NAME_0}, let's check\nit out!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -4302,34 +4302,34 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Look!\nWhy's everyone gathered over there?")), VARIANT_DEFAULT(_(" Look!\nWhy is everyone gathered together?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, what's up?")), VARIANT_DEFAULT(_(" Hi, what's going on?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000001), MSG_NPC(5, _(" Let me tell you, I was\namazed!{WAIT_PRESS}\nIt really was true!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What are you talking about?")), VARIANT_DEFAULT(_(" What was true?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0005, 0x00000000), MSG_NPC(5, _(" The Ninetales legend!")), MSG_NPC(5, _(" I never believed the\nrumors, so you can bet I was shocked\nto learn the truth!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_0}, {NAME_1}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -4337,7 +4337,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ CALL_SCRIPT(NOTICE_FUNC), { 0x93, 0x05, 0x000a, 0x00000036, 0x00000000, NULL }, MSG_NPC(1, _(" Oh, hi, {NAME_3}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -4346,27 +4346,27 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_NPC(1, _(" Even you came out,\n{NAME_3}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Yes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" Ssh!{WAIT_PRESS} Quiet.")), MSG_NPC(6, _(" That guy there's telling us.\nKeep it down.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, WAIT(30), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hah?{WAIT_PRESS}\nWho's doing the talking?")), VARIANT_DEFAULT(_(" Huh?{WAIT_PRESS} Who's talking?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" I-it's...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -4391,25 +4391,25 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ CALL_SCRIPT(SHOCK_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Ge-{NAME_2}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_SWITCH(9), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" ...So I went up to the\n{COLOR CYAN}Hill of the Ancients{RESET}.")), MSG_NPC(2, _(" And that's where I saw it!\nIt was shocking stuff, I tell you!\nKekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Shocking stuff?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" This certain Pokémon was\ngetting advice from {NAME_7}.")), PORTRAIT_REP(0x0002, 0x00000004), MSG_NPC(2, _(" That Pokémon...\nIt looks like an ordinary Pokémon...")), PORTRAIT_REP(0x0002, 0x00000006), MSG_NPC(2, _(" But get this!{WAIT_PRESS}\nIt was originally a human!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -4421,20 +4421,20 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0x93, 0x05, 0x000a, 0x00000022, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0005, 0x00000000), MSG_NPC(5, _(" What?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" It really existed...\nA human that turned into a Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT_REP(0x0002, 0x00000004), MSG_NPC(2, _(" There's more.\n{NAME_7} told the human...")), MSG_NPC(2, _(" That how the human became\na Pokémon has a lot to do with how\nthe world's balance is upset.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Wait a second...{WAIT_PRESS}\nThat's exactly like the Ninetales legend!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0002, 0x00000000), @@ -4447,7 +4447,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ MSG_NPC(2, _(" And if the world's balance\nisn't restored soon...")), PORTRAIT_REP(0x0002, 0x00000006), MSG_NPC(2, _(" The unthinkable will happen\nto the world! That's what Xatu said!\nKekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -4458,38 +4458,38 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ FANFARE_PLAY2(473), { 0x93, 0x05, 0x000a, 0x0000005b, 0x00000000, NULL }, MSG_NPC(4, _(" Wh-what?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0005, 0x00000001), MSG_NPC(5, _(" The world...{WAIT_PRESS}\nThe unthinkable's going to happen?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(6, _(" What are we to do?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000003), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" That Gengar...!{WAIT_PRESS}\nHe's getting everyone worked up...")), VARIANT_DEFAULT(_(" That Gengar...!{WAIT_PRESS}\nHe's deliberately working everyone up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Now, now, people.{WAIT_PRESS}\nThere's no need to panic.")), MSG_NPC(2, _(" Why, I think there's a way\nwe can do something about this.\nKekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0010, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0011, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), WAIT(60), MSG_NPC(6, _(" Wh-what can we do?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_NPC(2, _(" Oh, it's quite simple,\nactually.")), MSG_NPC(2, _(" If the world's balance is\nupset by a human becoming a Pokémon...")), PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" Then, if that human is\ngone, then everything should return\nto normal, correct?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -4499,13 +4499,13 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe5, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Th-that's true!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_LEFT, 0x0006, 0x00000000), MSG_NPC(6, _(" When you put it that way...\nmaybe you're right.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh!\nAnd that human is the rotten coward\nthat abandoned {NAME_8}, correct?")), @@ -4513,12 +4513,12 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000004), MSG_NPC(2, _(" I don't think the human can\ncomplain about anything if we get\nrid of it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_STOP, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Isn't that right,\n{NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -4535,14 +4535,14 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" Wha...{WAIT_PRESS} What?!{WAIT_PRESS}\nIt... It can't be!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), MSG_NPC(5, _(" Y-you...{WAIT_PRESS}\nYou were that human?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" Is that true?\nHey!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -4550,12 +4550,12 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" W-w-whoa...{WAIT_PRESS}\nThis is, like...\nWe can explain...")), VARIANT_DEFAULT(_(" W-w-wait...{WAIT_PRESS}\nThis is, like...\nThere's a good explanation for...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" We're not asking you.\nWe're asking {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" Hey! {NAME_0}!\nSo what is it?!")), @@ -4563,19 +4563,19 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ ASK3(FALSE, /*default*/ -1, /* speaker */ 6, _(" Are you really the human\nthat was in the legend?")), CHOICE(/* label */ 35, _("..................")), CHOICE(/* label */ 35, _("..................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), LABEL(35), /* = 0x23 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" {NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_0}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000001), @@ -4598,7 +4598,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" Let's get rid of\n{NAME_0} and regain peace.\nKekekekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -4618,7 +4618,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ VARIANT(/* == */ 1, _(" E-everyone, hold up.\nWhat's with you?{WAIT_PRESS}\nWhat are you going to do?")), VARIANT_DEFAULT(_(" ...Wh-what?")), VARIANT_DEFAULT(_(" E-everyone, what's gotten\ninto you?{WAIT_PRESS}\nWhat are you going to do?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x05, 0x0002, 0x00000004, 0x00000000, NULL }, WAIT(15), @@ -4629,7 +4629,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" {NAME_0}, forgive me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(20), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -4645,7 +4645,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Wah! What the...?!")), VARIANT_DEFAULT(_(" Wah! What are you doing?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -4653,7 +4653,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Waaaaah!{WAIT_PRESS}\n{NAME_0}, run!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe5, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x02, 0x000a, 0x00000022, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -4667,7 +4667,7 @@ static const struct ScriptCommand s_gs1_g21_s0_lives0_dlg0[] = { /* 0x81484d4 */ WAIT(30), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Serves them right!\nKekekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -5604,7 +5604,7 @@ static const struct ScriptCommand s_gs1_g23_s0_station_sref_script[] = { /* 0x81 { 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...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, 0), @@ -5646,7 +5646,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh!\nYou lot!")), MSG_NPC(2, _(" Why aren't you out there\nhunting down {NAME_0}'s team?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -5654,16 +5654,16 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0004, 0x00000000), MSG_NPC(4, _(" That's easy for you to say...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" It's too much for us...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" They say {NAME_0}'s\nteam has gone way far out there.")), MSG_NPC(5, _(" If we went, the best we\ncould hope for is maybe the Lapis Cave.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -5684,32 +5684,32 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000042), MSG_NPC(3, _(" Hahaha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP, 0x0002, 0x00000043), MSG_NPC(2, _(" Kekeh!\nWhat a spineless lot you are!\nTch!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000041), MSG_NPC(4, _(" You're so full of big talk!\nWhat about your team, Gengar?")), MSG_NPC(4, _(" You just hang around in the\nsquare and don't do a thing.")), MSG_NPC(4, _(" Walk the talk.\nYou guys go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" We're out of that picture.\nKekeh!")), MSG_NPC(2, _(" Our role is to receive word\nabout {NAME_0}'s demise.\nKekekekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" Tch!\nJust appointed yourself that...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Oh, my gosh! Oh, my goodness!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -5721,30 +5721,30 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" {NAME_7}, what's\nthe word?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0007, 0x00000042), MSG_NPC(7, _(" {NAME_0}...\n{NAME_0} is...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" Oh! Finally!\nWe're finally rid of {NAME_0}!\nKekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0007, 0x00000045), MSG_NPC(7, _(" No!{WAIT_PRESS}\nIt's the opposite!")), MSG_NPC(7, _(" {NAME_0} is back!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" Kekeh?!\nWhat did you say?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5774,12 +5774,12 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0006, 0x00000042), PORTRAIT_POS(6, -2, 0), MSG_NPC(6, _(" ...{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), PORTRAIT_POS(5, 1, 0), MSG_NPC(5, _(" Th-they're back...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0010, 0x00000000, 0x00000000, NULL }, @@ -5801,23 +5801,23 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" It's good to be back in the\nsquare again, {NAME_0}.")), VARIANT_DEFAULT(_(" It feels kind of nostalgic\nto be back in the square, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Hey, {NAME_1}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000003), { 0x93, 0x01, 0x000b, 0x0000005b, 0x00000000, NULL }, MSG_NPC(1, _(" Hm! Oh, it's you,\n{NAME_2}.\nIt's been a while.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0002, 0x00000044), { 0x34, 0x00, 0x0002, 0x00000000, 0x00000000, _(" (Kekeh! What's with that\nsmug confidence?)") }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, 0x0002, 0x00000000, 0x00000000, _(" (Kekeh! Maybe...)\n") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5828,7 +5828,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ VARIANT_DEFAULT(_(" {NAME_2}!{WAIT_PRESS}\nEverything you said was completely\nwrong!")), VARIANT_DEFAULT(_(" {NAME_0} had nothing to\ndo with it!")), VARIANT_DEFAULT(_(" {NAME_0} was innocent!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(463), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -5845,7 +5845,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000042), PORTRAIT_POS(3, -1, 0), MSG_NPC(3, _(" Is that true?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT_REP(0x0001, 0x00000000), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -5855,11 +5855,11 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ VARIANT_DEFAULT(_(" Yup.\nWe met Ninetales and asked.")), VARIANT_DEFAULT(_(" {NAME_0} isn't the human\nfrom the legend.")), VARIANT_DEFAULT(_(" We're back because we\ndiscovered the truth.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ugegegegegegegeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -5873,10 +5873,10 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Kekeh! W-wait a second!{WAIT_PRESS}\nYou can't be trusted yet.")), MSG_NPC(2, _(" If you're going to make that\nclaim, let's see some proof.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" P-proof?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -5889,10 +5889,10 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" That's right.\nSome hard evidence! Kekeh!")), MSG_NPC(2, _(" Let's see some proof!\nCome on, out with it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000005), MSG_NPC(1, _(" Proof...{WAIT_PRESS}\nWe don't have any proof...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5902,12 +5902,12 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Kekekekekekeh!{WAIT_PRESS}\nIt's too bad you don't have proof!")), MSG_NPC(2, _(" You came back for us so\nwe could get rid of you easier!\nHow conveniently foolish! Kekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" Now, fellow Pokémon.{WAIT_PRESS}\nHere's your chance to get rid of\n{NAME_0}! Kekekekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(90), FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -5916,7 +5916,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ WAIT(180), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" ............{WAIT_PRESS}Kekeh?!{WAIT_PRESS}\nWhat's wrong, everyone?\nDon't you want to be rid of {NAME_0}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -5925,7 +5925,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ MSG_NPC(6, _(" I...{WAIT_PRESS}\nI always believed in {NAME_0}!")), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" You don't fool me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(468), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, @@ -5933,7 +5933,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" Ugeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -5950,7 +5950,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ MSG_NPC(3, _(" I was saved by\n{NAME_0}'s team before.")), MSG_NPC(3, _(" I joined the chase with a\nheavy heart because of your urging...")), MSG_NPC(3, _(" But I simply can't think\nof {NAME_0} being bad in any way.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, @@ -5958,29 +5958,29 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT_FLIP, 0x0002, 0x00000046), MSG_NPC(2, _(" Ugegegeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000041), MSG_NPC(4, _(" I've heard enough too!\nI believe {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" Yeah, that's right!\nWho needs proof?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, WAIT(60), PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000046), MSG_NPC(2, _(" Ugegegegegege!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), PORTRAIT_REP(0x0001, 0x00000008), MSG_NPC(1, _(" E-everyone...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), SELECT_ENTITIES(-1, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -5998,7 +5998,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ TEXTBOX_AUTO_PRESS(210, 210), { 0x2e, 0x03, 0x0009, -0x00000002, 0x00000000, NULL }, MSG_NPC(9, _(" Extra! Extra!\nRead all about it!")), - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, TEXTBOX_AUTO_PRESS(-1, -1), { 0x91, 0x0a, 0x000a, 0x00000003, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -6011,17 +6011,17 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0008, 0x00000000), MSG_NPC(8, _(" What?\nWhat is this?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(4), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0007, 0x00000000), MSG_NPC(7, _(" ......{WAIT_PRESS}\nIt looks like a newspaper...\nDoesn't it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" OK, I'll read it aloud.\nLet's see...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -6033,14 +6033,14 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}...And proved that it had nothing to\n{CENTER_ALIGN}do with the human in the legend.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}As a result, Gengar's claims were\n{CENTER_ALIGN}found to be malicious lies.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}-End-") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(470), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Ugegegegegegegegegegegeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -6050,14 +6050,14 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0004, 0x00000041), PORTRAIT_POS(4, 2, 0), MSG_NPC(4, _(" You rotten...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Gegegeh!\nR-run!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, @@ -6071,7 +6071,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Stop, you liar!\nYou conned us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -6086,17 +6086,17 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ WAIT(30), PORTRAIT(PLACEMENT_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" Welcome back!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0001, 0x00000009), MSG_NPC(1, _(" Yup! It's good to be back!{WAIT_PRESS}\nWe're back like we promised.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT_REP(0x0006, 0x00000042), MSG_NPC(6, _(" ...Sniffle...")), MSG_NPC(6, _(" I'm so glad...{WAIT_PRESS}\n{NAME_0} isn't suspected anymore...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(1, _(" Yup, I'm glad too.")), MSG_NPC(1, _(" We won't have to keep\nrunning from everyone anymore.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000b, 0x00000022, 0x00000000, NULL }, @@ -6108,7 +6108,7 @@ static const struct ScriptCommand s_gs1_g23_s0_lives0_dlg0[] = { /* 0x814dc14 */ VARIANT_DEFAULT(_(" {NAME_0}.")), VARIANT_DEFAULT(_(" We're both exhausted.\nI'm going to get some sleep.")), VARIANT_DEFAULT(_(" Our rescue team gets\nrevived tomorrow!{WAIT_PRESS}\nLet's try to do our best!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -6760,7 +6760,7 @@ static const struct ScriptCommand s_gs1_g24_s0_lives0_dlg2[] = { /* 0x8152c74 */ MSG_NPC(1, _(" I was fully convinced of\nyour guilt, {NAME_0}.")), MSG_NPC(1, _(" But I am glad to hear\nyou are free from that cloud of\nsuspicion〜♪")), MSG_NPC(1, _(" I'll never give you my\nbusiness again!{WAIT_PRESS}\nI hope you won't say that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -6789,7 +6789,7 @@ static const struct ScriptCommand s_gs1_g24_s0_lives2_dlg2[] = { /* 0x8152edc */ SET_ARRAYVAL(EVENT_M01E09A_2N, 2, 1), MSG_NPC(1, _(" I do apologize.{WAIT_PRESS}\nHow could one run a bank without\ntrusting clients?")), MSG_NPC(1, _(" I promise to satisfy all\nyour banking needs from now on.\nI hope you'll stay.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -6804,7 +6804,7 @@ static const struct ScriptCommand s_gs1_g24_s0_lives3_dlg2[] = { /* 0x8153034 */ SET_ARRAYVAL(EVENT_M01E09A_2N, 3, 1), MSG_NPC(1, _(" I doubted you too!\nI do so apologize!")), MSG_NPC(1, _(" If you could wipe the slate\nclean, I will do my best to serve your\nlinking needs!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -6821,7 +6821,7 @@ static const struct ScriptCommand s_gs1_g24_s0_lives4_dlg2[] = { /* 0x8153174 */ MSG_NPC(1, _(" I thought there had to\nbe a mistake.")), MSG_NPC(1, _(" I mean, look at you.\nYou don't look like the sort who can be\nup to no good.")), MSG_NPC(1, _(" I'll keep looking after your\nthings, dears! You can always count on me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -6836,7 +6836,7 @@ static const struct ScriptCommand s_gs1_g24_s0_lives5_dlg2[] = { /* 0x8153334 */ SET_ARRAYVAL(EVENT_M01E09A_2N, 5, 1), MSG_NPC(1, _(" I believed in you,\n{NAME_0}!")), MSG_NPC(1, _(" Because you're my friend!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -6921,7 +6921,7 @@ static const struct ScriptCommand s_gs1_g24_s1_lives0_dlg0[] = { /* 0x8153894 */ MSG_NPC(3, _(" I am so sorry!")), MSG_NPC(3, _(" I was convinced that\n{NAME_0} had to be the one.")), MSG_NPC(3, _(" I'm very ashamed that I\ntreated a valuable customer with such\ndisdain and suspicion...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -6936,7 +6936,7 @@ static const struct ScriptCommand s_gs1_g24_s1_lives0_dlg0[] = { /* 0x8153894 */ MSG_NPC(3, _(" I will do my best to obtain\neven better Technical Machines and Orbs.\nI hope for your continued patronage!")), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_LIVES(-1, 0), RET, }; @@ -6972,7 +6972,7 @@ static const struct ScriptCommand s_gs1_g24_s1_lives2_dlg2[] = { /* 0x8153cd4 */ MSG_NPC(1, _(" I was fully convinced of\nyour guilt, {NAME_0}.")), MSG_NPC(1, _(" But I am glad to hear\nyou are free from that cloud of\nsuspicion〜♪")), MSG_NPC(1, _(" I'll never give you my\nbusiness again!{WAIT_PRESS}\nI hope you won't say that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -7182,7 +7182,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Wow!\nLook at all the Pokémon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000004d, 0x00000000, NULL }, @@ -7191,7 +7191,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_NPC(2, _(" Looks like they sent out\nto a lot of rescue teams for help.")), MSG_NPC(2, _(" I've seen some pretty\nfamous leaders from faraway places.")), MSG_NPC(2, _(" That {NAME_3}...\nI wonder what he's planning to do with\nall these rescue teams?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, @@ -7203,63 +7203,63 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, 0, -1), MSG_NPC(3, _(" Can I get everyone's\nattention here?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(3, _(" I, uh...{WAIT_PRESS}\nIt's not my style to get up in front of\neveryone like this, and...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(3, _(" ...Sorry.\nThis isn't the time for that!")), BGM_SWITCH(10), PORTRAIT_REP(0x0003, 0x00000001), MSG_NPC(3, _(" There's big trouble!{WAIT_PRESS}\n{NAME_8}'s team went underground...")), MSG_NPC(3, _(" But they haven't returned!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(473), { 0x56, 0x00, 0x0000, 0x0000005b, 0x00000000, NULL }, WAIT(90), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wh-what?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Is that true?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(3, _(" Yes, unfortunately.")), MSG_NPC(3, _(" {NAME_8} led his team\nunderground to quell {NAME_9}...")), MSG_NPC(3, _(" And that's it.\nWe haven't heard anything from them.")), MSG_NPC(3, _(" To be honest...{WAIT_PRESS}\nWe have no idea what became of them.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(90), { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" No idea?{WAIT_PRESS}\nHow is that possible?!{WAIT_PRESS}\nThis is {NAME_8} you're talking about?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" But they haven't come back.\nThat's for real!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That's right...\nAnd it sounds as if {NAME_9} is out of\nour league...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" What? It's that tough?\nThis Pokémon named {NAME_9}?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Why don't you go underground and\nsee for yourself?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Hunh?!\nYou've gotta be kidding me!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" There's magma flowing everywhere\nunderground.{WAIT_PRESS}\nI'd burn up if I went anywhere like that!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Quiet, please! Be quiet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, @@ -7268,14 +7268,14 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_NPC(3, _(" It's not a place where just\nanyone can go.")), MSG_NPC(3, _(" That's why I asked so many\nrescue teams to gather today.")), MSG_NPC(3, _(" I propose that a special\nteam be formed by choosing the best of\nthe best.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(3, _(" Who will step forward?!")), MSG_NPC(3, _(" Who among us will be the\nheroes to take on the challenges\nunderground?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(150), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7287,14 +7287,14 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_0}.\nThis is some chance. Let's go for it.")), VARIANT_DEFAULT(_(" Say, {NAME_0}.\nThis is a great opportunity. Let's go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, { 0x62, 0x00, 0x0100, -0x00000010, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Don't bother, you guys.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7302,12 +7302,12 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's with you?\nCan you get out of the way?")), VARIANT_DEFAULT(_(" What's with you?\nCan you step aside?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" You guys have gotten a lot\ntougher, that's for sure, but...")), MSG_NPC(2, _(" There's plenty of tougher\nPokémon out there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -7318,13 +7318,13 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Will no one step forward?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(120), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I'll go.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -7334,17 +7334,17 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ WAIT(60), BGM_SWITCH(7), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Whoa!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" It's B-{NAME_4}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" You mean...\n{COLOR CYAN}Team Hydro{RESET}'s roughneck {NAME_4}?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Those waterspouts on his back can\nrocket water so fast that it punches\nthrough thick iron plates!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -7355,10 +7355,10 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_NPC(4, _(" It's rumored {NAME_9}\nis a Ground type.")), MSG_NPC(4, _(" I am a Water type.\nStrong against the Ground type.")), MSG_NPC(4, _(" My Hydro Pump will put\n{NAME_9} down in one shot.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I'll join the party too.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -7366,16 +7366,16 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0x93, 0x04, 0x000a, 0x00000069, 0x00000000, NULL }, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Woohoo! It's {NAME_5}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" She's {COLOR CYAN}Team Constrictor{RESET}'s leader.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" She's known for persistent and\nclingy attacks.{WAIT_PRESS} She ensnares foes with\nher tentacles, then head-butts them!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" She'd be nasty to face in any battle\nof endurance.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -7384,10 +7384,10 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), PORTRAIT_POS(5, 0, -1), MSG_NPC(5, _(" Darlings, when I see a tough\nPokémon, I want to tangle with them.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Say, how about not forgetting about\nme?") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -7395,14 +7395,14 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0x93, 0x04, 0x000a, 0x0000006a, 0x00000000, NULL }, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wow! {NAME_6}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" He's the most brutal out of {COLOR CYAN}Team\nRumblerock{RESET}!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" His body is rock hard.\nHe's supposed to be able to withstand\nhuge explosions without taking damage.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7411,7 +7411,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ PORTRAIT_POS(6, 0, 1), MSG_NPC(6, _(" If {NAME_9}'s awakened\nunderground, that suits me fine.")), MSG_NPC(6, _(" I'll use my Rock Throw to\nkeep it buried underground.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), WAIT(30), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -7424,7 +7424,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Oh, {NAME_4}!\n{NAME_5}! And {NAME_6}!")), MSG_NPC(3, _(" No one could complain\nabout your selection.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -7433,19 +7433,19 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(3, _(" We will have these three\nrescuers head underground!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Yeah! Good choice!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" You're representing us!\nMake us proud!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Let's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -7460,10 +7460,10 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0x91, 0x1e, 0x0002, 0x00000006, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Win it for us!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Save {NAME_8}'s team!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7473,7 +7473,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ { 0x93, 0x04, 0x000a, 0x0000004d, 0x00000000, NULL }, MSG_NPC(2, _(" See?\nThey look pretty tough, eh?")), MSG_NPC(2, _(" Let them handle things.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -7482,7 +7482,7 @@ static const struct ScriptCommand s_gs1_g26_s0_lives0_dlg0[] = { /* 0x8154794 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" OK...\nI guess we can't say anything,\n{NAME_0}.")), VARIANT_DEFAULT(_(" Hmmm...\nIt can't be helped, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, @@ -8668,16 +8668,16 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 1, _(" What's up here?")), VARIANT_DEFAULT(_(" Oh! {NAME_2}!")), VARIANT_DEFAULT(_(" What's going on here?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Hey, {NAME_1}.\nW-well...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ...You should just go see\nfor yourself...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6b, 0x00, 0x0100, 0x00000064, 0x00000000, NULL }, @@ -8690,7 +8690,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ BGM_SWITCH(9), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Look!\nIt's {NAME_5}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, @@ -8698,21 +8698,21 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_3}!{WAIT_PRESS}\nWhat's going on here?!")), VARIANT_DEFAULT(_(" {NAME_3}!{WAIT_PRESS}\nWhat happened here?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, 0, -1), MSG_NPC(3, _(" ............{WAIT_PRESS}\nThey were wiped out...{WAIT_PRESS}\nIn the underground dungeon...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SHOCK_FUNC), MSG_NPC(1, _(" You're kidding!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000003), PORTRAIT_POS(5, 0, 1), MSG_NPC(5, _(" Groan... That place...{WAIT_PRESS}\nIt's rough, seriously...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, @@ -8720,14 +8720,14 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0006, 0x00000000), PORTRAIT_POS(6, 0, -1), MSG_NPC(6, _(" ...We couldn't get far\nenough to even see {NAME_9}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0007, 0x00000000), PORTRAIT_POS(7, 0, 1), MSG_NPC(7, _(" I don't want to ever go\nback to a place that bad...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, @@ -8737,12 +8737,12 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000055, 0x00000000, NULL }, MSG_NPC(3, _(" ...It appears the dungeon\nunderground...{WAIT_PRESS}\nis far worse than we'd imagined...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), WAIT(60), BGM_SWITCH(10), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Kekekekekeh!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -8755,7 +8755,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" What fools.{WAIT_PRESS}\nThat's what you get for trying the\nimpossible.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_RIGHT, 0x0001, 0x00000003), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -8763,7 +8763,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 1, _(" Why don't you shut up?!{WAIT_PRESS}\nThis is about saving {NAME_8}'s team.\nWe have to try!")), VARIANT_DEFAULT(_(" Ge-{NAME_4}!")), VARIANT_DEFAULT(_(" What are you saying?!{WAIT_PRESS}\nIt's only expected that we try. This is for\nsaving {NAME_8}'s team.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000d, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8773,12 +8773,12 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(15), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" Kekeh!\nYou really find thinking hard, don't you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" Even they look smart\ncompared to you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -8794,7 +8794,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" There's no way. I can't go.{WAIT_PRESS}\nI burn too easily.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I can't take earthquakes.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" It'd be like going and knowing full\nwell we'd get wiped...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8803,7 +8803,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(30), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0001, 0x00000005), MSG_NPC(1, _(" ...E-everyone...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -8811,12 +8811,12 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(15), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" You see?\nEven they finally seem to understand\ntheir situation. Kekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" I...{WAIT_PRESS}\nMy leafy fans would burn up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8827,7 +8827,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x00000005), PORTRAIT_POS(1, -2, 0), MSG_NPC(1, _(" E-even {NAME_3}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -8841,13 +8841,13 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000001), MSG_NPC(4, _(" ............Huh?{WAIT_PRESS}\nDid I say something profound?\nKekekekekekekeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000005b, 0x00000000, NULL }, WAIT(30), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0001, 0x00000005), MSG_NPC(1, _(" Urf...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -8864,14 +8864,14 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT_DEFAULT(_(" {NAME_0}...\nI don't know anymore...")), VARIANT_DEFAULT(_(" What should we do?")), VARIANT_DEFAULT(_(" Even if it's the impossible...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(17), /* = 0x11 */ ASK3(FALSE, /*default*/ -1, /* speaker */ 1, _(" Should we still\ntry to rescue {NAME_8}?")), CHOICE(/* label */ 18, _("Let's go!")), CHOICE(/* label */ 19, _("Let's not.")), LABEL(19), /* = 0x13 */ MSG_NPC(1, _(" ...{WAIT_PRESS}Really...?{WAIT_PRESS}\nYou honestly think we shouldn't go?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(17), LABEL(18), /* = 0x12 */ PORTRAIT_REP(0x0001, 0x0000000b), @@ -8880,7 +8880,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 1, _(" All right, {NAME_0}!")), VARIANT_DEFAULT(_(" ...{WAIT_PRESS}Yes...{WAIT_PRESS}\nI think so too.")), VARIANT_DEFAULT(_(" OK, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -8888,7 +8888,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ BGM_SWITCH(7), PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" Everyone, listen!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), @@ -8901,18 +8901,18 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 1, _(" We're going!\nTo rescue {NAME_8}'s team!")), VARIANT(/* == */ 3, _(" We're going!\nTo rescue {NAME_8}'s team!")), VARIANT_DEFAULT(_(" We're going!\nTo rescue {NAME_8}'s team!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(465), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wha-what?!") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" What did they say?!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0004, 0x00000006), MSG_NPC(4, _(" Ugegege?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, @@ -8923,7 +8923,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" {COLOR CYAN}Team {TEAM_NAME}{RESET}...?{WAIT_PRESS}\nYou mean the lot that were suspected of\ninvolvement in the Ninetales legend?") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I heard about that!{WAIT_PRESS}\nWeren't they living like fugitives until\nrecently?") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Can they handle it?{WAIT_PRESS}\nThey don't look very tough.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000004), @@ -8931,7 +8931,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 1, _(" Sure, the rescue might be\ntoo much for us to handle.")), VARIANT(/* == */ 3, _(" Yes, the rescue might be too\nmuch of a challenge for us.")), VARIANT_DEFAULT(_(" It's true--the rescue might\nbe too much for us to handle.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), WAIT(30), @@ -8954,7 +8954,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ VARIANT(/* == */ 3, _(" Never giving up...\nThat's where {COLOR CYAN}Team {TEAM_NAME}{RESET} stakes\nits pride!")), VARIANT_DEFAULT(_(" That's why I want to\nrescue {NAME_8}'s team more than\nanything.")), VARIANT_DEFAULT(_(" Never giving up...\nThat's where {COLOR CYAN}Team {TEAM_NAME}{RESET} stakes\nits pride!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000003), MSG_NPC(4, _(" ............{WAIT_PRESS}Keh.{WAIT_PRESS} Kekekeh!{WAIT_PRESS}\nYou really aren't very bright, are you?")), @@ -8964,12 +8964,12 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0x91, 0x04, 0x000a, 0x00000007, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT_FLIP, 0x0004, 0x00000000), MSG_NPC(4, _(" Why don't you do like\neveryone else and wise up?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, 0, -1), MSG_NPC(3, _(" ...No.\n{NAME_1} is right.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, @@ -8978,12 +8978,12 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000003), MSG_NPC(4, _(" ...Ugeh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...That's right.\nI wasn't thinking straight...out of fear.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000007, 0x00000000, NULL }, @@ -8992,17 +8992,17 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT_FLIP, 0x0004, 0x00000006), MSG_NPC(4, _(" ...Ugegegeh?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" We all forgot the most important\nthing. We are rescue teams.") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" ...Pride...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" We have it too!\nPride as rescuers!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000006), MSG_NPC(4, _(" Ugegegegeh!\nHave you lost your senses?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(15), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9012,11 +9012,11 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000002), MSG_NPC(4, _(" Why go if you're facing\ncertain defeat?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), PORTRAIT_REP(0x0005, 0x00000000), MSG_NPC(5, _(" Is that so...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9027,20 +9027,20 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0x93, 0x04, 0x0001, 0x00000068, 0x00000000, NULL }, WAIT(60), MSG_NPC(5, _(" ...We've only failed once.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000b), MSG_NPC(1, _(" {NAME_5}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" ...This is no time to be\nlying around!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000006), MSG_NPC(4, _(" Ugegeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9050,7 +9050,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, MSG_NPC(6, _(" Yes, no more wallowing in\nwoe-is-me self-pity.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9060,7 +9060,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000001, 0x00000000, NULL }, MSG_NPC(7, _(" If we give up, that's how\nit ends. Not for me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -9069,29 +9069,29 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(30), PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000b), MSG_NPC(1, _(" {NAME_6}!\nAnd {NAME_7} too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000003), MSG_NPC(4, _(" Ugegegeh!\nYou lot, that wasn't the tune you\nwere whistling just a little...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Aye, that's right!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000005, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" There've got to be ways we can\nget through!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" If we all pull together, we'll be sure\nto find a way!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -9101,7 +9101,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(30), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wrooooooooaaaar!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Ugegegegegegegegeh!{WAIT_PRESS}\nAre you dreaming?!")), @@ -9113,7 +9113,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Don't say I didn't warn you\nwhen you get into a world of pain!\nUgegegegeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0010, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -9133,7 +9133,7 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ MSG_NPC(5, _(" Thank you, {NAME_1}.")), MSG_NPC(5, _(" You stopped us from\nthrowing away the most important thing\nwe have--pride.")), MSG_NPC(5, _(" My thanks from all of us.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), @@ -9141,11 +9141,11 @@ static const struct ScriptCommand s_gs1_g28_s0_lives0_dlg0[] = { /* 0x815aae0 */ WAIT(60), MSG_NPC(5, _(" Everyone!{WAIT_PRESS}\nIt's time to get to work!")), MSG_NPC(5, _(" Let's show them what we\nrescue teams are really about!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Wrooooooaaaaar!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -10091,7 +10091,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives0_dlg2[] = { /* 0x8161054 */ MSG_NPC(1, _(" Oh, my goodness, yes!\n{NAME_2}'s talk was such an\ninspiration!")), MSG_NPC(1, _(" It has stoked a raging fire\nin our hearts!")), MSG_NPC(1, _(" I will keep bringing in fine\nmerchandise!{WAIT_PRESS} This, I do for you!{WAIT_PRESS}\nSo...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10119,7 +10119,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives2_dlg2[] = { /* 0x81612a0 */ JUMPIF_ARRAY(EVENT_M01E09A_8N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E09A_8N, 2, 1), MSG_NPC(1, _(" Aren't you remarkable?{WAIT_PRESS}\nYour money will be jealously guarded,\nso feel secure on your outings!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10135,7 +10135,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives3_dlg2[] = { /* 0x81613b4 */ SET_ARRAYVAL(EVENT_M01E09A_8N, 3, 1), MSG_NPC(1, _(" {NAME_2}'s words struck\nme deeply.")), MSG_NPC(1, _(" You can count on me for all\nyour move-linking needs!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10151,7 +10151,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives4_dlg2[] = { /* 0x81614e0 */ MSG_NPC(1, _(" Dear, I wasn't wrong about\nyou at all.")), MSG_NPC(1, _(" I always thought you weren't\nthe ordinary sort.")), MSG_NPC(1, _(" I'll keep your valuables\nunder my watchful eye! You can go out and\nfight without worrying about them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10166,7 +10166,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives5_dlg2[] = { /* 0x816167c */ SET_ARRAYVAL(EVENT_M01E09A_8N, 5, 1), MSG_NPC(1, _(" I'll do my best to get more\nFriend Areas!")), MSG_NPC(1, _(" Because {NAME_0}'s team\nare my friends!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10188,7 +10188,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives6_dlg2[] = { /* 0x81617c4 */ PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(2, _(" What's it like?\nThis {COLOR YELLOW_D}Magma Cavern{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" It was teeming with tough\nPokémon, that's for sure.")), MSG_NPC(3, _(" I'm strong against fire...{WAIT_PRESS}\nbut that place is special.")), @@ -10211,7 +10211,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives7_dlg2[] = { /* 0x8161978 */ PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(2, _(" What's it like?\nThis {COLOR YELLOW_D}Magma Cavern{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" It was teeming with tough\nPokémon, that's for sure.")), MSG_NPC(3, _(" I'm strong against fire...{WAIT_PRESS}\nbut that place is special.")), @@ -10234,7 +10234,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives8_dlg2[] = { /* 0x8161a88 */ PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" The {COLOR YELLOW_D}Magma Cavern{RESET}...\nAbove all, there were many Fire-type\nPokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Fire-type Pokémon...{WAIT_PRESS}\nI think they would burn me up in no time...")), MSG_NPC(2, _(" But, no!{WAIT_PRESS}\nI mustn't make excuses for myself!")), @@ -10258,7 +10258,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives9_dlg2[] = { /* 0x8161cac */ PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" The {COLOR YELLOW_D}Magma Cavern{RESET}...\nAbove all, there were many Fire-type\nPokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Fire-type Pokémon...{WAIT_PRESS}\nI think they would burn me up in no time...")), MSG_NPC(2, _(" But, no!{WAIT_PRESS}\nI mustn't make excuses for myself!")), @@ -10283,7 +10283,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives10_dlg2[] = { /* 0x8161dcc * PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Oi, you lot shouldn't go.")), MSG_NPC(3, _(" The {COLOR YELLOW_D}Magma Cavern{RESET} is\nalive with flames. You'll be burned up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" We can't do that!{WAIT_PRESS}\nWe are a rescue team too.\nWe can't stand by idly!")), JUMP_SCRIPT(END_TALK), @@ -10306,7 +10306,7 @@ static const struct ScriptCommand s_gs1_g29_s0_lives11_dlg2[] = { /* 0x8161f8c * PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Oi, you lot shouldn't go.")), MSG_NPC(3, _(" The {COLOR YELLOW_D}Magma Cavern{RESET} is\nalive with flames. You'll be burned up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" We can't do that!{WAIT_PRESS}\nWe are a rescue team too.\nWe can't stand by idly!")), JUMP_SCRIPT(END_TALK), @@ -10341,12 +10341,12 @@ static const struct ScriptCommand s_gs1_g29_s1_lives0_dlg0[] = { /* 0x8162190 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_1}'s words\nshook me up with inspiration!")), MSG_NPC(3, _(" Especially the part about\ntaking pride...{WAIT_PRESS} That made me...{WAIT_PRESS}\nIt left me choked up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" It isn't just you, my brother.{WAIT_PRESS}\nI am likewise inspired beyond words.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -10358,7 +10358,7 @@ static const struct ScriptCommand s_gs1_g29_s1_lives0_dlg0[] = { /* 0x8162190 */ MSG_NPC(3, _(" All with the pride of a\nmerchant!")), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_LIVES(-1, 0), RET, }; @@ -10394,7 +10394,7 @@ static const struct ScriptCommand s_gs1_g29_s1_lives2_dlg2[] = { /* 0x8162580 */ MSG_NPC(1, _(" Oh, my goodness, yes!\n{NAME_2}'s talk was such an\ninspiration!")), MSG_NPC(1, _(" It has stoked a raging fire\nin our hearts!")), MSG_NPC(1, _(" I will keep bringing in fine\nmerchandise!{WAIT_PRESS} This, I do for you!{WAIT_PRESS}\nSo...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10448,7 +10448,7 @@ static const struct ScriptCommand s_gs1_g30_s0_lives0_dlg2[] = { /* 0x816280c */ MSG_NPC(1, _(" Oh, my goodness, yes!\n{NAME_2}'s talk was such an\ninspiration!")), MSG_NPC(1, _(" It has stoked a raging fire\nin our hearts!")), MSG_NPC(1, _(" I will keep bringing in fine\nmerchandise!{WAIT_PRESS} This, I do for you!{WAIT_PRESS}\nSo...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10481,7 +10481,7 @@ static const struct ScriptCommand s_gs1_g30_s0_lives2_dlg2[] = { /* 0x81629bc */ JUMPIF_ARRAY(EVENT_M01E09A_8N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E09A_8N, 2, 1), MSG_NPC(1, _(" Aren't you remarkable?{WAIT_PRESS}\nYour money will be jealously guarded,\nso feel secure on your outings!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10497,7 +10497,7 @@ static const struct ScriptCommand s_gs1_g30_s0_lives3_dlg2[] = { /* 0x8162a6c */ SET_ARRAYVAL(EVENT_M01E09A_8N, 3, 1), MSG_NPC(1, _(" {NAME_2}'s words struck\nme deeply.")), MSG_NPC(1, _(" You can count on me for all\nyour move-linking needs!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10513,7 +10513,7 @@ static const struct ScriptCommand s_gs1_g30_s0_lives4_dlg2[] = { /* 0x8162b3c */ MSG_NPC(1, _(" Dears, I wasn't wrong about\nyou at all.")), MSG_NPC(1, _(" I always thought you weren't\nthe ordinary sort.")), MSG_NPC(1, _(" I'll keep your valuables\nunder my watchful eye! You can go out and\nfight without worrying about them!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10528,7 +10528,7 @@ static const struct ScriptCommand s_gs1_g30_s0_lives5_dlg2[] = { /* 0x8162c3c */ SET_ARRAYVAL(EVENT_M01E09A_8N, 5, 1), MSG_NPC(1, _(" I'll do my best to get more\nFriend Areas!")), MSG_NPC(1, _(" Because {NAME_0}'s team\nare my friends!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10554,20 +10554,20 @@ static const struct ScriptCommand s_gs1_g30_s0_lives6_dlg2[] = { /* 0x8162d2c */ PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(3, _(" We got wiped again...{WAIT_PRESS}\nFifteen times now we have been to that\ninfernal {COLOR YELLOW_D}Magma Cavern{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Why does this keep\nhappening?{WAIT_PRESS}\nWe can't be that weak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Maybe we're just lacking\nthe will to win.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The will to win?{WAIT_PRESS}\nThat's it! This is about willpower!\nI didn't realize!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Darlings, we will will\nourselves to win, and we will win!")), MSG_NPC(3, _(" Let's take it down! Groudon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Hoorah!")), JUMP_SCRIPT(END_TALK), @@ -10593,20 +10593,20 @@ static const struct ScriptCommand s_gs1_g30_s0_lives7_dlg2[] = { /* 0x81630c0 */ PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(3, _(" We got wiped again...{WAIT_PRESS}\nFifteen times now we have been to that\ninfernal {COLOR YELLOW_D}Magma Cavern{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Why does this keep\nhappening?{WAIT_PRESS}\nWe can't be that weak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Maybe we're just lacking\nthe will to win.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The will to win?{WAIT_PRESS}\nThat's it! This is about willpower!\nI didn't realize!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Darlings, we will will\nourselves to win, and we will win!")), MSG_NPC(3, _(" Let's take it down! Groudon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Hoorah!")), JUMP_SCRIPT(END_TALK), @@ -10632,20 +10632,20 @@ static const struct ScriptCommand s_gs1_g30_s0_lives8_dlg2[] = { /* 0x81632d0 */ PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(3, _(" We got wiped again...{WAIT_PRESS}\nFifteen times now we have been to that\ninfernal {COLOR YELLOW_D}Magma Cavern{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Why does this keep\nhappening?{WAIT_PRESS}\nWe can't be that weak!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Maybe we're just lacking\nthe will to win.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" The will to win?{WAIT_PRESS}\nThat's it! This is about willpower!\nI didn't realize!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Darlings, we will will\nourselves to win, and we will win!")), MSG_NPC(3, _(" Let's take it down! Groudon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Hoorah!")), JUMP_SCRIPT(END_TALK), @@ -10735,12 +10735,12 @@ static const struct ScriptCommand s_gs1_g30_s1_lives0_dlg0[] = { /* 0x8163b24 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" {NAME_1}'s words\nshook me up with inspiration!")), MSG_NPC(3, _(" Especially the part about\ntaking pride...{WAIT_PRESS} That made me...{WAIT_PRESS}\nIt left me choked up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" It isn't just you, my brother.{WAIT_PRESS}\nI am likewise inspired beyond words.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -10752,7 +10752,7 @@ static const struct ScriptCommand s_gs1_g30_s1_lives0_dlg0[] = { /* 0x8163b24 */ MSG_NPC(3, _(" All with the pride of a\nmerchant!")), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SELECT_LIVES(-1, 0), RET, }; @@ -10788,7 +10788,7 @@ static const struct ScriptCommand s_gs1_g30_s1_lives2_dlg2[] = { /* 0x8163dd4 */ MSG_NPC(1, _(" Oh, my goodness, yes!\n{NAME_2}'s talk was such an\ninspiration!")), MSG_NPC(1, _(" It has stoked a raging fire\nin our hearts!")), MSG_NPC(1, _(" I will keep bringing in fine\nmerchandise!{WAIT_PRESS} This, I do for you!{WAIT_PRESS}\nSo...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -10829,7 +10829,7 @@ static const struct ScriptCommand s_gs1_g31_s0_station_sref_script[] = { /* 0x81 { 0x26, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_MAP(1), { 0x39, 0x00, 0x001e, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And in the square...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(1), { 0x25, 0x01, 0x0000, 0x00000000, 0x00000000, NULL }, SELECT_ENTITIES(-1, -1), @@ -10863,7 +10863,7 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(2, _(" Is {NAME_0}'s team\nalmost here?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -10875,7 +10875,7 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ PORTRAIT(PLACEMENT_TOP_FLIP, 0x0003, 0x00000000), PORTRAIT_POS(3, -1, 0), MSG_NPC(3, _(" Look!\nHere they come!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -10887,10 +10887,10 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" It's true, darlings!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Let's go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -10913,44 +10913,44 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000042), MSG_NPC(4, _(" Great work!\nGreat work, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0007, 0x00000000), MSG_NPC(7, _(" You really took down that\nGroudon?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(6, _(" Darlings, it's fantastic!{WAIT_PRESS}\nYou have won me over!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0001, 0x0000000c), MSG_NPC(1, _(" Whoa!\nW-wait a second!")), MSG_NPC(1, _(" How does everyone know\nabout what happened underground?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, 1, 0), MSG_NPC(3, _(" Pelipper spread the word\nwith an extra edition of the Pokémon\nNews.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" You bunch became stronger\nthan I expected!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(7, _(" You can be proud of it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" You lot did great!{WAIT_PRESS}\nWhy don't we team up sometime?\nGahahahaha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, MSG_NPC(8, _(" You've earned everyone's\nrespect now.")), MSG_NPC(8, _(" Your {COLOR CYAN}Team {TEAM_NAME}{RESET}\nis a first-class rescue team.")), MSG_NPC(8, _(" Take pride in that.{WAIT_PRESS}\n{NAME_1}, {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, @@ -10963,10 +10963,10 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ VARIANT(/* == */ 3, _(" Everything we experienced...\nIt was all worthwhile!")), VARIANT_DEFAULT(_(" Sniff... Sniffle...{WAIT_PRESS}\n{NAME_0}!{WAIT_PRESS} This is great!")), VARIANT_DEFAULT(_(" Every bit of our effort...\nIt was all worthwhile!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Would you look at that?{WAIT_PRESS}\nI didn't think someone that could take down\nGroudon'd be such a crybaby! Gahahahaha!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0014, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -10985,7 +10985,7 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" Huh?{WAIT_PRESS} What was that?")), MSG_NPC(2, _(" I thought I heard something\njust for a moment...{WAIT_PRESS}\nDid I just imagine it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -11003,13 +11003,13 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000002, 0x00000000, NULL }, MSG_NPC(3, _(" No. I heard it too.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(6, _(" Me too.{WAIT_PRESS}\nEven now, I hear it...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(7, _(" Someone talking?{WAIT_PRESS}\n...Not sure.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -11035,13 +11035,13 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ VARIANT(/* == */ 1, _(" This voice...{WAIT_PRESS} I think...{WAIT_PRESS}\nThat's it! It's {NAME_9}!")), VARIANT_DEFAULT(_(" Th-this voice...{WAIT_PRESS}\nI've heard it before.")), VARIANT_DEFAULT(_(" This voice...{WAIT_PRESS} I'm sure...{WAIT_PRESS}\nThat's it! It's {NAME_9}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, MSG_NPC(8, _(" {NAME_9}?{WAIT_PRESS}\nAh, that's it! Telepathy!")), MSG_NPC(8, _(" {NAME_9} is calling out\nto us using telepathy!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(487), { 0x28, 0x01, 0x0001, 0x0000000f, 0x00ffffff, NULL }, @@ -11051,7 +11051,7 @@ static const struct ScriptCommand s_gs1_g31_s0_lives0_dlg0[] = { /* 0x81641b8 */ { 0x2e, 0x00, 0x0009, -0x00000002, 0x00000000, NULL }, MSG_NPC(9, _(" ...To all Pokémon!\nCalling all Pokémon!")), MSG_NPC(9, _(" Terrible, it is!{WAIT_PRESS}\nFrom the sky...{WAIT_PRESS} Falls a star...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x52, 0x00, 0x0000, 0x0000001f, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -11535,7 +11535,7 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ WAIT(30), MSG_NPC(8, _(" {NAME_9}.{WAIT_PRESS}\nTell us.")), MSG_NPC(8, _(" Can the falling star be\nstopped?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x2d, 0x09, 0x0007, 0x0000006c, 0x00000000, NULL }, FANFARE_PLAY2(487), @@ -11546,11 +11546,11 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ MSG_NPC(9, _(" ............{WAIT_PRESS}There is a way.")), MSG_NPC(9, _(" ...To prevent collision,\nthere is but one solution.")), MSG_NPC(9, _(" You must ask {NAME_7}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" {NAME_7}?{WAIT_PRESS}\nWhat might that be?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(487), { 0x28, 0x01, 0x0001, 0x0000000f, 0x00ffffff, NULL }, { 0x27, 0x01, 0x0001, 0x0000000f, 0x00ffffff, NULL }, @@ -11558,10 +11558,10 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ MSG_NPC(9, _(" A Pokémon, living far above\nus in the sky.\nLegendary, it is.")), MSG_NPC(9, _(" {NAME_7} must be asked\nto destroy the star from the sky.")), MSG_NPC(9, _(" However...{WAIT_PRESS}\nFar, far up in the sky lives {NAME_7}.\nKnown by few and seen by none.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(8, _(" The sky...{WAIT_PRESS}\nHow are we to go there?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(487), { 0x28, 0x01, 0x0001, 0x0000000f, 0x00ffffff, NULL }, @@ -11571,7 +11571,7 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ MSG_NPC(9, _(" And send Pokémon to the\nsky.")), MSG_NPC(9, _(" However...{WAIT_PRESS}\nThe sky is a world above the clouds.")), MSG_NPC(9, _(" What will become of the\nPokémon sent to the sky?{WAIT_PRESS}\nEven I can guess nothing...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -11580,11 +11580,11 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ VARIANT(/* == */ 1, _(" Then, we'll do it!{WAIT_PRESS}\nWe'll go!")), VARIANT(/* == */ 3, _(" Then, we'll do it!{WAIT_PRESS}\nWe'll go!")), VARIANT_DEFAULT(_(" Then, we'll do it!{WAIT_PRESS}\nWe'll go!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(8, _(" I also...{WAIT_PRESS}\nI thought there could be none but you...")), MSG_NPC(8, _(" But...{WAIT_PRESS} Are you sure?{WAIT_PRESS}\nThere's no telling what you would find\nin that world above the clouds.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -11595,7 +11595,7 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ VARIANT(/* == */ 3, _(" It's my wish that all\nPokémon can live in peace.")), VARIANT_DEFAULT(_(" We expect danger!")), VARIANT_DEFAULT(_(" It's my wish that all\nPokémon can live in peace.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(487), { 0x28, 0x01, 0x0001, 0x0000000f, 0x00ffffff, NULL }, @@ -11605,17 +11605,17 @@ static const struct ScriptCommand s_gs1_g32_s0_lives0_dlg0[] = { /* 0x8166c80 */ MSG_NPC(9, _(" Discuss we will,\n{NAME_8} and I, about how our\nTeleport can be amplified.")), MSG_NPC(9, _(" Departure, it is tomorrow.{WAIT_PRESS}\nRest you should until then.")), MSG_NPC(9, _(" Last word.{WAIT_PRESS}\nDangerous will be your adventure...{WAIT_PRESS}\nBut fail, you must not. Surpass yourselves.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" No problem!\nWe'll be fine!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_0}!\nLet's get it done!")), VARIANT_DEFAULT(_(" Right, {NAME_0}?\nLet's get it done!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -11809,7 +11809,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives0_dlg2[] = { /* 0x8167dbc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}.")), VARIANT_DEFAULT(_(" {NAME_0}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3_VAR(FALSE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), VARIANT(/* == */ 1, _(" Are you all ready for\nthe sky?")), VARIANT_DEFAULT(_(" Are you all ready for\nthe sky?")), @@ -11832,7 +11832,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives0_dlg2[] = { /* 0x8167dbc */ VARIANT_DEFAULT(_(" We leave tomorrow.")), VARIANT_DEFAULT(_(" So let's get plenty of rest\nfor tomorrow.")), VARIANT_DEFAULT(_(" Tomorrow!{WAIT_PRESS}\nLet's give it everything we can,\n{NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(150), { 0x23, 0x01, 0x002d, 0x00000000, 0x00000000, NULL }, WAIT(180), @@ -11850,7 +11850,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives1_dlg2[] = { /* 0x8168208 */ JUMPIF_ARRAY(EVENT_M01E10A_1N, 0, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_1N, 0, 1), MSG_NPC(1, _(" We hope you'll succeed!\nPlease don't give up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -11864,7 +11864,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives2_dlg2[] = { /* 0x81682ec */ JUMPIF_ARRAY(EVENT_M01E10A_1N, 1, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_1N, 1, 1), MSG_NPC(1, _(" I also hope for your\nsuccess. Fight!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -11878,7 +11878,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives3_dlg2[] = { /* 0x81683c4 */ JUMPIF_ARRAY(EVENT_M01E10A_1N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_1N, 2, 1), MSG_NPC(1, _(" {NAME_0}, you're our\none hope!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -11892,7 +11892,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives4_dlg2[] = { /* 0x8168494 */ JUMPIF_ARRAY(EVENT_M01E10A_1N, 3, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_1N, 3, 1), MSG_NPC(1, _(" I'm rooting for your\nsuccess, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -11906,7 +11906,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives5_dlg2[] = { /* 0x816856c */ JUMPIF_ARRAY(EVENT_M01E10A_1N, 4, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_1N, 4, 1), MSG_NPC(1, _(" You'll do fine!{WAIT_PRESS}\nI'm sure you'll find success!\nHave confidence in yourselves!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -11921,7 +11921,7 @@ static const struct ScriptCommand s_gs1_g34_s0_lives6_dlg2[] = { /* 0x8168674 */ SET_ARRAYVAL(EVENT_M01E10A_1N, 5, 1), MSG_NPC(1, _(" I don't know what sort of\nPokémon Rayquaza is...")), MSG_NPC(1, _(" But with you, I know it can\nbecome a friend!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12030,7 +12030,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives0_dlg2[] = { /* 0x8168e64 */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 0, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 0, 1), MSG_NPC(1, _(" I see you're heading out\nsoon.\nThe best of luck!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12044,7 +12044,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives1_dlg2[] = { /* 0x8168f48 */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 1, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 1, 1), MSG_NPC(1, _(" Ah, you're leaving?\nGood luck!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12058,7 +12058,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives2_dlg2[] = { /* 0x816901c */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 2, 1), MSG_NPC(1, _(" {NAME_0}, don't let us\ndown!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12072,7 +12072,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives3_dlg2[] = { /* 0x81690ec */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 3, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 3, 1), MSG_NPC(1, _(" I'm rooting for you!\nGo get 'em, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12086,7 +12086,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives4_dlg2[] = { /* 0x81691cc */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 4, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 4, 1), MSG_NPC(1, _(" This is it, isn't it?\nMake us proud!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12100,7 +12100,7 @@ static const struct ScriptCommand s_gs1_g35_s0_lives5_dlg2[] = { /* 0x81692a8 */ JUMPIF_ARRAY(EVENT_M01E10A_3N, 5, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_3N, 5, 1), MSG_NPC(1, _(" Are you heading out now?\nDon't give up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12206,7 +12206,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives0_dlg2[] = { /* 0x81698f8 */ JUMPIF_ARRAY(EVENT_M01E10A_5N, 0, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_5N, 0, 1), MSG_NPC(1, _(" You still have everything\nto prove!\nThe best of luck!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12220,7 +12220,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives1_dlg2[] = { /* 0x81699e0 */ JUMPIF_ARRAY(EVENT_M01E10A_5N, 1, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_5N, 1, 1), MSG_NPC(1, _(" {NAME_0}, I'm certain\nthat you will succeed!\nGood luck!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12234,7 +12234,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives2_dlg2[] = { /* 0x8169ac8 */ JUMPIF_ARRAY(EVENT_M01E10A_5N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_5N, 2, 1), MSG_NPC(1, _(" It must be difficult, but\ndon't let us down!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12248,7 +12248,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives3_dlg2[] = { /* 0x8169bac */ JUMPIF_ARRAY(EVENT_M01E10A_5N, 3, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_5N, 3, 1), MSG_NPC(1, _(" You're not finished yet!\nI hope I can serve you in good stead!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12264,7 +12264,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives4_dlg2[] = { /* 0x8169ca0 */ MSG_NPC(1, _(" I know you too well.")), MSG_NPC(1, _(" You're not about to ever\ngive up!")), MSG_NPC(1, _(" Your fight's only begun!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12278,7 +12278,7 @@ static const struct ScriptCommand s_gs1_g36_s0_lives5_dlg2[] = { /* 0x8169dcc */ JUMPIF_ARRAY(EVENT_M01E10A_5N, 5, /* to label */ 0), SET_ARRAYVAL(EVENT_M01E10A_5N, 5, 1), MSG_NPC(1, _(" Everyone hopes you reach\nRayquaza.\nKeep it up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12404,7 +12404,7 @@ static const struct ScriptCommand s_gs1_g38_s0_lives0_dlg2[] = { /* 0x816a4d8 */ MSG_NPC(1, _(" Yes! You did it,\n{NAME_0}!")), MSG_NPC(1, _(" Now that peace has been\nrestored, I can sell my wares with\npeace of mind.")), MSG_NPC(1, _(" Thank you so much!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12432,7 +12432,7 @@ static const struct ScriptCommand s_gs1_g38_s0_lives2_dlg2[] = { /* 0x816a6d8 */ JUMPIF_ARRAY(EVENT_M02E01A_2N, 2, /* to label */ 0), SET_ARRAYVAL(EVENT_M02E01A_2N, 2, 1), MSG_NPC(1, _(" Peace has returned!\nThank you, {NAME_0}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12446,7 +12446,7 @@ static const struct ScriptCommand s_gs1_g38_s0_lives3_dlg2[] = { /* 0x816a7b0 */ JUMPIF_ARRAY(EVENT_M02E01A_2N, 3, /* to label */ 0), SET_ARRAYVAL(EVENT_M02E01A_2N, 3, 1), MSG_NPC(1, _(" Thank you so much!\nI can keep my shop running, thanks to you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12460,7 +12460,7 @@ static const struct ScriptCommand s_gs1_g38_s0_lives4_dlg2[] = { /* 0x816a8a4 */ JUMPIF_ARRAY(EVENT_M02E01A_2N, 4, /* to label */ 0), SET_ARRAYVAL(EVENT_M02E01A_2N, 4, 1), MSG_NPC(1, _(" You did it! Good for you!\nThat is so cool!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12474,7 +12474,7 @@ static const struct ScriptCommand s_gs1_g38_s0_lives5_dlg2[] = { /* 0x816a980 */ JUMPIF_ARRAY(EVENT_M02E01A_2N, 5, /* to label */ 0), SET_ARRAYVAL(EVENT_M02E01A_2N, 5, 1), MSG_NPC(1, _(" It's peaceful again!\nThank you! I never expected less from\nyou, my friend!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12581,7 +12581,7 @@ static const struct ScriptCommand s_gs1_g38_s1_lives0_dlg0[] = { /* 0x816b150 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" I'm all shaken up with\nemotion!")), MSG_NPC(3, _(" Knowing that the square will\nbe safe...{WAIT_PRESS} That made me...{WAIT_PRESS}\nIt left me choked up...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -12596,7 +12596,7 @@ static const struct ScriptCommand s_gs1_g38_s1_lives0_dlg0[] = { /* 0x816b150 */ MSG_NPC(3, _(" Thank you ever so much!")), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, RET, @@ -12626,7 +12626,7 @@ static const struct ScriptCommand s_gs1_g38_s1_lives1_dlg2[] = { /* 0x816b4d4 */ MSG_NPC(1, _(" Oh, my, you've outdone\nyourself, {NAME_0}!")), MSG_NPC(1, _(" Because peace has been\nrestored, I may go about securely in my\nbusiness.")), MSG_NPC(1, _(" Thank you ever so much!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -12677,7 +12677,7 @@ static const struct ScriptCommand s_gs1_g39_s0_lives0_dlg2[] = { /* 0x816b7a0 */ FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_1} \n{CENTER_ALIGN}became a member!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x1e, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_1}?")), CHOICE(/* label */ 3, _("*Yes.")), @@ -12686,7 +12686,7 @@ static const struct ScriptCommand s_gs1_g39_s0_lives0_dlg2[] = { /* 0x816b7a0 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(4), /* = 0x04 */ { 0x3b, 0x1f, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB1, 32, 3), { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, CANCEL_ENTITIES(39, -1), @@ -12725,7 +12725,7 @@ static const struct ScriptCommand s_gs1_g40_s0_lives0_dlg2[] = { /* 0x816bc34 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" I wasn't drowning!{WAIT_PRESS}\nSheesh, they're making up stories about\nme!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -12751,7 +12751,7 @@ static const struct ScriptCommand s_gs1_g40_s0_lives0_dlg2[] = { /* 0x816bc34 */ MSG_NPC(1, _(" There's more!{WAIT_PRESS}\nA dungeon appeared in the sea!")), MSG_NPC(1, _(" I was shocked witless!\nI got out of there fast!")), MSG_NPC(1, _(" But who'd've guessed it?\nA dungeon in a stormy sea!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x54, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(45), @@ -12762,7 +12762,7 @@ static const struct ScriptCommand s_gs1_g40_s0_lives0_dlg2[] = { /* 0x816bc34 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Huh?{WAIT_PRESS}\nYou want to know more about that\ndungeon in the sea?")), MSG_NPC(1, _(" I vamoosed it out of there,\nso I can't tell you much...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(60), FANFARE_PLAY2(465), @@ -12770,7 +12770,7 @@ static const struct ScriptCommand s_gs1_g40_s0_lives0_dlg2[] = { /* 0x816bc34 */ WAIT(30), MSG_NPC(1, _(" I know!{WAIT_PRESS}\nMaybe Whiscash would know something.")), MSG_NPC(1, _(" Yeah, that'd be best.\nGo talk to Whiscash.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RESET_ARRAY(EVENT_LOCAL), JUMPIF_SCENE_GT(SCENARIO_SUB2, 33, 3, /* to label */ 4), SCENARIO_CALC(SCENARIO_SUB2, 33, 3), @@ -12820,13 +12820,13 @@ static const struct ScriptCommand s_gs1_g41_s0_lives0_dlg2[] = { /* 0x816c540 */ WAIT(1), MSG_NPC(1, _(" I have heard of a weather\nanomaly afflicting a certain sea.")), MSG_NPC(1, _(" They say a whirlpool\nstretches from sea to sky in a\ncolossal tornado.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" It is said to be near the\n{COLOR GREEN}Legendary Island{RESET} Friend Area.")), MSG_NPC(1, _(" It hasn't caused any damage\nso far as I know...{WAIT_PRESS}\nBut it does concern me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" The {COLOR GREEN}Legendary Island{RESET}\nbelongs to your team.")), @@ -12841,7 +12841,7 @@ static const struct ScriptCommand s_gs1_g41_s0_lives0_dlg2[] = { /* 0x816c540 */ LABEL(2), /* = 0x02 */ MSG_NPC(1, _(" Ah, good.\nYou accept the job.")), MSG_NPC(1, _(" I hope for the best from\nyou.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMPIF_SCENE_GT(SCENARIO_SUB2, 34, 2, /* to label */ 4), SCENARIO_CALC(SCENARIO_SUB2, 34, 2), LABEL(4), /* = 0x04 */ @@ -12980,14 +12980,14 @@ static const struct ScriptCommand s_gs1_g43_s0_lives0_dlg0[] = { /* 0x816cf4c */ PORTRAIT(PLACEMENT_TOP_LEFT_FLIP, 0x0003, 0x00000000), MSG_NPC(3, _(" Oh?")), MSG_NPC(3, _(" Who is that? Over there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Never seen it before.{WAIT_PRESS}\nIt's not from around these parts.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -13002,13 +13002,13 @@ static const struct ScriptCommand s_gs1_g43_s0_lives0_dlg0[] = { /* 0x816cf4c */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" No more...{WAIT_PRESS}\nI can't walk anymore...") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" I'm falling down...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Goodness!{WAIT_PRESS}\nIt needs help!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13146,12 +13146,12 @@ static const struct ScriptCommand s_gs1_g45_s1_lives0_dlg0[] = { /* 0x816d940 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Wh-wh-wh-what?!")), MSG_NPC(2, _(" You've seen the mirage\nPokémon?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Wh-wh-what sort of a\nPokémon was it?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ...I see.")), MSG_NPC(2, _(" ............I see, I see.")), @@ -13164,7 +13164,7 @@ static const struct ScriptCommand s_gs1_g45_s1_lives0_dlg0[] = { /* 0x816d940 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13174,21 +13174,21 @@ static const struct ScriptCommand s_gs1_g45_s1_lives0_dlg0[] = { /* 0x816d940 */ MSG_NPC(2, _(" Wroooooooah!")), MSG_NPC(2, _(" I...{WAIT_PRESS} You...{WAIT_PRESS}\nYou've made me open my eyes!")), MSG_NPC(2, _(" Well, they still look googly,\nbut still...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" The lesson is: we mustn't\never give up!")), MSG_NPC(2, _(" Because if you give up,\nthat's when it ends!")), MSG_NPC(2, _(" Thank you!{WAIT_PRESS}\nYou have inspired me to resume my\ntravels!")), MSG_NPC(2, _(" I will again travel the\nworld to find rare Pokémon, perhaps even\nbefore you.{WAIT_PRESS} Farewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(3), LABEL(2), /* = 0x02 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Waaaaaaaaaaaah!")), MSG_NPC(2, _(" My head...{WAIT_PRESS} Is spinning...{WAIT_PRESS}\nMy head's spinning...{WAIT_PRESS} Waaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), @@ -13207,7 +13207,7 @@ static const struct ScriptCommand s_gs1_g45_s1_lives0_dlg0[] = { /* 0x816d940 */ MSG_NPC(2, _(" Thank you!{WAIT_PRESS}\nYou have inspired me to resume my\ntravels!")), MSG_NPC(2, _(" My meeting you...\nIt will be a memory I will cherish\nforever!")), MSG_NPC(2, _(" I will keep the memory...{WAIT_PRESS}\nin a special place deep in my heart!{WAIT_PRESS}\nFarewell!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(3), /* = 0x03 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00000004, 0x00000000, NULL }, @@ -13357,43 +13357,43 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" ...I've always wondered...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(15), MSG_NPC(3, _(" Who would be the most\npowerful Pokémon of all?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" What, there's someone\nbesides Rayquaza?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Is that it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Well, sheesh, Rayquaza\ndestroyed a star!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), MSG_NPC(2, _(" Who else but Rayquaza\nwould be able to do that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13401,35 +13401,35 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" But there's Groudon.\nIsn't that tough?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Is that true?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Why, even Alakazam's team\ncouldn't defeat it!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), MSG_NPC(3, _(" Legend has it that Groudon\nshaped continents.\nIt's an incredible Pokémon!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x6b, 0x00, 0x0100, 0x00000089, 0x00000000, NULL }, FANFARE_PLAY2(465), @@ -13442,13 +13442,13 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ MSG_NPC(2, _(" Hey, you came along at\nthe right time.")), MSG_NPC(2, _(" We're having a little\nargument about who the most powerful\nPokémon happens to be.")), MSG_NPC(2, _(" {NAME_0}, what do you\nthink?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, ASK3( TRUE, /*default*/ -1, /* speaker */ 2, _(" Who do you think is the\nmost powerful Pokémon?")), CHOICE(/* label */ 5, _("Rayquaza.")), CHOICE(/* label */ 6, _("Groudon.")), CHOICE(/* label */ 7, _("Me.")), LABEL(5), /* = 0x05 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), FANFARE_PLAY2(465), @@ -13458,15 +13458,15 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Oh, yeah?\n{NAME_0}, you think so too?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000002), MSG_NPC(2, _(" Yeah, you bet it is!{WAIT_PRESS}\nRayquaza is the toughest!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(8), LABEL(6), /* = 0x06 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 2), FANFARE_PLAY2(465), @@ -13476,14 +13476,14 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Ah, yes!\n{NAME_0}! Isn't that right!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Groudon is the most\npowerful when all's said and done!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_LABEL(8), LABEL(7), /* = 0x07 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 3), FANFARE_PLAY2(470), @@ -13500,13 +13500,13 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ MSG_NPC(4, _("....................................")), MSG_NPC(5, _("....................................")), { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("...............................................................\n...............................................................\n...............................................................") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), MSG_NPC(2, _(" ...{WAIT_PRESS}Well, uh...{WAIT_PRESS}\nI know you want to become tougher, but...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), MSG_NPC(3, _(" I hope you never give up\nchasing your dreams.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), LABEL(8), /* = 0x08 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0002, 0x00000000), @@ -13518,7 +13518,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(30), MSG_NPC(4, _(" ...Um...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -13526,33 +13526,33 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ WAIT(60), MSG_NPC(4, _(" I heard this story...")), MSG_NPC(4, _(" Somewhere in the world is\na Pokémon that was made for fighting.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" A Pokémon...{WAIT_PRESS}\nmade for fighting?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Yup.")), MSG_NPC(4, _(" They say it has so much\nfighting power...")), MSG_NPC(4, _(" All it can think of is\ndefeating anything it meets.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000001), MSG_NPC(3, _(" Th-that's rather a savage\nPokémon! I shudder to think...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Where might such a horrid\nPokémon be now?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Rumors say...{WAIT_PRESS}\nit is storing its power...")), MSG_NPC(4, _(" They say it is sleeping in\na dungeon somewhere...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(60), WAIT(30), { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" That rumor...{WAIT_PRESS}\nIt's true...") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -13568,23 +13568,23 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0x62, 0x00, 0x0080, 0x00000010, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" {NAME_6}...{WAIT_PRESS}\nAnd {NAME_7}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Oh my gosh!\nWhat happened to you?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" They're hurt bad...{WAIT_PRESS}\nWhat exactly happened?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000003), PORTRAIT(PLACEMENT_TOP_LEFT, 0x0007, 0x00000003), MSG_NPC(7, _(" Urgh...{WAIT_PRESS}\nIt's what that {NAME_4} was saying...")), MSG_NPC(7, _(" ...We were wiped out by\nthat Pokémon...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(473), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13594,12 +13594,12 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0x56, 0x00, 0x0000, 0x0000005b, 0x00000000, NULL }, CALL_SCRIPT(JUMP_SURPRISE_FUNC), MSG_NPC(2, _(" Wh-what did you say?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(6, _(" Grgh... There's no mistake...{WAIT_PRESS}\nIt said it was born to fight...")), MSG_NPC(6, _(" ...But that Pokémon's\npower...{WAIT_PRESS}\nThere was nothing fake about it...")), MSG_NPC(6, _(" ...It really was the most\npowerful...{WAIT_PRESS}\n...Gfah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13610,7 +13610,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x56, 0x00, 0x0000, 0x0000005b, 0x00000000, NULL }, MSG_NPC(2, _(" Ch-{NAME_6}!\nAre you OK?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), WAIT(60), MSG_NPC(7, _(" There is a cave...\nfar in the west...{WAIT_PRESS}\nIt's there...")), @@ -13620,7 +13620,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000068, 0x00000000, NULL }, MSG_NPC(7, _(" I never want...{WAIT_PRESS}\nto go back again...{WAIT_PRESS} Gfwoh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000c, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(473), @@ -13631,7 +13631,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0x56, 0x00, 0x0000, 0x0000005b, 0x00000000, NULL }, MSG_NPC(3, _(" Oh, my gosh!\nBlastoise went down, too!{WAIT_PRESS}\nThey need help now!")), MSG_NPC(3, _(" I'll go get someone!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(60), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -13646,10 +13646,10 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ MSG_NPC(2, _(" ...But, you know?{WAIT_PRESS}\nSo we now know that Pokémon is in the\n{COLOR YELLOW_D}Western Cave{RESET}...")), MSG_NPC(2, _(" I still don't feel like going\nout there...")), MSG_NPC(2, _(" Going anywhere like that'd\nbe too scary by half!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" I'm scared too...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000006d, 0x00000000, NULL }, @@ -13657,7 +13657,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0005, 0x00000001), MSG_NPC(5, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -13667,7 +13667,7 @@ static const struct ScriptCommand s_gs1_g46_s0_lives0_dlg0[] = { /* 0x816e9f8 */ FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR YELLOW_D}Western Cave{RESET}\n{CENTER_ALIGN}is now open for exploration!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, { 0xdf, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, @@ -14055,7 +14055,7 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, {NAME_0}.\nEveryone's gathered around.")), VARIANT_DEFAULT(_(" Look, {NAME_0}.\nEveryone's gathered around.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -14063,7 +14063,7 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000001), MSG_NPC(2, _(" Aiyiyi...\nI do not deserve this! I am outraged!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x6b, 0x00, 0x0100, 0x00000091, 0x00000000, NULL }, @@ -14071,7 +14071,7 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" What's up, folks?")), VARIANT_DEFAULT(_(" What's up, everyone?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -14088,18 +14088,18 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ { 0x56, 0x00, 0x0000, 0x00000146, 0x00000000, NULL }, { 0xde, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Many, many TMs are simply\ngone! Spirited away!\nDark clouds fill my heart!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" My bank wasn't hit, but...{WAIT_PRESS}\nThese are frightening times.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Is the storage OK?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0002, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, @@ -14108,14 +14108,14 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0005, 0x00000001), MSG_NPC(5, _(" This mama's not about to\nmake a stupid mistake like that! Kakakah!")), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0002, 0x00000001), MSG_NPC(2, _(" You're insinuating...{WAIT_PRESS}\nthat we were robbed for being careless?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14128,22 +14128,22 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ MSG_NPC(6, _(" Now wait.")), WAIT(10), MSG_NPC(6, _(" Tell me, Kecleon.{WAIT_PRESS}\nYou saw...this thief?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" Hmm...?{WAIT_PRESS}\nNo, not very clearly, I didn't.")), MSG_NPC(2, _(" When I saw it, it had\nalready taken off...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" Taken off?{WAIT_PRESS}\nYou mean it flew away?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Yes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14152,12 +14152,12 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" At tremendous speed\ntoo.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" The yonder direction...{WAIT_PRESS}\nThat would be the Northern Range...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" It's impossible to determine\nwhat the thief is...")), @@ -14165,14 +14165,14 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Yes. I beg for justice.{WAIT_PRESS}\nMy business faces ruination.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}.\nWant to go check it out?")), VARIANT_DEFAULT(_(" {NAME_0}.\nWant to look into this?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}'s team took on\n{CENTER_ALIGN}the case of pursuing the burglar\n{CENTER_ALIGN}that struck Kecleon's shop.") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The burglar's alleged\n{CENTER_ALIGN}getaway spot...") }, @@ -14180,7 +14180,7 @@ static const struct ScriptCommand s_gs1_g47_s0_lives0_dlg0[] = { /* 0x8171d48 */ FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR YELLOW_D}Northern Range{RESET}\n{CENTER_ALIGN}is now open for investigation!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -14365,28 +14365,28 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Look! He's waking up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0005, 0x00000000), PORTRAIT_POS(5, -1, 0), MSG_NPC(5, _(" ...Wh-where...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is Pokémon Square.")), VARIANT(/* == */ 1, _(" You passed out in the\n{COLOR YELLOW_D}Northern Range{RESET}, so we brought you back\nwith us.")), VARIANT_DEFAULT(_(" This is Pokémon Square.")), VARIANT_DEFAULT(_(" You fainted in the {COLOR YELLOW_D}Northern\nRange{RESET}, so we brought you back here.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000001), MSG_NPC(2, _(" You! How dare you steal\nmy fine selection of quality merchandise!")), MSG_NPC(2, _(" You had better be prepared\nfor harsh justice!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -14395,12 +14395,12 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ PORTRAIT_POS(4, -3, 1), MSG_NPC(4, _(" Now wait.{WAIT_PRESS}\nThere must be a good reason for this.")), MSG_NPC(4, _(" We should at least hear\nthat.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" ...!{WAIT_PRESS} That's right!\nI have to get my sister...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14411,12 +14411,12 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ CALL_SCRIPT(SHOCK_FUNC), { 0xe2, 0x00, 0x01d1, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Ggh! This wound!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" You're injured.\nYou can't fly for now.")), MSG_NPC(4, _(" Tell me, how do you justify\nwhat you've done?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14424,14 +14424,14 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ WAIT(60), MSG_NPC(5, _(" I have a younger sister.\nHer name is Latias.")), MSG_NPC(5, _(" Latias...{WAIT_PRESS}\nCrashed somewhere in the {COLOR YELLOW_D}Pitfall Valley{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" What?!{WAIT_PRESS}\nThe {COLOR YELLOW_D}Pitfall Valley{RESET}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14439,20 +14439,20 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" ...What is that?{WAIT_PRESS}\nWhat's the {COLOR YELLOW_D}Pitfall Valley{RESET}?")), VARIANT_DEFAULT(_(" ...What is that?{WAIT_PRESS}\nWhat is the {COLOR YELLOW_D}Pitfall Valley{RESET}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), MSG_NPC(2, _(" It is near the {COLOR YELLOW_D}Northern\nRange{RESET}.")), MSG_NPC(2, _(" They say that anyone so\nunlucky to fall into the {COLOR YELLOW_D}Pitfall Valley{RESET}...{WAIT_PRESS}\nwill never again emerge.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Latias and I were flying\nover the Northern Range.")), MSG_NPC(5, _(" When suddenly, what\nappeared to be a meteorite struck\nLatias on the wing...")), MSG_NPC(5, _(" Her wing shattered by the\nblow, Latias tumbled down into the\ndepths of the {COLOR YELLOW_D}Pitfall Valley{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14461,24 +14461,24 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, MSG_NPC(1, _(" {NAME_0}!{WAIT_PRESS}\nDo you think maybe that it's a chunk of\nthe blown-up meteor?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000003, 0x00000000, NULL }, MSG_NPC(5, _(" I went to the {COLOR YELLOW_D}Pitfall Valley{RESET}\nin hopes of rescuing my sister, but...")), MSG_NPC(5, _(" I made little headway...\nI wasn't up to the task...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0004, 0x00000000), MSG_NPC(4, _(" So that drove you to steal\nTechnical Machines...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(5, _(" Yes.{WAIT_PRESS}\nI intended to make amends after I saved\nmy sister...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" But that doesn't mean I can\nget away with thievery.{WAIT_PRESS}\nIt was wrong, and I'm sorry.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -14489,7 +14489,7 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Oh... Oh, my!{WAIT_PRESS}\nIt is not a problem! Not a problem at all!")), MSG_NPC(2, _(" For a reason so compelling,\nit can't be helped. Hahaha.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -14500,7 +14500,7 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ MSG_NPC(4, _(" What would you do then?")), MSG_NPC(4, _(" The nether regions of the\n{COLOR YELLOW_D}Pitfall Valley{RESET} are a void...")), MSG_NPC(4, _(" You will wander forever,\nneither falling...{WAIT_PRESS}nor living...{WAIT_PRESS}\nWhat then?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0005, 0x00000000), @@ -14508,10 +14508,10 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ MSG_NPC(5, _(" Latias hasn't been able to\nclimb out of the depths.\nShe is all alone down there.")), MSG_NPC(5, _(" Even if I end up like her,\nunable to escape...{WAIT_PRESS}\nTwo would be better than one.")), MSG_NPC(5, _(" Latias wouldn't have to\nbe so alone...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" How foolish...{WAIT_PRESS}\nDo you think Latias wishes for that?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 1), @@ -14519,10 +14519,10 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ VARIANT(/* == */ 1, _(" How are we supposed to pull\noff a rescue from a place like that...?")), VARIANT_DEFAULT(_(" But...{WAIT_PRESS}\nIt's a place you can't escape, isn't it?")), VARIANT_DEFAULT(_(" I don't see how we could\ndo a rescue in a place like that...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" No...{WAIT_PRESS} There is...{WAIT_PRESS}\nThere is but one possible way...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -14533,25 +14533,25 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" You can?!{WAIT_PRESS}\nHow?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" You already have the means\nin your possession.")), MSG_NPC(4, _(" The {COLOR GREEN_I}Teleport Gem{RESET}.{WAIT_PRESS}\nUse that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000004), MSG_NPC(1, _(" The {COLOR GREEN_I}Teleport Gem{RESET}?{WAIT_PRESS}\nThe one we used to get up to the sky\nwhere Rayquaza lives?")), MSG_NPC(1, _(" But it got broken in the\nfalling star's explosion.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" While it is unlikely to\ncarry you to the sky again, it should\nbe able to carry you a shorter distance.")), MSG_NPC(4, _(" If you were to use the\n{COLOR GREEN_I}Teleport Gem{RESET} from deep within the {COLOR YELLOW_D}Pitfall\nValley{RESET}...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000009), MSG_NPC(1, _(" That's it!{WAIT_PRESS}\nIf we did that, we could escape with\nLatias!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, @@ -14563,13 +14563,13 @@ static const struct ScriptCommand s_gs1_g48_s0_lives0_dlg0[] = { /* 0x8173394 */ VARIANT(/* == */ 3, _(" Let's go get Latias!")), VARIANT_DEFAULT(_(" {NAME_0}!{WAIT_PRESS}\nThis is a rescue that only we can do!")), VARIANT_DEFAULT(_(" Let's go rescue Latias!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), BGM_STOP, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Pitfall Valley{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -14790,31 +14790,31 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000000), MSG_NPC(5, _(" {NAME_6}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000000), MSG_NPC(6, _(" Latios!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0005, 0x00000001), MSG_NPC(5, _(" You're safe!\nThis is incredible...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0006, 0x00000000), MSG_NPC(6, _(" I'm sorry...\nI caused you so much worry...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_TOP_LEFT, 0x0002, 0x00000000), MSG_NPC(2, _(" Oh, this is great...\nIt's so touching... Sniffle...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, @@ -14828,7 +14828,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ MSG_NPC(5, _(" But we're back together\nagain...{WAIT_PRESS}\nIt's happiness beyond words...")), PORTRAIT_REP(0x0005, 0x00000001), MSG_NPC(5, _(" We owe you so much\ngratitude! Thank you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, WAIT(10), @@ -14836,31 +14836,31 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Hey, now, that's OK.{WAIT_PRESS}\nIt's even a little embarrassing when you\nput it that way, hahaha!")), VARIANT_DEFAULT(_(" It's OK, really.{WAIT_PRESS}\nWhen you put it that way, it's even a little\nembarrassing. Hahaha.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0005, 0x00000000), MSG_NPC(5, _(" However...\nWe have no money or any other way of\nrepaying your kindness.")), MSG_NPC(5, _(" So, and it's the least we\ncan do...{WAIT_PRESS}\nMay we join your rescue team?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" Huh...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0006, 0x00000000), MSG_NPC(6, _(" We would like to join {COLOR CYAN}Team\n{TEAM_NAME}{RESET} and help with your rescue\nwork.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Would that work?{WAIT_PRESS}\nWould you be willing to accept us on\nyour rescue team?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000000, 0x00000000, NULL }, @@ -14871,10 +14871,10 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ VARIANT_DEFAULT(_(" {NAME_0}, what should\nwe do?{WAIT_PRESS}\nDo we let Latios and Latias join?")), CHOICE(/* label */ 10, _("Yes.")), CHOICE(/* label */ 11, _("No.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), LABEL(11), /* = 0x0b */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), FANFARE_PLAY2(455), @@ -14885,16 +14885,16 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x0000000c), MSG_NPC(1, _(" Huh?\nYou're really sure about that?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000005), ASK3( TRUE, /*default*/ -1, /* speaker */ 1, _(" They're volunteering!\nDon't you think we should let them join?")), CHOICE(/* label */ 10, _("Accept.")), CHOICE(/* label */ 13, _("No, forget it.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), LABEL(13), /* = 0x0d */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(455), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -14905,7 +14905,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0004, 0x00000000), MSG_NPC(4, _(" It is you who decides.\nThe outcome is of no concern to me.")), MSG_NPC(4, _(" However...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -14916,7 +14916,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ MSG_NPC(4, _(" If you part ways with them\nnow, you may never see them again.")), MSG_NPC(4, _(" Strike that.\nYou will never again see them.")), MSG_NPC(4, _(" Even knowing that...{WAIT_PRESS}\nEven if you would never see them again,\nyou will still not accept them?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -14929,7 +14929,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}, think good\nand hard about this.")), VARIANT_DEFAULT(_(" {NAME_0}, give it good\nthought.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), ASK3_VAR( TRUE, /*default*/ -1, /* speaker */ 1, PARTNER_TALK_KIND), @@ -14938,7 +14938,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ CHOICE(/* label */ 10, _("Yes.")), CHOICE(/* label */ 11, _("No.")), LABEL(10), /* = 0x0a */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -14960,21 +14960,21 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ VARIANT(/* == */ 1, _(" You're our fellow members\nfrom now on! Welcome aboard!")), VARIANT_DEFAULT(_(" Done!")), VARIANT_DEFAULT(_(" You're our fellow members\nfrom now on. Great to have you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000001, 0x00000000, NULL }, PORTRAIT_REP(0x0005, 0x00000001), MSG_NPC(5, _(" Thanks for having us!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000002, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0006, 0x00000001), MSG_NPC(6, _(" Delighted to join!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}And thus...") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{COLOR CYAN}Team {TEAM_NAME}{RESET} was\n{CENTER_ALIGN}joined by {NAME_5} and {NAME_6}!") }, @@ -14982,7 +14982,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_5} and {NAME_6}\n{CENTER_ALIGN}became team members!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x24, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_5}?")), CHOICE(/* label */ 17, _("*Yes.")), @@ -14991,7 +14991,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(18), /* = 0x12 */ { 0x3b, 0x25, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x26, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_6}?")), CHOICE(/* label */ 19, _("*Yes.")), @@ -15000,7 +15000,7 @@ static const struct ScriptCommand s_gs1_g49_s0_lives0_dlg0[] = { /* 0x81757f8 */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(20), /* = 0x14 */ { 0x3b, 0x27, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -15320,7 +15320,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives3_dlg2[] = { /* 0x817803c */ MSG_NPC(1, _(" Are you dreaming about\nthe treasures too?")), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Kukukuh...{WAIT_PRESS} Me too!{WAIT_PRESS}\nBest of luck, compadre!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, JUMPIF_SCENE_GT(SCENARIO_SUB7, 49, 2, /* to label */ 1), WAIT(30), @@ -15328,7 +15328,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives3_dlg2[] = { /* 0x817803c */ FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0}'s team gained\n{CENTER_ALIGN}access to the {COLOR YELLOW_D}Buried Relic{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMPIF_SCENE_GT(SCENARIO_SUB7, 49, 2, /* to label */ 1), { 0xaf, 0x01, 0x001b, 0x00000000, 0x00000000, NULL }, SCENARIO_CALC(SCENARIO_SUB7, 49, 3), @@ -15364,7 +15364,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives4_dlg2[] = { /* 0x8178410 */ MSG_NPC(1, _(" It seems talk of the relic\nis on everyone's lips today!")), MSG_NPC(1, _(" If you find any\ntreasures, please do sell them to me.")), MSG_NPC(1, _(" And now...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x17, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15380,7 +15380,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives5_dlg2[] = { /* 0x8178564 */ SET_ARRAYVAL(EVENT_S07E01, 6, 1), MSG_NPC(1, _(" Oh, isn't it exciting?{WAIT_PRESS}\nWhy, I wouldn't mind closing up the shop\nso I could go treasure hunting!")), MSG_NPC(1, _(" And now...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x18, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15395,7 +15395,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives6_dlg2[] = { /* 0x8178690 */ JUMPIF_ARRAY(EVENT_S07E01, 7, /* to label */ 0), SET_ARRAYVAL(EVENT_S07E01, 7, 1), MSG_NPC(1, _(" If you find a fortune in the\nrelic, save it here with me!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x13, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15410,7 +15410,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives7_dlg2[] = { /* 0x8178780 */ JUMPIF_ARRAY(EVENT_S07E01, 8, /* to label */ 0), SET_ARRAYVAL(EVENT_S07E01, 8, 1), MSG_NPC(1, _(" I wonder what kinds of\nfriends are in the {COLOR YELLOW_D}Buried Relic{RESET}?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x1b, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15427,7 +15427,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives8_dlg2[] = { /* 0x8178870 */ MSG_NPC(1, _(" You're going too, aren't you?\nTo the {COLOR YELLOW_D}Buried Relic{RESET}.")), MSG_NPC(1, _(" This mama's behind you all\nthe way! Go for it!")), MSG_NPC(1, _(" OK...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15443,7 +15443,7 @@ static const struct ScriptCommand s_gs1_g50_s0_lives9_dlg2[] = { /* 0x81789bc */ SET_ARRAYVAL(EVENT_S07E01, 10, 1), MSG_NPC(1, _(" What treasures can be\nfound in the {COLOR YELLOW_D}Buried Relic{RESET}, I wonder?")), MSG_NPC(1, _(" It makes me drool thinking\nwhat I could swallow in a place like that.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ { 0x3c, 0x19, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), @@ -15490,12 +15490,12 @@ static const struct ScriptCommand s_gs1_g52_s0_lives0_dlg2[] = { /* 0x8178d0c */ COND_EQUAL(1, /* to label */ 4), PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000041), MSG_NPC(1, _(" Thank you!{WAIT_PRESS}\nI promise to do my best for the team!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY(204), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_1} became the\n{CENTER_ALIGN}rescue team's newest member!") }, { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x3b, 0x31, 0x0000, 0x00000000, 0x00000000, NULL }, ASK1(FALSE, /*default*/ -1, /* speaker */ -1, _("Give a nickname to {NAME_1}?")), @@ -15505,7 +15505,7 @@ static const struct ScriptCommand s_gs1_g52_s0_lives0_dlg2[] = { /* 0x8178d0c */ { 0x3d, 0x00, 0x0000, -0x00000001, 0x00000000, NULL }, LABEL(7), /* = 0x07 */ { 0x3b, 0x32, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, SCENARIO_CALC(SCENARIO_SUB9, 55, 3), { 0x23, 0x01, 0x001e, 0x00000000, 0x00000000, NULL }, CANCEL_ENTITIES(52, -1), @@ -15519,12 +15519,12 @@ static const struct ScriptCommand s_gs1_g52_s0_lives0_dlg2[] = { /* 0x8178d0c */ MSG_NPC(1, _(" ...However, there seems to\nbe no space for me in my Friend Area...{WAIT_PRESS}\nThis is disappointing...")), MSG_NPC(1, _(" I could join your rescue\nteam if there were less Pokémon in\n{COLOR GREEN}Sky Blue Plains{RESET}...")), MSG_NPC(1, _(" Please tell me then.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_SCRIPT(END_TALK), LABEL(3), /* = 0x03 */ PORTRAIT_REP(0x0001, 0x00000042), MSG_NPC(1, _(" ...I see.{WAIT_PRESS}\nThis is disappointing...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, JUMP_SCRIPT(END_TALK), }; diff --git a/src/data/ground/ground_data_t01p02a_station.h b/src/data/ground/ground_data_t01p02a_station.h index 181d08456..e9dd6c509 100644 --- a/src/data/ground/ground_data_t01p02a_station.h +++ b/src/data/ground/ground_data_t01p02a_station.h @@ -198,7 +198,7 @@ static const struct ScriptCommand s_gs2_g0_s2_evt0_sref_script[] = { /* 0x817df3 LABEL(0), /* = 0x00 */ { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The entrance is too narrow.\n{CENTER_ALIGN}There is only room for one.") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Come alone to enter!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET, }; @@ -244,12 +244,12 @@ static const struct ScriptCommand s_gs2_g1_s0_lives0_dlg2[] = { /* 0x817e130 */ PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" I went into the cave, but...{WAIT_PRESS}\nI couldn't evolve into Butterfree.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" That's too bad, Metapod.")), MSG_NPC(2, _(" I bet you weren't high\nenough in level, Metapod.")), MSG_NPC(2, _(" If you train and raise your\nlevel, I think you'll be able to evolve.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh, so it's my level!{WAIT_PRESS}\nI get it! I'll work at leveling up!")), JUMP_SCRIPT(END_TALK), @@ -272,12 +272,12 @@ static const struct ScriptCommand s_gs2_g1_s0_lives1_dlg2[] = { /* 0x817e3c0 */ PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_LEFT_, 0x0003, 0x00000000), MSG_NPC(3, _(" I went into the cave, but...{WAIT_PRESS}\nI couldn't evolve into Butterfree.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" That's too bad, Metapod.")), MSG_NPC(2, _(" I bet you weren't high\nenough in level, Metapod.")), MSG_NPC(2, _(" If you train and raise your\nlevel, I think you'll be able to evolve.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh, so it's my level!{WAIT_PRESS}\nI get it! I'll work at leveling up!")), JUMP_SCRIPT(END_TALK), @@ -364,7 +364,7 @@ static const struct ScriptCommand s_gs2_g3_s0_lives0_dlg2[] = { /* 0x817e834 */ MSG_NPC(1, _(" It is a place appropriately\nnamed the {COLOR YELLOW_D}Stormy Sea{RESET}.")), MSG_NPC(1, _(" There, one will find a\ndungeon that leads to the bottom of\nthe sea.")), MSG_NPC(1, _(" The sea is infinitely dark,\nand its depth unimaginable.\nThat is what I have heard.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -378,7 +378,7 @@ static const struct ScriptCommand s_gs2_g3_s0_lives0_dlg2[] = { /* 0x817e834 */ PORTRAIT_REP(0x0001, 0x00000001), MSG_NPC(1, _(" Hohoho! Your face tells me\nyou are desperate to go.")), MSG_NPC(1, _(" So be it.{WAIT_PRESS}\nYou may have this.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x3c, 0x2c, 0x0000, 0x000000e7, 0x00000000, NULL }, WAIT(20), @@ -387,16 +387,16 @@ static const struct ScriptCommand s_gs2_g3_s0_lives0_dlg2[] = { /* 0x817e834 */ MSG_NPC(1, _(" If you were to carry that\nHidden Machine as an item...")), MSG_NPC(1, _(" Or if any team member\nwishing to enter the dungeon used that\nHidden Machine to learn {COLOR GREEN_I}Dive{RESET}...")), MSG_NPC(1, _(" You would be able to enter\nthe {COLOR YELLOW_D}Stormy Sea{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), BGM_STOP, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Gained access to\n{CENTER_ALIGN}the {COLOR YELLOW_D}Stormy Sea{RESET}!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}Beware--you must take the HM {COLOR GREEN_I}Dive{RESET},\n{CENTER_ALIGN}or a team member must learn {COLOR GREEN_I}Dive{RESET}\n{CENTER_ALIGN}as a move for the team to enter!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_SWITCH(8), { 0xaf, 0x01, 0x0010, 0x00000000, 0x00000000, NULL }, SCENARIO_CALC(SCENARIO_SUB2, 33, 4), @@ -554,26 +554,26 @@ static const struct ScriptCommand s_gs2_g6_s0_lives0_dlg0[] = { /* 0x817f910 */ PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(2, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ...We've found it at last!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yesss! Find it we did!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000001), PORTRAIT_REP(0x0003, 0x00000002), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" My wish...\nIt will finally come true!{WAIT_PRESS}\nPshehehe!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Hey, now, don't forget about\nmy wish!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -582,13 +582,13 @@ static const struct ScriptCommand s_gs2_g6_s0_lives0_dlg0[] = { /* 0x817f910 */ PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(2, _(" Listen, {NAME_3}.{WAIT_PRESS}\nWe must keep this a secret just between\nthe two of us.")), MSG_NPC(2, _(" We can't tell any Pokémon.\nNot even Gengar.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" I know that!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Let's decide on how\nwe're going to do this...{WAIT_PRESS} First...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -607,17 +607,17 @@ static const struct ScriptCommand s_gs2_g6_s0_lives0_dlg0[] = { /* 0x817f910 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Aiyeeeeeeeeeeeh!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), PORTRAIT_REP(0x0002, 0x00000000), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(2, _(" I...{WAIT_PRESS}\nI don't know anything!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Me too!\nI don't know a thing!")), MSG_NPC(3, _(" I don't know anything about\nmaking wishes come true!{WAIT_PRESS}\nI know nothing!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -767,22 +767,22 @@ static const struct ScriptCommand s_gs2_g8_s0_lives0_dlg0[] = { /* 0x8180674 */ PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(2, _(" {NAME_3}, listen.{WAIT_PRESS}\nI'm thinking it is best if only we go\ninto the dungeon.")), MSG_NPC(2, _(" If either one of us\nfalls before the end...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh, I get it.{WAIT_PRESS}\nThe other one can still go make wishes!")), MSG_NPC(3, _(" That's smart, {NAME_2}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" But of course.\nI can't wait until our wishes\ncome true〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000002), MSG_NPC(3, _(" My wish is for a broader\nlower jaw.")), MSG_NPC(3, _(" I want bigger jaws so I can\nswallow bigger things whole.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -790,7 +790,7 @@ static const struct ScriptCommand s_gs2_g8_s0_lives0_dlg0[] = { /* 0x8180674 */ MSG_NPC(2, _(" My wish is for a place\nwhere I can meditate in peace〜♪")), MSG_NPC(2, _(" With no one to bother me...")), MSG_NPC(2, _(" It would be magnificent\nif I could meditate for a year without\nfood〜♪")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -809,17 +809,17 @@ static const struct ScriptCommand s_gs2_g8_s0_lives0_dlg0[] = { /* 0x8180674 */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Giyaaaaaaaaaaaaaaaaah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), PORTRAIT_REP(0x0002, 0x00000000), PORTRAIT_REP(0x0003, 0x00000000), MSG_NPC(2, _(" I...{WAIT_PRESS}\nI don't know anything!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Me too!\nI don't know a thing!")), MSG_NPC(3, _(" I don't know anything about\na dungeon that makes wishes come true!{WAIT_PRESS}\nI know nothing!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(60), @@ -953,7 +953,7 @@ static const struct ScriptCommand s_gs2_g9_s1_lives0_dlg0[] = { /* 0x818131c */ WAIT(1), MSG_NPC(2, _(" ...I got KO'd in that\ndungeon, but what about Medicham?\nHope she's OK...")), MSG_NPC(2, _(" I hope she gets to the end\nand gets my wish to come true...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -961,19 +961,19 @@ static const struct ScriptCommand s_gs2_g9_s1_lives0_dlg0[] = { /* 0x818131c */ { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000001), MSG_NPC(2, _(" Giyah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(60), MSG_NPC(2, _(" Wh-what are you staring\nat, you?!")), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" I'm having a hard time\ntrying to make up my mind!{WAIT_PRESS}\nGet lost!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ...Hunh? Wait a second...\nMaybe I shouldn't be wishing for\na bigger lower jaw...?")), MSG_NPC(2, _(" I wonder if it'd be better\nif I could coil myself tighter...")), MSG_NPC(2, _(" ...Hmm...\nMutter...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xa1, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -1319,7 +1319,7 @@ static const struct ScriptCommand s_gs2_g16_s0_lives0_dlg2[] = { /* 0x8182a70 */ { 0x2d, 0x09, 0x0002, 0x00000063, 0x00000000, NULL }, WAIT(1), MSG_NPC(1, _(" Hohoho.\nYou wish to hear me tell old folklore?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), ASK3(FALSE, /*default*/ -1, /* speaker */ 1, _(" What was that?\nYou wish to hear the {COLOR GREEN}{NAME_2} legend{RESET}?")), CHOICE(/* label */ 1, _("Yes.")), @@ -1327,7 +1327,7 @@ static const struct ScriptCommand s_gs2_g16_s0_lives0_dlg2[] = { /* 0x8182a70 */ LABEL(1), /* = 0x01 */ BGM_FADEOUT(90), MSG_NPC(1, _(" Hohoho. Fine, then.{WAIT_PRESS}\nLet me recount the tale.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_STATION(-1, 16, 1), HALT, LABEL(2), /* = 0x02 */ @@ -1396,35 +1396,35 @@ static const struct ScriptCommand s_gs2_g16_s1_lives0_dlg0[] = { /* 0x8182f18 */ { 0x8b, 0x1e, 0x0004, 0x00000000, 0x00000000, NULL }, BGM_SWITCH(6), MSG_NPC(1, _(" There once lived a Pokémon\nby the name of {NAME_2}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_NPC(1, _(" Now, {NAME_2} had\nmany tails, all of them imbued with\npsychic power...")), MSG_NPC(1, _(" It was said that anyone so\nfoolish as to touch a tail would be cursed\nfor a thousand years.")), MSG_NPC(1, _(" But there was someone\nso foolish as to grab a tail.{WAIT_PRESS}\nAnd it was a human.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000004), MSG_NPC(3, _(" A human?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Yes, a human.")), MSG_NPC(1, _(" As one might expect, the\nhuman that grabbed the tail was subjected\nto a thousand-year curse.")), MSG_NPC(1, _(" However, just when the\ncurse was cast, a Pokémon named\n{NAME_4} shielded the human...")), MSG_NPC(1, _(" And sacrificed herself to\nabsorb the curse.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Why?")), MSG_NPC(3, _(" Why would that Pokémon,\nGardevoir, take the human's place?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" To {NAME_4}, that human\nwas her partner.")), MSG_NPC(1, _(" There exist strong bonds\nbetween humans and Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000004), MSG_VAR(2, PARTNER_TALK_KIND, 3), VARIANT(/* == */ 1, _(" ...All right.{WAIT_PRESS}\nBut humans... Aren't there good ones and\nbad ones too?")), VARIANT_DEFAULT(_(" ...OK.{WAIT_PRESS}\nBut humans... Aren't there good humans\nand bad ones too?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Correct.")), MSG_NPC(1, _(" Taking pity on {NAME_4},\n{NAME_2} asked the human this...")), @@ -1433,14 +1433,14 @@ static const struct ScriptCommand s_gs2_g16_s1_lives0_dlg0[] = { /* 0x8182f18 */ MSG_NPC(1, _(" {NAME_2} became\ndisillusioned with the human...")), MSG_NPC(1, _(" And it made this prediction...")), MSG_NPC(1, _(" “That human will one day\nbe reborn as a Pokémon...”")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, FANFARE_PLAY2(466), CALL_SCRIPT(SHOCK_FUNC), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x0000000c), MSG_NPC(3, _(" What?!{WAIT_PRESS}\nA human turn into a Pokémon?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0001, 0x00000002, 0x00000000, NULL }, @@ -1452,23 +1452,23 @@ static const struct ScriptCommand s_gs2_g16_s1_lives0_dlg0[] = { /* 0x8182f18 */ MSG_NPC(1, _(" “The world's balance will\nbe upset...”")), MSG_NPC(1, _(" ...And that is how the legend\nends.")), MSG_NPC(1, _(" Well?\nDid you find it interesting?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, BGM_FADEOUT(120), WAIT(80), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000005), MSG_NPC(3, _(" ........................")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(1, _(" Ah-hah!{WAIT_PRESS}\nYou found it so interesting, you're at\na loss for words? Hohoho.")), MSG_NPC(1, _(" There's no need to wear\nsuch a serious expression.")), MSG_NPC(1, _(" Certainly some rumors say\nthat the legend may actually be true...")), MSG_NPC(1, _(" But it is only ancient\nfolklore, nothing more.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000001), MSG_NPC(1, _(" If you feel the urge to hear\nmy tale again, come see me. Hohoho.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, BGM_SWITCH(8), @@ -1518,7 +1518,7 @@ static const struct ScriptCommand s_gs2_g16_s1_lives2_dlg2[] = { /* 0x8183d24 */ { 0x2d, 0x09, 0x0002, 0x00000063, 0x00000000, NULL }, WAIT(1), MSG_NPC(1, _(" Hohoho.\nYou wish to hear me tell old folklore?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), ASK3(FALSE, /*default*/ -1, /* speaker */ 1, _(" What was that?\nYou wish to hear the {COLOR GREEN}{NAME_2} legend{RESET}?")), CHOICE(/* label */ 1, _("Yes.")), @@ -1569,16 +1569,16 @@ static const struct ScriptCommand s_gs2_g18_s0_lives0_dlg0[] = { /* 0x8183f98 */ MSG_NPC(2, _(" As one might expect, the\nhuman that grabbed the tail was subjected\nto a curse of a thousand years.")), MSG_NPC(2, _(" However, just when the\ncurse was cast, a Pokémon named\n{NAME_3} shielded the human...")), MSG_NPC(2, _(" And sacrificed herself to\nabsorb the curse.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0001, 0x00000004), MSG_NPC(1, _(" Why?")), MSG_NPC(1, _(" Why would that Pokémon,\nGardevoir, take the human's place?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" To {NAME_3}, that human\nwas her partner.")), MSG_NPC(2, _(" There exist strong bonds\nbetween humans and Pokémon.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, @@ -2186,7 +2186,7 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0001, 0x00000000), MSG_NPC(1, _(" Hi, {NAME_4}!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2204,14 +2204,14 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ VARIANT(/* == */ 1, _(" I heard something weird\nhappened to him.")), VARIANT_DEFAULT(_(" Hi, {NAME_4}.\nHave you seen Snubbull?")), VARIANT_DEFAULT(_(" I heard something strange\nhappened to him.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_RIGHT, 0x0005, 0x00000000), PORTRAIT_POS(5, 2, 3), MSG_NPC(5, _(" I'm Snubbull.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(JUMP_SURPRISE_FUNC), @@ -2219,24 +2219,24 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Whaaaat?!{WAIT_PRESS}\nYou're Snubbull?")), MSG_NPC(1, _(" But you don't look anything\nlike the way you did before!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), MSG_NPC(5, _(" I don't really understand,\neither.")), MSG_NPC(5, _(" I went into the cave there,\nand all of a sudden...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), MSG_NPC(1, _(" What cave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_TOP_RIGHT, 0x0006, 0x00000000), PORTRAIT_POS(6, 0, -1), MSG_NPC(6, _(" It appeared without me\nnoticing.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x000b, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(6, _(" See?\nRight there.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2253,7 +2253,7 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0001, 0x00000000), MSG_NPC(1, _(" So you went in there...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, @@ -2264,13 +2264,13 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" Yup.{WAIT_PRESS}\nAnd I came out looking like this...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0004, 0x00000000), MSG_NPC(4, _(" Snubbull underwent\n“evolution.”{WAIT_PRESS}\nHe evolved.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, @@ -2285,11 +2285,11 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Evolution? Evolved?{WAIT_PRESS}\nWhat's that about?")), VARIANT_DEFAULT(_(" Evolution? Evolved?{WAIT_PRESS}\nI don't follow.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(4, _(" Pokémon, upon satisfying\ncertain conditions, may evolve.")), MSG_NPC(4, _(" When a Pokémon undergoes\nevolution, its appearance changes.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2299,39 +2299,39 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ CALL_SCRIPT(NOTICE_FUNC), PORTRAIT_REP(0x0001, 0x0000000c), MSG_NPC(1, _(" Oh, wow!{WAIT_PRESS}\nYour own appearance...{WAIT_PRESS}\nThat can change?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), MSG_NPC(4, _(" I suspect that cave is where\nevolution can take place.")), MSG_NPC(4, _(" This is merely a guess...")), MSG_NPC(4, _(" Perhaps evolution could\nnot take place before because the world's\nbalance was askew.")), MSG_NPC(4, _(" However, now that the star\nhas been destroyed...{WAIT_PRESS}\nThe world's balance has been restored...")), MSG_NPC(4, _(" And perhaps that cave\nbecame unsealed.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_MIDDLE_LEFT, 0x0002, 0x00000000), PORTRAIT_POS(2, -2, 0), MSG_NPC(2, _(" So if I evolved, I would\nbecome like {NAME_3}?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), PORTRAIT_POS(3, -1, 0), MSG_NPC(3, _(" I wish...{WAIT_PRESS}\nI want to be Butterfree quickly...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(5, _(" W-wait a second.{WAIT_PRESS}\nI don't know if I like this or not...")), MSG_NPC(5, _(" My cute little face turned\nall craggy...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Evolution is not a bad\nthing.")), MSG_NPC(4, _(" Appearance isn't the only\nthing that changes through evolution.")), MSG_NPC(4, _(" One's power and abilities\nmay be enhanced, for example.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2340,17 +2340,17 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(NOTICE_FUNC), MSG_NPC(5, _(" Oh! Really?!{WAIT_PRESS}\nI...{WAIT_PRESS} I might be stronger?!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" That makes me want to\nevolve even more!")), MSG_NPC(3, _(" I wish I could be Butterfree\nsoon...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0002, 0x00000041), MSG_NPC(2, _(" M-me too!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2360,13 +2360,13 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ VARIANT(/* == */ 1, _(" Can we evolve if we go to\nthat cave?")), VARIANT(/* == */ 3, _(" Can we evolve if we go to\nthat cave?")), VARIANT_DEFAULT(_(" Can we evolve if we go to\nthat cave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0009, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(4, _(" Yes.{WAIT_PRESS}\nBut it would depend on the conditions.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2375,7 +2375,7 @@ static const struct ScriptCommand s_gs2_g29_s0_lives0_dlg0[] = { /* 0x81863ec */ VARIANT(/* == */ 1, _(" {NAME_0}.{WAIT_PRESS}\nWe should go to the cave if we want to\nevolve.")), VARIANT(/* == */ 3, _(" {NAME_0}.{WAIT_PRESS}\nLet's go to the cave if we're ready to\nevolve.")), VARIANT_DEFAULT(_(" {NAME_0}.{WAIT_PRESS}\nLet's go to the cave if we're ready to\nevolve.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_t01p03_station.h b/src/data/ground/ground_data_t01p03_station.h index caa0a3fdf..72a5f63b7 100644 --- a/src/data/ground/ground_data_t01p03_station.h +++ b/src/data/ground/ground_data_t01p03_station.h @@ -411,7 +411,7 @@ static const struct ScriptCommand s_gs4_g1_s0_lives4_dlg2[] = { /* 0x818aecc */ MSG_NPC(1, _(" Somewhere in the world\nthere is an extremely rare Pokémon...{WAIT_PRESS}\nnamed Chansey.")), MSG_NPC(1, _(" This is what they say about\nChansey.{WAIT_PRESS} If you are lucky enough to meet\none, you will be filled with happiness.")), MSG_NPC(1, _(" I wonder what sort of\na Pokémon it is.{WAIT_PRESS} Wouldn't you like to meet\none, even once?{WAIT_PRESS} Wait a second...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Waaaaaaaaaaaaaaaaaaaah!")), @@ -479,13 +479,13 @@ static const struct ScriptCommand s_gs4_g1_s1_lives0_dlg0[] = { /* 0x818b710 */ WAIT(1), { 0x34, 0x00, 0x0003, 0x00000000, 0x00000000, _(" (Papa still hasn't come\nhome...)") }, { 0x34, 0x00, -0x0001, 0x00000000, 0x00000000, _(" Our son!{WAIT_PRESS}\nSorry to make you wait!") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), FANFARE_PLAY2(465), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" ...Oh!{WAIT_PRESS}\nThat voice!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -498,7 +498,7 @@ static const struct ScriptCommand s_gs4_g1_s1_lives0_dlg0[] = { /* 0x818b710 */ { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Get set!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(0, 0), WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -507,35 +507,35 @@ static const struct ScriptCommand s_gs4_g1_s1_lives0_dlg0[] = { /* 0x818b710 */ { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000007, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ha!")), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000006, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ha!")), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ha!")), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Ha!")), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -545,32 +545,32 @@ static const struct ScriptCommand s_gs4_g1_s1_lives0_dlg0[] = { /* 0x818b710 */ TEXTBOX_AUTO_PRESS(-1, -1), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(10), MSG_NPC(2, _(" Our son, we're sorry for\ncausing you anxiety.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Papa.{WAIT_PRESS}\nWhere were you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" We were traveling the\nworld.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" The world is vast.{WAIT_PRESS}\nThere are countless Pokémon around the\nworld that are unknown in these areas.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" That's why you were gone...{WAIT_PRESS}\nPapa, did you see all the Pokémon that\naren't known in these areas?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ..................{WAIT_PRESS}\nOf course.")), MSG_NPC(2, _(" What do you take us for?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh! Of course!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -789,12 +789,12 @@ static const struct ScriptCommand s_gs4_g3_s0_lives0_dlg0[] = { /* 0x818ca80 */ PORTRAIT(PLACEMENT_MIDDLE_TOP_LEFT, 0x0003, 0x00000000), MSG_NPC(1, _(" There was a job posted on\nthe Bulletin Board which said, “Punish bad\n{COLOR YELLOW_N}Mankey{RESET}.”")), MSG_NPC(1, _(" Did you two put up that job?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" Yup, yup!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -802,34 +802,34 @@ static const struct ScriptCommand s_gs4_g3_s0_lives0_dlg0[] = { /* 0x818ca80 */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT_REP(0x0003, 0x00000041), MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" A bad Mankey gang is going\nwild in our forest.\nEveryone is upset.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), { 0x91, 0x04, 0x0001, 0x00000003, 0x00000000, NULL }, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" We don't know why they\nrampage around...")), MSG_NPC(2, _(" But they are always angry\nand attack anyone they see!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(10), PORTRAIT_REP(0x0001, 0x00000004), @@ -842,17 +842,17 @@ static const struct ScriptCommand s_gs4_g3_s0_lives0_dlg0[] = { /* 0x818ca80 */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" {NAME_0}, we should go.")), VARIANT_DEFAULT(_(" {NAME_0}, we should go.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" Thank you!\nWe're counting on you!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x0002, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Wobbuffet!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, WAIT(30), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The place where the Mankey gang\n{CENTER_ALIGN}is wreaking havoc on others...") }, @@ -860,7 +860,7 @@ static const struct ScriptCommand s_gs4_g3_s0_lives0_dlg0[] = { /* 0x818ca80 */ FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR YELLOW_D}Uproar Forest{RESET} is now\n{CENTER_ALIGN}open for exploration!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -947,7 +947,7 @@ static const struct ScriptCommand s_gs4_g4_s0_lives0_dlg2[] = { /* 0x818d588 */ LABEL(2), /* = 0x02 */ JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, EXECUTE_FUNCTION(EVENT_S01E02A_L001), CANCEL_ENTITIES(4, 0), JUMP_SCRIPT(END_TALK), @@ -986,13 +986,13 @@ static const struct ScriptCommand s_gs4_g5_s0_lives0_dlg0[] = { /* 0x818d758 */ VARIANT(/* == */ 1, _(" What's it say?{WAIT_PRESS}\nCan you read it?")), VARIANT_DEFAULT(_(" “Smeargle's desperate plea,”\nhuh...?{WAIT_PRESS}\nThat's quite the title.")), VARIANT_DEFAULT(_(" What does it say?{WAIT_PRESS}\nCan you read it?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} read the letter.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("“Please allow me to introduce myself.\nMy name is Smeargle.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("I once had aspirations of becoming\nan artist.") }, @@ -1000,7 +1000,7 @@ static const struct ScriptCommand s_gs4_g5_s0_lives0_dlg0[] = { /* 0x818d758 */ { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("I fled because I didn't want to become an\nadult.{WAIT_PRESS}\nBut then I lost my way...") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("I now find myself in this forest, unable to\nextricate myself...") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("I am lost in the {COLOR YELLOW_D}Howling Forest{RESET}!{WAIT_PRESS}\nSomebody!{WAIT_PRESS} Please save me!”") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1010,14 +1010,14 @@ static const struct ScriptCommand s_gs4_g5_s0_lives0_dlg0[] = { /* 0x818d758 */ VARIANT(/* == */ 1, _(" I don't really get it, but...{WAIT_PRESS}\nWell, let's go rescue this Smeargle!")), VARIANT_DEFAULT(_(" .............{WAIT_PRESS}\nHe ran away because he didn't want to\nbecome an adult...{WAIT_PRESS} What's that about?")), VARIANT_DEFAULT(_(" I don't really get this...{WAIT_PRESS}\nBut let's go rescue this Smeargle anyway!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The forest in which Smeargle\n{CENTER_ALIGN}is thought to have gone missing...") }, BGM_STOP, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR YELLOW_D}Howling Forest{RESET}\n{CENTER_ALIGN}is now open for exploration!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1067,12 +1067,12 @@ static const struct ScriptCommand s_gs4_g6_s0_lives0_dlg2[] = { /* 0x818e0a4 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" Oh, no...\nMedicham went down...\nWhat should I do...?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" If I went, I'd only last a\nlittle while... Oh, no...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, WAIT(1), @@ -1131,7 +1131,7 @@ static const struct ScriptCommand s_gs4_g7_s0_lives0_dlg0[] = { /* 0x818e464 */ WAIT(30), PORTRAIT(PLACEMENT_LEFT_, 0x0000, 0x00000000), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}{NAME_0} read the SOS Mail\n{CENTER_ALIGN}apparently sent by Medicham.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(20), { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("“My name is Medicham.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("We had no trouble entering this dungeon...{WAIT_PRESS}\nBut it's horrible here!\nIt is much too difficult!") }, @@ -1139,14 +1139,14 @@ static const struct ScriptCommand s_gs4_g7_s0_lives0_dlg0[] = { /* 0x818e464 */ { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("Somebody!{WAIT_PRESS}\nPlease help me!") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("The place is the {COLOR YELLOW_D}Wish Cave{RESET}.") }, { 0x35, 0x00, -0x0001, 0x00000000, 0x00000000, _("The reward is a secret〜♪{WAIT_PRESS}\nBut it's really very nice--you can be\nsure of that〜♪”") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The place in which Medicham\n{CENTER_ALIGN}is thought to have gone missing...") }, BGM_STOP, FANFARE_PLAY(205), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The {COLOR YELLOW_D}Wish Cave{RESET} is now\n{CENTER_ALIGN}open for exploration!") }, { 0xe1, 0x00, 0x00cd, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, HALT, }; @@ -1247,29 +1247,29 @@ static const struct ScriptCommand s_gs4_g9_s0_lives0_dlg0[] = { /* 0x818eafc */ { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000042), MSG_NPC(2, _(" Hunh? You did?{WAIT_PRESS}\n...Wh-where?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(45), PORTRAIT_REP(0x0002, 0x00000044), MSG_NPC(2, _(" ..................{WAIT_PRESS}\nOh, you're just joking.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(3), /* = 0x03 */ UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 1), PORTRAIT_REP(0x0002, 0x00000046), MSG_NPC(2, _(" ...Oh, OK.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x93, 0x04, 0x000a, 0x0000005c, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT, 0x0003, 0x00000000), MSG_NPC(3, _(" Something seems to be\nwrong with Gengar lately.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" He won't do anything wicked\nwith us anymore...")), MSG_NPC(2, _(" I wonder what's wrong with\nhim?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yeah... He looks like he has\na lot on his mind...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1277,24 +1277,24 @@ static const struct ScriptCommand s_gs4_g9_s0_lives0_dlg0[] = { /* 0x818eafc */ PORTRAIT_REP(0x0002, 0x00000000), MSG_NPC(2, _(" You think so?{WAIT_PRESS}\nHis expression...\nIt looks the same as usual, no?")), MSG_NPC(2, _(" All I have seen is him\nlaughing in his usual mean way?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000005c, 0x00000000, NULL }, MSG_NPC(3, _(" No, it's different.{WAIT_PRESS}\nI can tell.")), MSG_NPC(3, _(" The way he sets his mouth.\nIt's different just a little at the corners.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(2, _(" ...Hmm...{WAIT_PRESS}\nPerhaps that is so.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x0000005d, 0x00000000, NULL }, MSG_NPC(2, _(" Anyway, without Gengar\naround, {COLOR CYAN}Team Meanies{RESET} can't operate.")), MSG_NPC(2, _(" Such a vexing problem!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, UPDATE_VARINT(CALC_SET, EVENT_LOCAL, 0), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1539,7 +1539,7 @@ static const struct ScriptCommand s_gs4_g12_s0_lives0_dlg0[] = { /* 0x818fcdc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Over there... The\n{COLOR CYAN}Pelipper Post Office{RESET}.")), VARIANT_DEFAULT(_(" That building is the\n{COLOR CYAN}Pelipper Post Office{RESET}.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0004, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -1550,18 +1550,18 @@ static const struct ScriptCommand s_gs4_g12_s0_lives0_dlg0[] = { /* 0x818fcdc */ MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" This is where information\nis gathered from Pokémon needing rescue\nin all sorts of places.")), VARIANT_DEFAULT(_(" This is where information\nis gathered from Pokémon needing rescue\nin various locations.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000004, 0x00000000, NULL }, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" Take a look at this!\nSee this Bulletin Board?")), VARIANT_DEFAULT(_(" See?\nHave a look at this Bulletin Board.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0x8b, 0x14, 0x0004, 0x00000000, 0x00000000, NULL }, MSG_NPC(1, _(" It lists rescue jobs.\nCheck it out?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3c, 0x20, 0x0000, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0x91, 0x04, 0x000a, 0x00000003, 0x00000000, NULL }, @@ -1588,7 +1588,7 @@ static const struct ScriptCommand s_gs4_g12_s0_lives0_dlg0[] = { /* 0x818fcdc */ VARIANT_DEFAULT(_(" Since we're just starting up,\nwe should handle the jobs that are posted\nhere.")), VARIANT_DEFAULT(_(" Our team name will get\nbetter known by doing that.")), VARIANT_DEFAULT(_(" I think that will bring\njob offers to our Mailbox.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, MSG_VAR(2, PARTNER_TALK_KIND, 1), VARIANT(/* == */ 1, _(" And if you want to take on\na rescue job...")), VARIANT(/* == */ 1, _(" Choose the job on the {COLOR CYAN}Job\nList{RESET}...{WAIT_PRESS} Then, select {COLOR YELLOW}Take Job{RESET}.{WAIT_PRESS}\nGet in the habit of doing that regularly!")), @@ -1596,7 +1596,7 @@ static const struct ScriptCommand s_gs4_g12_s0_lives0_dlg0[] = { /* 0x818fcdc */ VARIANT(/* == */ 3, _(" Choose the job on the {COLOR CYAN}Job\nList{RESET}...{WAIT_PRESS} Then, select {COLOR YELLOW}Take Job{RESET}.{WAIT_PRESS}\nDon't forget to do that before you leave!")), VARIANT_DEFAULT(_(" And if you want to go on\na rescue mission...")), VARIANT_DEFAULT(_(" Choose the job on the {COLOR CYAN}Job\nList{RESET}...{WAIT_PRESS} Then, select {COLOR YELLOW}Take Job{RESET}.{WAIT_PRESS}\nTry to always do that before you leave!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x9b, 0x00, 0x0100, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, @@ -1747,24 +1747,24 @@ static const struct ScriptCommand s_gs4_g16_s1_lives0_dlg0[] = { /* 0x8190fcc */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" What do you think, our son?\nIsn't the sea vast?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nPapa, have you ever gone out to sea?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nOf course.")), MSG_NPC(2, _(" What do you take us for?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh! You have!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -1860,24 +1860,24 @@ static const struct ScriptCommand s_gs4_g17_s1_lives0_dlg0[] = { /* 0x819154c */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" What do you think, our son?\nIsn't the sea vast?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nPapa, have you ever gone out to sea?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nOf course.")), MSG_NPC(2, _(" What do you take us for?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh! You have!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2052,22 +2052,22 @@ static const struct ScriptCommand s_gs4_g19_s1_lives0_dlg0[] = { /* 0x81922f8 */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" What do you think, Son?\nIsn't the sea wonderful?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.")), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nPapa, can you swim?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nOf course.")), MSG_NPC(2, _(" What do you take us for?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Oh! So you can swim!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2192,20 +2192,20 @@ static const struct ScriptCommand s_gs4_g20_s1_lives1_dlg0[] = { /* 0x81929a0 */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" Well, Son, doesn't it feel\ngood to look out over the sea?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nPapa, how do you swim in the sea?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ..................{WAIT_PRESS}\nWell, Son...{WAIT_PRESS}\nThe three of us cooperate, and...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), TEXTBOX_AUTO_PRESS(0, 0), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, @@ -2215,7 +2215,7 @@ static const struct ScriptCommand s_gs4_g20_s1_lives1_dlg0[] = { /* 0x81929a0 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), @@ -2223,7 +2223,7 @@ static const struct ScriptCommand s_gs4_g20_s1_lives1_dlg0[] = { /* 0x81929a0 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), @@ -2231,7 +2231,7 @@ static const struct ScriptCommand s_gs4_g20_s1_lives1_dlg0[] = { /* 0x81929a0 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, PORTRAIT(PLACEMENT_RIGHT, 0x0002, 0x00000000), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2241,17 +2241,17 @@ static const struct ScriptCommand s_gs4_g20_s1_lives1_dlg0[] = { /* 0x81929a0 */ TEXTBOX_AUTO_PRESS(30, 30), PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Hah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, TEXTBOX_AUTO_PRESS(-1, -1), PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" ...And that's sort of how\nwe swim!{WAIT_PRESS}\nGasp, gasp...")), MSG_NPC(2, _(" What do you...{WAIT_PRESS}\nTake us for?!{WAIT_PRESS}\nGasp, gasp...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" OK!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2449,23 +2449,23 @@ static const struct ScriptCommand s_gs4_g21_s1_lives0_dlg0[] = { /* 0x8193870 */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" Well, our son!\nTell me, do the earthquakes frighten you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.{WAIT_PRESS}\nThey are very scary.")), MSG_NPC(3, _(" Especially when I'm\nburrowing. It makes me twitchy because\nI get so scared.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nPapa, aren't you afraid of earthquakes?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ........................{WAIT_PRESS}\nOf course they don't scare us.")), MSG_NPC(2, _(" What do you...{WAIT_PRESS}\nTake us for?!")), MSG_NPC(2, _(" If we were in charge...{WAIT_PRESS}\nThis is what we'd do to any earthquake!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, TEXTBOX_AUTO_PRESS(0, 0), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2474,7 +2474,7 @@ static const struct ScriptCommand s_gs4_g21_s1_lives0_dlg0[] = { /* 0x8193870 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_RIGHT_FLIP, 0x0002, 0x00000000), @@ -2483,7 +2483,7 @@ static const struct ScriptCommand s_gs4_g21_s1_lives0_dlg0[] = { /* 0x8193870 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, PORTRAIT(PLACEMENT_LEFT_FLIP, 0x0002, 0x00000000), @@ -2491,7 +2491,7 @@ static const struct ScriptCommand s_gs4_g21_s1_lives0_dlg0[] = { /* 0x8193870 */ { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0x93, 0x04, 0x000a, 0x00000042, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -2500,16 +2500,16 @@ static const struct ScriptCommand s_gs4_g21_s1_lives0_dlg0[] = { /* 0x8193870 */ TEXTBOX_AUTO_PRESS(30, 30), PORTRAIT(PLACEMENT_RIGHT_FLIP, 0x0002, 0x00000000), MSG_NPC(2, _(" Hah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, TEXTBOX_AUTO_PRESS(-1, -1), PORTRAIT(PLACEMENT_LEFT_, 0x0002, 0x00000000), MSG_NPC(2, _(" Gasp, gasp...")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" OK!{WAIT_PRESS}\nPapa, you're so special!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2705,26 +2705,26 @@ static const struct ScriptCommand s_gs4_g22_s1_lives0_dlg0[] = { /* 0x81947b4 */ { 0x2d, 0x09, 0x0003, 0x00000044, 0x00000000, NULL }, WAIT(1), MSG_NPC(2, _(" Well, my son?\nDoes Groudon frighten you?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), MSG_NPC(3, _(" Yes, Papa.{WAIT_PRESS}\nIt frightens me so much I don't know\nwhat to think.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(3, _(" Papa?{WAIT_PRESS}\nAre you going to the {COLOR YELLOW_D}Magma Cavern{RESET} too,\nPapa?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(10), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, MSG_NPC(2, _(" ........................{WAIT_PRESS}\nOf course.")), MSG_NPC(2, _(" What do you take us for?!")), MSG_NPC(2, _(" If we were in charge...{WAIT_PRESS}\nThis is what we'd do to the {COLOR YELLOW_D}Magma\nCavern{RESET}!{WAIT_PRESS} Hah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), TEXTBOX_AUTO_PRESS(10, 10), MSG_NPC(2, _(" Hah!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, FANFARE_PLAY2(486), { 0xe4, 0x00, 0x0007, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, @@ -2732,7 +2732,7 @@ static const struct ScriptCommand s_gs4_g22_s1_lives0_dlg0[] = { /* 0x81947b4 */ MSG_NPC(3, _(" ............")), MSG_NPC(3, _(" ........................")), MSG_NPC(3, _(" ....................................{WAIT_PRESS}Huh?{WAIT_PRESS}\nPapa?{WAIT_PRESS} Where did you go, Papa?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(30), { 0xe4, 0x00, 0x0008, 0x00000000, 0x00000000, NULL }, { 0xe3, 0x00, 0x0005, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_data_t01p04_station.h b/src/data/ground/ground_data_t01p04_station.h index 674c4a7ae..9a73ea2f8 100644 --- a/src/data/ground/ground_data_t01p04_station.h +++ b/src/data/ground/ground_data_t01p04_station.h @@ -198,7 +198,7 @@ static const struct ScriptCommand s_gs5_g3_s0_lives0_dlg0[] = { /* 0x8198234 */ COND_EQUAL(0, /* to label */ 0), MSG_NPC(2, _(" Oh! Welcome back!{WAIT_PRESS}\nThe rescue...{WAIT_PRESS}went badly, I see...")), MSG_NPC(2, _(" But that wasn't the final\nchance! Don't give up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -207,7 +207,7 @@ static const struct ScriptCommand s_gs5_g3_s0_lives0_dlg0[] = { /* 0x8198234 */ MSG_NPC(2, _(" Oh! Welcome back!{WAIT_PRESS}\nThe rescue...{WAIT_PRESS}went badly, I see...")), MSG_NPC(2, _(" I'm terribly sorry, but you\nmay not go on that rescue again...")), MSG_NPC(2, _(" Please inform your friend\nthat, regrettably, the friend rescue\nmission ended in failure.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -251,7 +251,7 @@ static const struct ScriptCommand s_gs5_g4_s0_lives0_dlg0[] = { /* 0x81985f8 */ COND_EQUAL(0, /* to label */ 0), MSG_NPC(2, _(" Oh! Welcome back!{WAIT_PRESS}\nThe rescue...{WAIT_PRESS}went badly, I see...")), MSG_NPC(2, _(" But that wasn't the final\nchance! Don't give up!")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, @@ -260,7 +260,7 @@ static const struct ScriptCommand s_gs5_g4_s0_lives0_dlg0[] = { /* 0x81985f8 */ MSG_NPC(2, _(" Oh! Welcome back!{WAIT_PRESS}\nThe rescue...{WAIT_PRESS}went badly, I see...")), MSG_NPC(2, _(" I'm terribly sorry, but you\nmay not go on that rescue again...")), MSG_NPC(2, _(" Please inform your friend\nthat, regrettably, the friend rescue\nmission ended in failure.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0003, 0x00000000, 0x00000000, NULL }, { 0x52, 0x00, 0x0000, 0x00001000, 0x00000000, NULL }, { 0xe4, 0x00, 0x0006, 0x00000000, 0x00000000, NULL }, diff --git a/src/data/ground/ground_event_data.h b/src/data/ground/ground_event_data.h index 293357467..2a39edf77 100644 --- a/src/data/ground/ground_event_data.h +++ b/src/data/ground/ground_event_data.h @@ -12,7 +12,7 @@ static const struct ScriptCommand s_script_END_TALK[] = { /* 0x811ee64 */ DEBUGINFO, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0xe4, 0x00, 0x0002, 0x00000000, 0x00000000, NULL }, RET, }; @@ -107,12 +107,12 @@ static const struct ScriptCommand s_script_HABITAT_TALK[] = { /* 0x811f214 */ COND_EQUAL(0, /* to label */ 0), COND_EQUAL(2, /* to label */ 1), { 0xe3, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, RET, LABEL(0), /* = 0x00 */ MSG_NPC(1, _("Pleased to meet you.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, RET, LABEL(1), /* = 0x01 */ @@ -130,7 +130,7 @@ static const struct ScriptCommand s_script_HABITAT_TALK_S01E02A[] = { /* 0x811f3 MSG_NPC(1, _(" I will dedicate myself to\ncreating a fantastic new design.\nPlease check the rescue team flag later!")), MSG_NPC(1, _(" If my design fails to\nimpress you, please let me know.")), MSG_NPC(1, _(" If so, I will change the\ndesign to one perhaps more to your liking.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, RET, LABEL(0), /* = 0x00 */ @@ -140,7 +140,7 @@ static const struct ScriptCommand s_script_HABITAT_TALK_S01E02A[] = { /* 0x811f3 CHOICE(/* label */ 2, _("Yes, please.")), LABEL(1), /* = 0x01 */ MSG_NPC(1, _(" I see.{WAIT_PRESS} If you would like the\nflag's design changed, please tell me.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, RET, LABEL(2), /* = 0x02 */ @@ -149,7 +149,7 @@ static const struct ScriptCommand s_script_HABITAT_TALK_S01E02A[] = { /* 0x811f3 MSG_NPC(1, _(" If my design fails to\nimpress you, please let me know.")), MSG_NPC(1, _(" If so, I will change the\ndesign to one perhaps more to your liking.")), UPDATE_VARINT(CALC_SET, FLAG_KIND_CHANGE_REQUEST, 1), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3b, 0x10, 0x0000, 0x00000000, 0x00000000, NULL }, RET, }; @@ -558,7 +558,7 @@ static const struct ScriptCommand s_script_DISMISSAL_SALLY_MEMBER_FUNC[] = { /* COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team member(s)\n{CENTER_ALIGN}dispersed to the Friend Area(s).") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you want to add members to\n{CENTER_ALIGN}the rescue team, go visit\n{CENTER_ALIGN}them in their Friend Areas.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ RET_DIRECT, }; @@ -570,7 +570,7 @@ static const struct ScriptCommand s_script_DISMISSAL_SALLY_MEMBER2_FUNC[] = { /* COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team member(s)\n{CENTER_ALIGN}dispersed to the Friend Area(s).") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you want to add members to\n{CENTER_ALIGN}the rescue team, go visit\n{CENTER_ALIGN}them in their Friend Areas.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ RET_DIRECT, }; @@ -582,7 +582,7 @@ static const struct ScriptCommand s_script_DISMISSAL_SALLY_MEMBER3_FUNC[] = { /* COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team member(s)\n{CENTER_ALIGN}dispersed to the Friend Area(s).") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you want to add members to\n{CENTER_ALIGN}the rescue team, go visit\n{CENTER_ALIGN}them in their Friend Areas.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ RET_DIRECT, }; @@ -594,7 +594,7 @@ static const struct ScriptCommand s_script_DISMISSAL_SALLY_MEMBER4_FUNC[] = { /* COND_EQUAL(0, /* to label */ 0), { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}The rescue team member(s)\n{CENTER_ALIGN}dispersed to the Friend Area(s).") }, { 0x32, 0x00, -0x0001, 0x00000000, 0x00000000, _("{CENTER_ALIGN}If you want to add members to\n{CENTER_ALIGN}the rescue team, go visit\n{CENTER_ALIGN}them in their Friend Areas.") }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, LABEL(0), /* = 0x00 */ RET_DIRECT, }; @@ -609,7 +609,7 @@ static const struct ScriptCommand s_script_NEXT_SAVE_FUNC[] = { /* 0x8120bdc */ LABEL(0), /* = 0x00 */ { 0x3c, 0x0e, 0x0000, 0x00000000, 0x00000000, NULL }, LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), RET_DIRECT, }; @@ -624,7 +624,7 @@ static const struct ScriptCommand s_script_NEXT_SAVE2_FUNC[] = { /* 0x8120cdc */ LABEL(0), /* = 0x00 */ { 0x3c, 0x0f, 0x0000, 0x00000000, 0x00000000, NULL }, LABEL(1), /* = 0x01 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, WAIT(60), RET_DIRECT, }; @@ -636,7 +636,7 @@ static const struct ScriptCommand s_script_SAVE_POINT[] = { /* 0x8120db0 */ { 0x3a, 0x00, 0x0000, 0x00000000, -0x00000001, _("Would you like to save your adventure?") }, JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SAVE_START_FUNC), { 0x3c, 0x0e, 0x0000, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SAVE_END_FUNC), @@ -661,14 +661,14 @@ static const struct ScriptCommand s_script_SAVE_AND_WAREHOUSE_POINT[] = { /* 0x8 CHOICE(/* label */ 1, _("Save.")), JUMP_SCRIPT(END_TALK), LABEL(0), /* = 0x00 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, { 0x3c, 0x11, 0x0000, 0x00000000, 0x00000000, NULL }, JUMP_SCRIPT(END_TALK), LABEL(1), /* = 0x01 */ { 0x3a, 0x00, 0x0002, 0x00000000, -0x00000001, _("Would you like to save your adventure?") }, JUMP_SCRIPT(END_TALK), LABEL(2), /* = 0x02 */ - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, CALL_SCRIPT(SAVE_START_FUNC), { 0x3c, 0x0e, 0x0000, 0x00000000, 0x00000000, NULL }, CALL_SCRIPT(SAVE_END_FUNC), @@ -892,7 +892,7 @@ static const struct ScriptCommand s_script_GET_ITEM_FUNC[] = { /* 0x8121a54 */ DEBUGINFO, FANFARE_PLAY(203), { 0xe1, 0x00, 0x00cb, 0x00000000, 0x00000000, NULL }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, RET_DIRECT, }; @@ -900,7 +900,7 @@ static const struct ScriptCommand s_script_GET_ITEM_WAIT_FUNC[] = { /* 0x8121aa4 DEBUGINFO, FANFARE_PLAY(203), { 0xe1, 0x00, 0x00cb, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, }; @@ -908,7 +908,7 @@ static const struct ScriptCommand s_script_GET_ITEM2_FUNC[] = { /* 0x8121af4 */ DEBUGINFO, FANFARE_PLAY(203), { 0xe1, 0x00, 0x00cb, 0x00000000, 0x00000000, NULL }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, RET_DIRECT, }; @@ -916,7 +916,7 @@ static const struct ScriptCommand s_script_GET_ITEM2_WAIT_FUNC[] = { /* 0x8121b4 DEBUGINFO, FANFARE_PLAY(203), { 0xe1, 0x00, 0x00cb, 0x00000000, 0x00000000, NULL }, - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, }; @@ -924,7 +924,7 @@ static const struct ScriptCommand s_script_JOIN_FUNC[] = { /* 0x8121b94 */ DEBUGINFO, FANFARE_PLAY(204), { 0xe1, 0x00, 0x00cc, 0x00000000, 0x00000000, NULL }, - { 0x31, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR2, RET_DIRECT, }; @@ -1768,27 +1768,27 @@ static const struct ScriptCommand s_script_EVENT_DIVIDE_WARP_LOCK_FUNC[] = { /* VARIANT_DEFAULT(_(" Huh?\nYou want to go home already?")), VARIANT_DEFAULT(_(" We're already here.\nLet me show you around a bit more.")), VARIANT_DEFAULT(_(" Let's go to the {COLOR CYAN}Pelipper\nPost Office{RESET} at least.")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, LABEL(1), /* = 0x01 */ { 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL }, MSG_NPC(1, _(" Huh?\nYou want to go home already?")), MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, LABEL(2), /* = 0x02 */ { 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL }, MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, LABEL(3), /* = 0x03 */ { 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL }, MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, { 0x2d, 0x09, 0x0001, 0x00000022, 0x00000000, NULL }, MSG_NPC(1, _(" Huh?\nAre you ready to leave?")), - { 0x30, 0x00, 0x0000, 0x00000000, 0x00000000, NULL }, + TEXTBOX_CLEAR, RET_DIRECT, }; diff --git a/src/ground_main.c b/src/ground_main.c index c2f1926ab..8ef8eef4e 100644 --- a/src/ground_main.c +++ b/src/ground_main.c @@ -90,7 +90,6 @@ extern void AllocGroundEvents(void); extern void AllocGroundLives(void); extern void AllocGroundObjects(void); extern void AllocGroundEffects(void); -extern void sub_809A62C(void); extern void nullsub_124(void); extern void GroundLives_Action(void); extern void GroundObject_Action(void); @@ -193,7 +192,7 @@ u32 xxx_script_related_8098468(s32 param_1) AllocGroundLives(); AllocGroundObjects(); AllocGroundEffects(); - sub_809A62C(); + TextboxResetAll(); gUnknown_203B49C = 0; gUnknown_203B49D = 0; gUnknown_20398A8 = 1; @@ -298,7 +297,7 @@ u32 xxx_script_related_8098468(s32 param_1) sub_809D4B0(); GroundSprite_Reset(-1); sub_809C63C(); - sub_809A62C(); + TextboxResetAll(); GroundMap_Reset(); sub_809D0BC(); DeleteGroundEvents(); diff --git a/src/textbox.c b/src/textbox.c index fb3514ccd..806af5d84 100644 --- a/src/textbox.c +++ b/src/textbox.c @@ -105,7 +105,6 @@ struct unkStruct_8096AF8 /* 0x4 */ s16 targetSpecies; }; -void sub_809A62C(void); extern void sub_80A8EC0(u8 *, u32); Pokemon *sub_808D3BC(void); Pokemon *sub_808D3F8(void); @@ -328,11 +327,11 @@ void TextboxInit(void) void TextboxFree(void) { - sub_809A62C(); + TextboxResetAll(); FREE_AND_SET_NULL(sTextbox); } -void sub_809A62C(void) +void TextboxResetAll(void) { s32 index;