summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Lourenco <brandon.lourenco@gmail.com>2020-09-05 11:27:24 -0400
committerBrandon Lourenco <brandon.lourenco@gmail.com>2020-09-05 11:27:24 -0400
commit277bcf129f58917aa975cb289aeb548b16fc1e37 (patch)
tree8bf2f0484beff91436ef747a293e231412f3fe6b
parent08bbda0d913ff694716b9d08ebd7879e964170ac (diff)
Changed incorrect filepath "src/include/constants/vars.h" to "include/constants/vars.h".
-rw-r--r--Prompt-for-reusing-Repels.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Prompt-for-reusing-Repels.md b/Prompt-for-reusing-Repels.md
index 916e15a..423e8b0 100644
--- a/Prompt-for-reusing-Repels.md
+++ b/Prompt-for-reusing-Repels.md
@@ -10,7 +10,7 @@ This tutorial will ask the player, upon a Repel running out, if they want to use
The tricky part of implementing this is that the game does not actually store which repel is used. It only changes `VAR_REPEL_STEP_COUNT`. In order to remedy this, we must store the repel used.
-We can use any of the unused vars to do this. This tutorial will use `VAR_UNUSED_0x404E`, but you can use whatever you like. Edit [src/include/constants/vars.h](../blob/master/include/constants/vars.h):
+We can use any of the unused vars to do this. This tutorial will use `VAR_UNUSED_0x404E`, but you can use whatever you like. Edit [include/constants/vars.h](../blob/master/include/constants/vars.h):
```diff
-#define VAR_UNUSED_0x404E 0x404E // Unused Var
+#define VAR_REPEL_LAST_USED 0x404E
@@ -55,7 +55,7 @@ Now, we have everything we need. Edit [data/scripts/repel.inc](../blob/master/da
+ goto_if_eq EventScript_RepelWoreOff_NoMoreRepels
+ msgbox Text_RepelWoreOff_UseAnother, MSGBOX_YESNO
+ compare VAR_RESULT, 0
-+ goto_if_eq goto_if_eq EventScript_RepelWoreOff_ChooseNo
++ goto_if_eq EventScript_RepelWoreOff_ChooseNo
+ copyvar VAR_0x8004, VAR_REPEL_LAST_USED
+ callnative ItemId_GetHoldEffectParam_Script
+ copyvar VAR_REPEL_STEP_COUNT, VAR_RESULT