pokeemerald/data/maps/FallarborTown_CozmosHouse/scripts.inc

119 lines
4.2 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_MapScripts::
2019-10-18 01:22:03 +02:00
.byte 0
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_ProfCozmo::
2019-10-18 01:22:03 +02:00
lock
faceplayer
2019-11-02 07:19:44 +01:00
goto_if_set FLAG_RECEIVED_TM27, FallarborTown_CozmosHouse_EventScript_GaveMeteorite
2021-08-05 18:46:11 +02:00
checkitem ITEM_METEORITE
goto_if_eq VAR_RESULT, TRUE, FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_PlayerHasMeteorite::
2019-11-02 07:19:44 +01:00
call_if_unset FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_NoticeMeteorite
call_if_set FLAG_TEMP_2, FallarborTown_CozmosHouse_EventScript_AskForMeteorite
goto_if_eq VAR_RESULT, NO, FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_PleaseUseThisTM, MSGBOX_DEFAULT
giveitem ITEM_TM27
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-10-18 01:22:03 +02:00
setvar VAR_0x8004, ITEM_METEORITE
call Common_EventScript_PlayerHandedOverTheItem
setflag FLAG_RECEIVED_TM27
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_NoticeMeteorite::
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow, MSGBOX_DEFAULT
msgbox FallarborTown_CozmosHouse_Text_IsThatMeteoriteMayIHaveIt, MSGBOX_YESNO
2019-10-18 01:22:03 +02:00
return
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_AskForMeteorite::
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_MayIHaveMeteorite, MSGBOX_YESNO
2019-10-18 01:22:03 +02:00
return
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_DeclineGiveMeteorite::
2019-10-18 01:22:03 +02:00
setflag FLAG_TEMP_2
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_CrushedWithDisappointment, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_GaveMeteorite::
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_CozmosWife::
2019-10-18 01:22:03 +02:00
lock
faceplayer
2019-11-02 07:19:44 +01:00
goto_if_set FLAG_RECEIVED_TM27, FallarborTown_CozmosHouse_EventScript_CozmoIsHappy
goto_if_set FLAG_DEFEATED_EVIL_TEAM_MT_CHIMNEY, FallarborTown_CozmosHouse_EventScript_CozmoIsSad
msgbox FallarborTown_CozmosHouse_Text_CozmoWentToMeteorFalls, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_CozmoIsSad::
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_FeelSorryForCozmo, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_EventScript_CozmoIsHappy::
2019-11-02 07:19:44 +01:00
msgbox FallarborTown_CozmosHouse_Text_CozmoIsSoHappy, MSGBOX_DEFAULT
2019-10-18 01:22:03 +02:00
release
end
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_MeteoriteWillNeverBeMineNow:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO: Oh…\n"
.string "I never should have let myself be\l"
.string "conned into telling TEAM MAGMA where\l"
.string "you can find METEORITES…\p"
.string "That METEORITE from METEOR FALLS…\n"
.string "It's never going to be mine now…$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_IsThatMeteoriteMayIHaveIt:
2019-10-18 01:22:03 +02:00
.string "Oh!\n"
.string "Hah?\p"
.string "That item…\p"
.string "Could it be?\p"
.string "Is it the METEORITE that TEAM MAGMA\n"
.string "took from METEOR FALLS?\p"
.string "Please, may I have it?\p"
.string "I'm not asking for it for free.\n"
.string "How about in exchange for this TM?$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_PleaseUseThisTM:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO: This TM, it represents\n"
.string "my feeling of gratitude.\l"
.string "Please use it!$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_ReallyGoingToHelpMyResearch:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO: Oh, I can't believe it.\n"
.string "This is really, really great!\p"
.string "This is really going to help my research!$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_CrushedWithDisappointment:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO: Oh, but…\n"
.string "I'm crushed with disappointment…$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_MayIHaveMeteorite:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO: Please, may I have that\n"
.string "METEORITE?\p"
.string "I'm not asking for it for free.\n"
.string "How about in exchange for this TM?$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_CozmoWentToMeteorFalls:
2019-10-18 01:22:03 +02:00
.string "PROF. COZMO went off to METEOR FALLS\n"
.string "on ROUTE 114 with some people from\l"
.string "TEAM MAGMA.$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_FeelSorryForCozmo:
2019-10-18 01:22:03 +02:00
.string "Poor PROF. COZMO…\n"
.string "He's so depressed… I feel sorry for him.$"
2021-07-20 21:18:31 +02:00
FallarborTown_CozmosHouse_Text_CozmoIsSoHappy:
2019-10-18 01:22:03 +02:00
.string "Look at PROF. COZMO…\n"
.string "He's so happy! I think it's cute.$"