diff options
author | FieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com> | 2021-09-09 11:53:18 -0400 |
---|---|---|
committer | FieryMewtwo <77066742+FieryMewtwo@users.noreply.github.com> | 2021-09-09 11:53:18 -0400 |
commit | 43e1b72946976658252edcd81690bb1732352370 (patch) | |
tree | f8b3a6fab21a905ea4163bf1a65fca05e545f94d | |
parent | a41d1e1bebd69438ac6a7af447c7b749a8e5dc9e (diff) |
Created Speedy Nurse Joy (markdown)
-rw-r--r-- | Speedy-Nurse-Joy.md | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Speedy-Nurse-Joy.md b/Speedy-Nurse-Joy.md new file mode 100644 index 0000000..7caea16 --- /dev/null +++ b/Speedy-Nurse-Joy.md @@ -0,0 +1,62 @@ +This tutorial edits the receptionist in the Pokemon Center so that you automatically get healed when you talk to her, and so that you face away from her afterwards. Thanks to TheXaman on Pokecommunity for the code! + +In [data/scripts/pkmn_center_nurse.inc](https://github.com/pret/pokeemerald/blob/master/data/scripts/pkmn_center_nurse.inc): + +```diff +Common_EventScript_PkmnCenterNurse:: + lock + faceplayer + setvar VAR_0x8004, 0 + specialvar VAR_RESULT, CountPlayerTrainerStars + compare VAR_RESULT, 4 + goto_if_eq EventScript_PkmnCenterNurse_GoldCard + msgbox gText_WouldYouLikeToRestYourPkmn, MSGBOX_YESNO + compare VAR_RESULT, YES + goto_if_eq EventScript_PkmnCenterNurse_HealPkmn + compare VAR_RESULT, NO + goto_if_eq EventScript_PkmnCenterNurse_Goodbye ++ goto EventScript_PkmnCenterNurse_HealPkmn + end +``` + +... + +```diff +@ VAR_0x8004 is 1 when player has Gold Card +EventScript_PkmnCenterNurse_ReturnPkmn:: + compare VAR_0x8004, 1 + goto_if_eq EventScript_PkmnCenterNurse_ReturnPkmn2 + message gText_RestoredPkmnToFullHealth + waitmessage + applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow + waitmovement 0 + message gText_WeHopeToSeeYouAgain ++ goto EventScript_PkmnCenterNurse_PlayerTurn + return +``` + +... + +```diff +EventScript_PkmnCenterNurse_ReturnPkmn2:: + message gText_ThankYouForWaiting + waitmessage + applymovement VAR_0x800B, Movement_PkmnCenterNurse_Bow + waitmovement 0 + message gText_WeHopeToSeeYouAgain2 ++ goto EventScript_PkmnCenterNurse_PlayerTurn + return +``` + +At the bottom of the file, add this script. If you're interested, this just makes the player faceaway after healing their mon. If you're observant, you'll also notice that this is the code for the calls we just added to EventScript_PkmnCenterNurse_ReturnPkmn2 and EventScript_PkmnCenterNurse_ReturnPkmn + +```diff ++ EventScript_PkmnCenterNurse_PlayerTurn:: ++ closemessage ++ applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown ++ waitmovement 0 ++ release ++ end +``` + +Congrats! You're done!
\ No newline at end of file |