pokeemerald/data/mystery_event_msg.s

344 lines
10 KiB
ArmAsm
Raw Normal View History

2018-01-20 22:26:30 +00:00
#include "constants/flags.h"
#include "constants/items.h"
#include "constants/map_scripts.h"
2018-01-20 22:26:30 +00:00
#include "constants/moves.h"
#include "constants/songs.h"
#include "constants/species.h"
#include "constants/vars.h"
2017-01-16 06:38:56 +00:00
.include "asm/macros.inc"
2018-01-20 22:26:30 +00:00
.include "asm/macros/event.inc"
2017-01-16 06:38:56 +00:00
.include "constants/constants.inc"
.section .rodata
2019-01-02 21:12:43 +00:00
2018-01-20 22:26:30 +00:00
.align 2
2018-01-21 18:30:01 +00:00
MysteryEventScript_StampCard:: @ 8674CB0
setvaddress MysteryEventScript_StampCard
setorcopyvar VAR_RESULT, 1
specialvar VAR_0x8008, sub_813986C
setorcopyvar VAR_RESULT, 0
specialvar VAR_0x8009, sub_813986C
subvar VAR_0x8008, 32777
buffernumberstring 0, VAR_0x8008
2018-01-20 22:26:30 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftStampCard
2018-01-20 22:26:30 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftStampCard:
.string "Thank you for using the STAMP CARD\nSystem.\pYou have {STR_VAR_1} more to collect to\nfill your STAMP CARD.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_SurfPichu:: @ 8674D3D
setvaddress MysteryEventScript_SurfPichu
checkflag FLAG_MYSTERY_EVENT_DONE
vgoto_if 0, SurfPichu_GiveIfPossible
returnram
2018-01-21 03:41:02 +00:00
2018-01-21 18:30:01 +00:00
SurfPichu_GiveIfPossible: @ 8674D4C
specialvar VAR_EVENT_PICHU_SLOT, CalculatePlayerPartyCount
compare_var_to_value VAR_EVENT_PICHU_SLOT, 6
vgoto_if 1, SurfPichu_FullParty
setflag FLAG_MYSTERY_EVENT_DONE
vcall SurfPichu_GiveEgg
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftEgg
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
2018-01-21 18:30:01 +00:00
playfanfare MUS_FANFA4
2018-01-21 03:41:02 +00:00
waitfanfare
release
end
2018-01-21 18:30:01 +00:00
SurfPichu_FullParty: @ 8674D73
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_FullParty
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
SurfPichu_GiveEgg: @ 8674D7E
2018-01-21 03:41:02 +00:00
giveegg SPECIES_PICHU
2018-01-21 18:30:01 +00:00
setmonobedient VAR_EVENT_PICHU_SLOT
setmonmetlocation VAR_EVENT_PICHU_SLOT, 255
compare_var_to_value VAR_EVENT_PICHU_SLOT, 1
vgoto_if 1, SurfPichu_Slot1
compare_var_to_value VAR_EVENT_PICHU_SLOT, 2
vgoto_if 1, SurfPichu_Slot2
compare_var_to_value VAR_EVENT_PICHU_SLOT, 3
vgoto_if 1, SurfPichu_Slot3
compare_var_to_value VAR_EVENT_PICHU_SLOT, 4
vgoto_if 1, SurfPichu_Slot4
compare_var_to_value VAR_EVENT_PICHU_SLOT, 5
vgoto_if 1, SurfPichu_Slot5
2018-01-21 03:41:02 +00:00
return
2018-01-21 18:30:01 +00:00
SurfPichu_Slot1: @ 8674DC0
setmonmove 1, 2, MOVE_SURF
2018-01-21 03:41:02 +00:00
return
2018-01-21 18:30:01 +00:00
SurfPichu_Slot2:: @ 8674DC6
setmonmove 2, 2, MOVE_SURF
2018-01-21 03:41:02 +00:00
return
2018-01-21 18:30:01 +00:00
SurfPichu_Slot3: @ 8674DCC
setmonmove 3, 2, MOVE_SURF
2018-01-21 03:41:02 +00:00
return
2018-01-21 18:30:01 +00:00
SurfPichu_Slot4: @ 8674DD2
setmonmove 4, 2, MOVE_SURF
2018-01-21 03:41:02 +00:00
return
2018-01-21 18:30:01 +00:00
SurfPichu_Slot5: @ 8674DD8
setmonmove 5, 2, MOVE_SURF
2018-01-21 03:41:02 +00:00
return
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftEgg:
.string "Thank you for using the MYSTERY\nGIFT System.\pFrom the POKéMON CENTER we\nhave a gift--a POKéMON EGG!\pPlease raise it with love and\nkindness.$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_FullParty:
.string "Oh, your party appears to be full.\pPlease come see me after storing\na POKéMON on a PC.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_VisitingTrainer:: @ 8674EC1
setvaddress MysteryEventScript_VisitingTrainer
special ValidateEReaderTrainer
compare_var_to_value VAR_RESULT, 0
vgoto_if 1, MysteryEventScript_VisitingTrainerArrived
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftVisitingTrainer
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
MysteryEventScript_VisitingTrainerArrived: @ 8674EDF
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftVisitingTrainer_2
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftVisitingTrainer:
.string "Thank you for using the MYSTERY\nGIFT System.\pBy holding this WONDER CARD, you\nmay take part in a survey at a\lPOKéMON MART.\pUse these surveys to invite\nTRAINERS to SOOTOPOLIS CITY.\pLet me give you a secret\npassword for a survey:\pGIVE ME\nAWESOME TRAINER\pWrite that in on a survey and send\nit to the WIRELESS\lCOMMUNICATION SYSTEM.$"
2018-01-21 18:30:01 +00:00
sText_MysteryGiftVisitingTrainer_2:
.string "Thank you for using the MYSTERY\nGIFT System.\pA TRAINER has arrived in\nSOOTOPOLIS CITY looking for you.\pWe hope you will enjoy\nbattling the visiting TRAINER.\pYou may invite other TRAINERS by\nentering other passwords.\pTry looking for other passwords\nthat may work.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_BattleCard:: @ 867513C
setvaddress MysteryEventScript_BattleCard
checkflag FLAG_MYSTERY_EVENT_DONE
vgoto_if 1, MysteryEventScript_BattleCardInfo
setorcopyvar VAR_RESULT, 2
specialvar VAR_0x8008, sub_813986C
compare_var_to_value VAR_0x8008, 3
vgoto_if 0, MysteryEventScript_BattleCardInfo
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftBattleCountCard_2
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
2018-01-21 18:30:01 +00:00
giveitem_std ITEM_POTION
2018-01-21 03:41:02 +00:00
release
2018-01-21 18:30:01 +00:00
setflag FLAG_MYSTERY_EVENT_DONE
2018-01-21 03:41:02 +00:00
end
2018-01-21 18:30:01 +00:00
MysteryEventScript_BattleCardInfo: @ 8675179
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftBattleCountCard
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftBattleCountCard:
.string "Thank you for using the MYSTERY\nGIFT System.\pYour BATTLE COUNT CARD keeps\ntrack of your battle record against\lTRAINERS with the same CARD.\pLook for and battle TRAINERS who\nhave the same CARD as you.\pYou may check the overall rankings\nby reading the NEWS.\pPlease do give it a try!$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftBattleCountCard_2:
.string "Thank you for using the MYSTERY\nGIFT System.\pCongratulations!\pYou have won a prize for winning\nthree battles!\pWe hope you will be inspired to\nbattle some more.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_AuroraTicket:: @ 867533C
setvaddress MysteryEventScript_AuroraTicket
2018-01-21 03:41:02 +00:00
lock
faceplayer
2019-01-03 01:54:55 +00:00
checkflag FLAG_RECEIVED_AURORA_TICKET
2018-01-21 18:30:01 +00:00
vgoto_if 1, AuroraTicket_Obtained
2019-01-02 21:12:43 +00:00
checkflag FLAG_BATTLED_DEOXYS
2018-01-21 18:30:01 +00:00
vgoto_if 1, AuroraTicket_Obtained
checkitem ITEM_AURORA_TICKET, 1
compare_var_to_value VAR_RESULT, 1
vgoto_if 1, AuroraTicket_Obtained
vmessage sText_AuroraTicket1
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
2018-01-21 18:30:01 +00:00
checkitemspace ITEM_AURORA_TICKET, 1
compare_var_to_value VAR_RESULT, 0
vgoto_if 1, AuroraTicket_NoBagSpace
giveitem_std ITEM_AURORA_TICKET
2019-01-02 21:12:43 +00:00
setflag FLAG_ENABLE_SHIP_BIRTH_ISLAND
2019-01-03 01:54:55 +00:00
setflag FLAG_RECEIVED_AURORA_TICKET
2018-01-21 18:30:01 +00:00
vmessage sText_AuroraTicket2
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
AuroraTicket_NoBagSpace: @ 8675397
vmessage sText_AuroraTicketNoPlace
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
AuroraTicket_Obtained: @ 86753A0
vmessage sText_AuroraTicketGot
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_AuroraTicket1:
.string "Thank you for using the MYSTERY\nGIFT System.\pYou must be {PLAYER}.\nThere is a ticket here for you.$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_AuroraTicket2:
.string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_AuroraTicketGot:
.string "Thank you for using the MYSTERY\nGIFT System.$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_AuroraTicketNoPlace:
2018-12-07 15:41:08 +00:00
.string "Oh, I'm sorry, {PLAYER}.\nYour BAG's KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_MysticTicket:: @ 867550B
setvaddress MysteryEventScript_MysticTicket
2018-01-21 03:41:02 +00:00
lock
faceplayer
2019-01-03 01:54:55 +00:00
checkflag FLAG_RECEIVED_MYSTIC_TICKET
2018-01-21 18:30:01 +00:00
vgoto_if 1, MysticTicket_Obtained
2019-01-02 21:12:43 +00:00
checkflag FLAG_CAUGHT_LUGIA
2018-01-21 18:30:01 +00:00
vgoto_if 1, MysticTicket_Obtained
2019-01-02 21:12:43 +00:00
checkflag FLAG_CAUGHT_HO_OH
2018-01-21 18:30:01 +00:00
vgoto_if 1, MysticTicket_Obtained
checkitem ITEM_MYSTIC_TICKET, 1
compare_var_to_value VAR_RESULT, 1
vgoto_if 1, MysticTicket_Obtained
vmessage sText_MysticTicket2
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
2018-01-21 18:30:01 +00:00
checkitemspace ITEM_MYSTIC_TICKET, 1
compare_var_to_value VAR_RESULT, 0
vgoto_if 1, MysticTicket_NoBagSpace
giveitem_std ITEM_MYSTIC_TICKET
2019-01-02 21:12:43 +00:00
setflag FLAG_ENABLE_SHIP_NAVEL_ROCK
2019-01-03 01:54:55 +00:00
setflag FLAG_RECEIVED_MYSTIC_TICKET
2018-01-21 18:30:01 +00:00
vmessage sText_MysticTicket1
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
MysticTicket_NoBagSpace: @ 867556F
vmessage sText_MysticTicketNoPlace
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
MysticTicket_Obtained: @ 8675578
vmessage sText_MysticTicketGot
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysticTicket2:
.string "Thank you for using the MYSTERY\nGIFT System.\pYou must be {PLAYER}.\nThere is a ticket here for you.$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_MysticTicket1:
.string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_MysticTicketGot:
.string "Thank you for using the MYSTERY\nGIFT System.$"
2019-01-02 21:12:43 +00:00
2018-01-21 18:30:01 +00:00
sText_MysticTicketNoPlace:
2018-12-07 15:41:08 +00:00
.string "Oh, I'm sorry, {PLAYER}.\nYour BAG's KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_AlteringCave:: @ 86756E3
setvaddress MysteryEventScript_AlteringCave
addvar VAR_ALTERING_CAVE_WILD_SET, 1
compare_var_to_value VAR_ALTERING_CAVE_WILD_SET, 10
vgoto_if 0, MysteryEventScript_AlteringCave_
setvar VAR_ALTERING_CAVE_WILD_SET, 0
MysteryEventScript_AlteringCave_: @ 86756FD
2018-01-21 03:41:02 +00:00
lock
faceplayer
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftAlteringCave
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftAlteringCave::
.string "Thank you for using the MYSTERY\nGIFT System.\pThere appears to be a rumor about\nrare POKéMON sightings.\pThe sightings reportedly came from\nthe ALTERING CAVE on ROUTE 103.\pPerhaps it would be worthwhile for\nyou to investigate this rumor.$"
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
MysteryEventScript_OldSeaMap:: @ 86757F4
setvaddress MysteryEventScript_OldSeaMap
2018-01-21 03:41:02 +00:00
lock
faceplayer
2019-01-03 01:54:55 +00:00
checkflag FLAG_RECEIVED_OLD_SEA_MAP
2018-01-21 18:30:01 +00:00
vgoto_if 1, OldSeaMap_Obtained
2019-01-02 21:12:43 +00:00
checkflag FLAG_CAUGHT_MEW
2018-01-21 18:30:01 +00:00
vgoto_if 1, OldSeaMap_Obtained
checkitem ITEM_OLD_SEA_MAP, 1
compare_var_to_value VAR_RESULT, 1
vgoto_if 1, OldSeaMap_Obtained
vmessage sText_MysteryGiftOldSeaMap
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
2018-01-21 18:30:01 +00:00
checkitemspace ITEM_OLD_SEA_MAP, 1
compare_var_to_value VAR_RESULT, 0
vgoto_if 1, OldSeaMap_NoBagSpace
giveitem_std ITEM_OLD_SEA_MAP
2019-01-02 21:12:43 +00:00
setflag FLAG_ENABLE_SHIP_FARAWAY_ISLAND
2019-01-03 01:54:55 +00:00
setflag FLAG_RECEIVED_OLD_SEA_MAP
2018-01-21 18:30:01 +00:00
vmessage sText_MysteryGiftOldSeaMap_1
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
OldSeaMap_NoBagSpace: @ 867584F
vmessage sText_MysteryGiftOldSeaMap_3
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2018-01-21 18:30:01 +00:00
OldSeaMap_Obtained: @ 8675858
vmessage sText_MysteryGiftOldSeaMap_2
2018-01-21 03:41:02 +00:00
waitmessage
waitbuttonpress
release
end
2017-11-07 22:04:52 +00:00
2018-01-21 18:30:01 +00:00
sText_MysteryGiftOldSeaMap:
.string "Thank you for using the MYSTERY\nGIFT System.\pLet me confirm--you are {PLAYER}?\pWe received this OLD SEA MAP\naddressed to you.$"
2018-01-21 18:30:01 +00:00
sText_MysteryGiftOldSeaMap_1:
.string "It appears to be for use at the\nLILYCOVE CITY port.\pWhy not give it a try and see what\nit is about?$"
2018-01-21 18:30:01 +00:00
sText_MysteryGiftOldSeaMap_2:
.string "Thank you for using the MYSTERY\nGIFT System.$"
2018-01-21 18:30:01 +00:00
sText_MysteryGiftOldSeaMap_3:
2018-12-07 15:41:08 +00:00
.string "Oh, I'm sorry, {PLAYER}.\nYour BAG's KEY ITEMS POCKET is full.\pPlease store something on your PC,\nthen come back for this.$"