From ba65b4c7399bbb4dc5a0ab9050a5c26f2e343add Mon Sep 17 00:00:00 2001 From: ExpoSeed <43502820+ExpoSeed@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:43:09 -0500 Subject: [PATCH] Updated Prompt for reusing Repels (markdown) --- Prompt-for-reusing-Repels.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Prompt-for-reusing-Repels.md b/Prompt-for-reusing-Repels.md index 2fdca42..8dff99f 100644 --- a/Prompt-for-reusing-Repels.md +++ b/Prompt-for-reusing-Repels.md @@ -50,6 +50,7 @@ Next, we will modify the script to ask the player if they want to use another re Now, we have everything we need. Edit [data/scripts/repel.inc](../blob/master/data/scripts/repel.inc): ```diff EventScript_RepelWoreOff:: @ 82A4B2A ++ lockall + checkitem VAR_REPEL_LAST_USED, 1 + compare VAR_RESULT, FALSE + goto_if_eq EventScript_RepelWoreOff_NoMoreRepels @@ -70,6 +71,7 @@ Now, we have everything we need. Edit [data/scripts/repel.inc](../blob/master/da +EventScript_RepelWoreOff_NoMoreRepels: msgbox Text_RepelWoreOff, MSGBOX_SIGN +EventScript_RepelWoreOff_End: ++ releaseall end Text_RepelWoreOff: @ 82A4B33