pokeemerald/data/maps/AbandonedShip_Rooms2_1F/scripts.inc
Melody c557ac61ae adds constants, cleans up callstd and msgbox code
* adds some constants for standard script names and messagebox types
* replaces some callstd calls with msgbox calls where equivalent
* replaces msgbox and callstd calls using raw digits with versions that use the constants
2018-12-02 03:37:46 -05:00

159 lines
5.8 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

AbandonedShip_Rooms2_1F_MapScripts:: @ 82380A6
.byte 0
AbandonedShip_Rooms2_1F_EventScript_2380A7:: @ 82380A7
trainerbattle 6, TRAINER_KIRA_AND_DAN_1, 0, AbandonedShip_Rooms2_1F_Text_23819D, AbandonedShip_Rooms2_1F_Text_2381DA, AbandonedShip_Rooms2_1F_Text_238257, AbandonedShip_Rooms2_1F_EventScript_2380D7
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_eq AbandonedShip_Rooms2_1F_EventScript_2380F0
msgbox AbandonedShip_Rooms2_1F_Text_23820F, MSGBOX_DEFAULT
release
end
AbandonedShip_Rooms2_1F_EventScript_2380D7:: @ 82380D7
msgbox AbandonedShip_Rooms2_1F_Text_2383BB, MSGBOX_DEFAULT
setvar VAR_0x8004, 642
special SetMatchCallRegisteredFlag
setorcopyvar VAR_0x8000, 642
callstd STD_REGISTER_MATCH_CALL
release
end
AbandonedShip_Rooms2_1F_EventScript_2380F0:: @ 82380F0
trainerbattle 7, TRAINER_KIRA_AND_DAN_1, 0, AbandonedShip_Rooms2_1F_Text_2383FF, AbandonedShip_Rooms2_1F_Text_238473, AbandonedShip_Rooms2_1F_Text_238509
msgbox AbandonedShip_Rooms2_1F_Text_238491, MSGBOX_AUTOCLOSE
end
AbandonedShip_Rooms2_1F_EventScript_23810B:: @ 823810B
trainerbattle 6, TRAINER_KIRA_AND_DAN_1, 0, AbandonedShip_Rooms2_1F_Text_2382A4, AbandonedShip_Rooms2_1F_Text_2382F4, AbandonedShip_Rooms2_1F_Text_23836F, AbandonedShip_Rooms2_1F_EventScript_23813B
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
goto_eq AbandonedShip_Rooms2_1F_EventScript_238154
msgbox AbandonedShip_Rooms2_1F_Text_23830A, MSGBOX_DEFAULT
release
end
AbandonedShip_Rooms2_1F_EventScript_23813B:: @ 823813B
msgbox AbandonedShip_Rooms2_1F_Text_2383BB, MSGBOX_DEFAULT
setvar VAR_0x8004, 642
special SetMatchCallRegisteredFlag
setorcopyvar VAR_0x8000, 642
callstd STD_REGISTER_MATCH_CALL
release
end
AbandonedShip_Rooms2_1F_EventScript_238154:: @ 8238154
trainerbattle 7, TRAINER_KIRA_AND_DAN_1, 0, AbandonedShip_Rooms2_1F_Text_238556, AbandonedShip_Rooms2_1F_Text_2385F2, AbandonedShip_Rooms2_1F_Text_238668
msgbox AbandonedShip_Rooms2_1F_Text_23860B, MSGBOX_AUTOCLOSE
end
AbandonedShip_Rooms2_1F_EventScript_23816F:: @ 823816F
trainerbattle 0, TRAINER_JANI, 0, AbandonedShip_Rooms2_1F_Text_2386B4, AbandonedShip_Rooms2_1F_Text_2386E8
msgbox AbandonedShip_Rooms2_1F_Text_238708, MSGBOX_AUTOCLOSE
end
AbandonedShip_Rooms2_1F_EventScript_238186:: @ 8238186
trainerbattle 0, TRAINER_GARRISON, 0, AbandonedShip_Rooms2_1F_Text_23873F, AbandonedShip_Rooms2_1F_Text_238779
msgbox AbandonedShip_Rooms2_1F_Text_2387A9, MSGBOX_AUTOCLOSE
end
AbandonedShip_Rooms2_1F_Text_23819D: @ 823819D
.string "DAN: While searching for treasures,\n"
.string "we discovered a TRAINER!$"
AbandonedShip_Rooms2_1F_Text_2381DA: @ 82381DA
.string "DAN: We couldnt win even though\n"
.string "we worked together…$"
AbandonedShip_Rooms2_1F_Text_23820F: @ 823820F
.string "DAN: We cant find any treasures…\n"
.string "I wonder if someone got them already?$"
AbandonedShip_Rooms2_1F_Text_238257: @ 8238257
.string "DAN: You dont even have two POKéMON.\n"
.string "You cant expect to beat us like that.$"
AbandonedShip_Rooms2_1F_Text_2382A4: @ 82382A4
.string "KIRA: Oh?\n"
.string "We were searching for treasures.\l"
.string "But we discovered a TRAINER instead!$"
AbandonedShip_Rooms2_1F_Text_2382F4: @ 82382F4
.string "KIRA: Ooh, so strong!$"
AbandonedShip_Rooms2_1F_Text_23830A: @ 823830A
.string "KIRA: Where could the treasures be?\p"
.string "Ive already decided what Im buying\n"
.string "when we find the treasures!$"
AbandonedShip_Rooms2_1F_Text_23836F: @ 823836F
.string "KIRA: Oh, you dont have two POKéMON?\n"
.string "Well have to battle some other time!$"
AbandonedShip_Rooms2_1F_Text_2383BB: @ 82383BB
.string "KIRA: Oh, you make me so angry!\n"
.string "Im going to register you for that!$"
AbandonedShip_Rooms2_1F_Text_2383FF: @ 82383FF
.string "DAN: Weve been searching for\n"
.string "treasures all this time.\p"
.string "Our POKéMON have grown stronger, too.\n"
.string "Let us show you, okay?$"
AbandonedShip_Rooms2_1F_Text_238473: @ 8238473
.string "DAN: Youre strong, as usual!$"
AbandonedShip_Rooms2_1F_Text_238491: @ 8238491
.string "DAN: We cant find any treasures,\n"
.string "we lose at POKéMON…\p"
.string "I want to go home… But if I say that,\n"
.string "she gets all angry with me…$"
AbandonedShip_Rooms2_1F_Text_238509: @ 8238509
.string "DAN: You dont even have two POKéMON.\n"
.string "You cant expect to beat us like that.$"
AbandonedShip_Rooms2_1F_Text_238556: @ 8238556
.string "KIRA: Oh? We meet again!\p"
.string "Just like us, you still havent given up\n"
.string "searching for treasures, have you?\p"
.string "Want to make it so the loser has\n"
.string "to give up searching?$"
AbandonedShip_Rooms2_1F_Text_2385F2: @ 82385F2
.string "KIRA: Oh, we lost again…$"
AbandonedShip_Rooms2_1F_Text_23860B: @ 823860B
.string "KIRA: Were not leaving until we raise\n"
.string "our POKéMON some more and we find\l"
.string "the treasures here!$"
AbandonedShip_Rooms2_1F_Text_238668: @ 8238668
.string "KIRA: Oh, you dont have two POKéMON?\n"
.string "Well have to battle some other time!$"
AbandonedShip_Rooms2_1F_Text_2386B4: @ 82386B4
.string "Im not good at swimming,\n"
.string "but I am good at battles!$"
AbandonedShip_Rooms2_1F_Text_2386E8: @ 82386E8
.string "Oops.\n"
.string "That didnt go very well.$"
AbandonedShip_Rooms2_1F_Text_238708: @ 8238708
.string "Walking around barefoot in this ship\n"
.string "is kind of gross.$"
AbandonedShip_Rooms2_1F_Text_23873F: @ 823873F
.string "Strength and compassion…\n"
.string "Those are a TRAINERs treasures!$"
AbandonedShip_Rooms2_1F_Text_238779: @ 8238779
.string "Ah, there is something about you\n"
.string "that sparkles.$"
AbandonedShip_Rooms2_1F_Text_2387A9: @ 82387A9
.string "In a cabin somewhere on board,\n"
.string "I saw something sparkle.$"