2021-07-20 21:18:31 +02:00
|
|
|
Common_EventScript_PkmnCenterNurse::
|
2021-11-19 03:02:22 +01:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8004, 0
|
|
|
|
specialvar VAR_RESULT, CountPlayerTrainerStars
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, 4, EventScript_PkmnCenterNurse_GoldCard
|
2021-11-19 03:02:22 +01:00
|
|
|
msgbox gText_WouldYouLikeToRestYourPkmn, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_PkmnCenterNurse_HealPkmn
|
|
|
|
goto_if_eq VAR_RESULT, NO, EventScript_PkmnCenterNurse_Goodbye
|
2021-11-19 03:02:22 +01:00
|
|
|
end
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_Goodbye::
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_WeHopeToSeeYouAgain
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
|
|
|
@ VAR_0x8004 is 1 when player has Gold Card; jumps are identical
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_HealPkmn::
|
2021-11-19 03:02:22 +01:00
|
|
|
incrementgamestat GAME_STAT_USED_POKECENTER
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_eq VAR_0x8004, 0, EventScript_PkmnCenterNurse_IllTakeYourPkmn
|
|
|
|
call_if_eq VAR_0x8004, 1, EventScript_PkmnCenterNurse_IllTakeYourPkmn2
|
2021-11-19 03:02:22 +01:00
|
|
|
waitmessage
|
|
|
|
call EventScript_PkmnCenterNurse_TakeAndHealPkmn
|
|
|
|
goto_if_unset FLAG_POKERUS_EXPLAINED, EventScript_PkmnCenterNurse_CheckPokerus
|
|
|
|
goto EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom
|
|
|
|
end
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_IllTakeYourPkmn::
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_IllTakeYourPkmn
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_IllTakeYourPkmn2::
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_IllTakeYourPkmn2
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_TakeAndHealPkmn::
|
2021-11-19 03:02:22 +01:00
|
|
|
applymovement VAR_0x800B, Common_Movement_WalkInPlaceFasterLeft
|
|
|
|
waitmovement 0
|
|
|
|
dofieldeffect FLDEFF_POKECENTER_HEAL
|
|
|
|
waitfieldeffect FLDEFF_POKECENTER_HEAL
|
|
|
|
applymovement VAR_0x800B, Common_Movement_WalkInPlaceFasterDown
|
|
|
|
waitmovement 0
|
|
|
|
special HealPlayerParty
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom::
|
2021-11-19 03:02:22 +01:00
|
|
|
specialvar VAR_RESULT, PlayerNotAtTrainerHillEntrance
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, 0, EventScript_PkmnCenterNurse_ReturnPkmn
|
2021-11-19 03:02:22 +01:00
|
|
|
specialvar VAR_RESULT, BufferUnionRoomPlayerName
|
|
|
|
copyvar VAR_0x8008, VAR_RESULT
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8008, 0, EventScript_PkmnCenterNurse_ReturnPkmn
|
|
|
|
goto_if_eq VAR_0x8008, 1, EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom
|
2021-11-19 03:02:22 +01:00
|
|
|
end
|
2019-09-05 20:56:34 +02:00
|
|
|
|
|
|
|
@ VAR_0x8004 is 1 when player has Gold Card
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_ReturnPkmn::
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_0x8004, 1, EventScript_PkmnCenterNurse_ReturnPkmn2
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_RestoredPkmnToFullHealth
|
|
|
|
waitmessage
|
|
|
|
applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow
|
|
|
|
waitmovement 0
|
|
|
|
message gText_WeHopeToSeeYouAgain
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_ReturnPkmn2::
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_ThankYouForWaiting
|
|
|
|
waitmessage
|
|
|
|
applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow
|
|
|
|
waitmovement 0
|
|
|
|
message gText_WeHopeToSeeYouAgain2
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom::
|
2021-11-19 03:02:22 +01:00
|
|
|
goto_if_set FLAG_NURSE_UNION_ROOM_REMINDER, EventScript_PkmnCenterNurse_ReturnPkmn
|
|
|
|
msgbox gText_RestoredPkmnToFullHealth, MSGBOX_DEFAULT
|
|
|
|
setflag FLAG_NURSE_UNION_ROOM_REMINDER
|
|
|
|
message CableClub_Text_PlayerIsWaiting
|
|
|
|
waitmessage
|
|
|
|
applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow
|
|
|
|
waitmovement 0
|
|
|
|
message gText_WeHopeToSeeYouAgain
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_CheckPokerus::
|
2021-11-19 03:02:22 +01:00
|
|
|
specialvar VAR_RESULT, IsPokerusInParty
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_PkmnCenterNurse_ExplainPokerus
|
|
|
|
goto_if_eq VAR_RESULT, FALSE, EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom
|
2021-11-19 03:02:22 +01:00
|
|
|
end
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_ExplainPokerus::
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_PokerusExplanation
|
|
|
|
setflag FLAG_POKERUS_EXPLAINED
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_GoldCard::
|
2021-11-19 03:02:22 +01:00
|
|
|
goto_if_set FLAG_NURSE_MENTIONS_GOLD_CARD, EventScript_PkmnCenterNurse_AskForUsual
|
|
|
|
setflag FLAG_NURSE_MENTIONS_GOLD_CARD
|
|
|
|
msgbox gText_WelcomeCutShort, MSGBOX_DEFAULT
|
|
|
|
playse SE_PIN
|
|
|
|
applymovement VAR_0x800B, Common_Movement_ExclamationMark
|
|
|
|
waitmovement 0
|
|
|
|
applymovement VAR_0x800B, Common_Movement_Delay48
|
|
|
|
waitmovement 0
|
|
|
|
msgbox gText_NoticesGoldCard, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_PkmnCenterNurse_GoldCardHealPkmn
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_WeHopeToSeeYouAgain2
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_AskForUsual::
|
2021-11-19 03:02:22 +01:00
|
|
|
msgbox gText_YouWantTheUsual, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_PkmnCenterNurse_GoldCardHealPkmn
|
2021-11-19 03:02:22 +01:00
|
|
|
message gText_WeHopeToSeeYouAgain2
|
|
|
|
return
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_PkmnCenterNurse_GoldCardHealPkmn::
|
2021-11-19 03:02:22 +01:00
|
|
|
setvar VAR_0x8004, 1
|
|
|
|
goto EventScript_PkmnCenterNurse_HealPkmn
|
|
|
|
end
|
2019-09-05 20:56:34 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Movement_PkmnCenterNurse_Bow:
|
2021-11-19 03:02:22 +01:00
|
|
|
nurse_joy_bow
|
|
|
|
delay_4
|
|
|
|
step_end
|