pokeemerald/data/scripts/mevent_pichu.inc

79 lines
1.7 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
MysteryEventScript_SurfPichu::
2019-11-05 21:19:08 +01:00
setvaddress MysteryEventScript_SurfPichu
vgoto_if_unset FLAG_MYSTERY_EVENT_DONE, SurfPichu_GiveIfPossible
2019-11-05 21:19:08 +01:00
returnram
2021-07-20 21:18:31 +02:00
SurfPichu_GiveIfPossible:
2019-11-05 21:19:08 +01:00
specialvar VAR_EVENT_PICHU_SLOT, CalculatePlayerPartyCount
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, PARTY_SIZE
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_FullParty
setflag FLAG_MYSTERY_EVENT_DONE
vcall SurfPichu_GiveEgg
lock
faceplayer
vmessage sText_MysteryGiftEgg
waitmessage
waitbuttonpress
2020-08-21 00:02:00 +02:00
playfanfare MUS_OBTAIN_ITEM
2019-11-05 21:19:08 +01:00
waitfanfare
release
end
2021-07-20 21:18:31 +02:00
SurfPichu_FullParty:
2019-11-05 21:19:08 +01:00
lock
faceplayer
vmessage sText_FullParty
waitmessage
waitbuttonpress
release
end
2021-07-20 21:18:31 +02:00
SurfPichu_GiveEgg:
2019-11-05 21:19:08 +01:00
giveegg SPECIES_PICHU
setmoneventlegal VAR_EVENT_PICHU_SLOT
2019-11-05 21:19:08 +01:00
setmonmetlocation VAR_EVENT_PICHU_SLOT, METLOC_FATEFUL_ENCOUNTER
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, 1
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_Slot1
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, 2
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_Slot2
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, 3
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_Slot3
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, 4
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_Slot4
2019-12-19 01:22:39 +01:00
compare VAR_EVENT_PICHU_SLOT, 5
2019-11-05 21:19:08 +01:00
vgoto_if_eq SurfPichu_Slot5
return
2021-07-20 21:18:31 +02:00
SurfPichu_Slot1:
2019-11-05 21:19:08 +01:00
setmonmove 1, 2, MOVE_SURF
return
2021-07-20 21:18:31 +02:00
SurfPichu_Slot2::
2019-11-05 21:19:08 +01:00
setmonmove 2, 2, MOVE_SURF
return
2021-07-20 21:18:31 +02:00
SurfPichu_Slot3:
2019-11-05 21:19:08 +01:00
setmonmove 3, 2, MOVE_SURF
return
2021-07-20 21:18:31 +02:00
SurfPichu_Slot4:
2019-11-05 21:19:08 +01:00
setmonmove 4, 2, MOVE_SURF
return
2021-07-20 21:18:31 +02:00
SurfPichu_Slot5:
2019-11-05 21:19:08 +01:00
setmonmove 5, 2, MOVE_SURF
return
sText_MysteryGiftEgg:
.string "Thank you for using the MYSTERY\n"
.string "GIFT System.\p"
.string "From the POKéMON CENTER we\n"
.string "have a gift--a POKéMON EGG!\p"
.string "Please raise it with love and\n"
.string "kindness.$"
sText_FullParty:
.string "Oh, your party appears to be full.\p"
.string "Please come see me after storing\n"
.string "a POKéMON on a PC.$"