Updated Prompt for reusing Repels (markdown)

ExpoSeed 2021-06-11 16:43:09 -05:00
parent d95ad6d4db
commit ba65b4c739
1 changed files with 2 additions and 0 deletions

@ -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