From 277bcf129f58917aa975cb289aeb548b16fc1e37 Mon Sep 17 00:00:00 2001 From: Brandon Lourenco Date: Sat, 5 Sep 2020 11:27:24 -0400 Subject: Changed incorrect filepath "src/include/constants/vars.h" to "include/constants/vars.h". --- Prompt-for-reusing-Repels.md | 4 ++-- 1 file 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 -- cgit v1.2.3