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