diff options
author | Damien Doury <DamienDoury@users.noreply.github.com> | 2021-04-10 11:51:29 +0200 |
---|---|---|
committer | Damien Doury <DamienDoury@users.noreply.github.com> | 2021-04-10 11:51:29 +0200 |
commit | b7a9c4bb1868c35ee1cce9483048fde7af4a0bd4 (patch) | |
tree | 348ec42d30a3a8a59a702af5485164f76c6d8691 | |
parent | 0e14bcffddae61cb1f85c18f90d6487e68f1d515 (diff) |
Updated Automatically reuse Repel (markdown => rest)
-rw-r--r-- | Automatically-reuse-Repel.rest (renamed from Automatically-reuse-Repel.md) | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Automatically-reuse-Repel.md b/Automatically-reuse-Repel.rest index 7f315bd..acf3a46 100644 --- a/Automatically-reuse-Repel.md +++ b/Automatically-reuse-Repel.rest @@ -102,7 +102,7 @@ Edit [engine/overworld/events.asm](../blob/master/engine/overworld/events.asm): Note that `UseAnotherRepelScript` hasn't been defined yet, so we'll do that next. -## 4. Ask whether to use another Repel, and do so, if applicable +## 4. Ask whether to use another Repel of the same type, and do so, if applicable Edit [engine/events/repel.asm](../blob/master/engine/events/repel.asm): @@ -121,6 +121,8 @@ Edit [engine/events/repel.asm](../blob/master/engine/events/repel.asm): +UseAnotherRepelScript:: + opentext ++ readmem wRepelType ++ getitemname STRING_BUFFER_3, USE_SCRIPT_VAR + writetext .text + yesorno + iffalse .done @@ -148,7 +150,9 @@ Edit [data/text/common_1.asm](../blob/master/data/text/common_1.asm): done +_UseAnotherRepelText:: -+ text "REPEL's effect" ++ text "@" ++ text_ram wStringBuffer3 ++ text "'s" + line "wore off." + + para "Use another?" |