diff options
author | Idain <luiscarlosholguinperez@outlook.com> | 2021-11-20 02:57:19 -0400 |
---|---|---|
committer | Idain <luiscarlosholguinperez@outlook.com> | 2021-11-20 02:57:19 -0400 |
commit | d20b2c052b293d91ece4699b69a51b3a761ab9d4 (patch) | |
tree | 04c058537a09208826bfd2978a70c14d45732594 | |
parent | 9701d9e354dc23cb67131015395801357556f4a8 (diff) |
Add another dialogue in step 5 and modify index.
-rw-r--r-- | Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md b/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md index d1cbe5e..34fa42c 100644 --- a/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md +++ b/Make-the-Lottery-Corner-generate-a-lucky-number-daily-instead-of-weekly.md @@ -6,6 +6,7 @@ In generation 2, the Lottery Corner is located in the 1st floor of the Radio Tow 2. [Change the behavior of both `CheckLuckyNumberShowFlag` and `ResetLuckyNumberShowFlag`](#2-change-the-behavior-of-both-checkluckynumbershowflag-and-resetluckynumbershowflag) 3. [Modify the recepcionist's script](#3-modify-the-recepcionists-script) 4. [Edit the Lucky Number Show](#4-edit-the-lucky-number-show) +5. [Edit dialogues](#5-edit-some-npcs-dialogues) ## 1. Reset `wLuckyNumberShowFlag` daily instead of weekly @@ -93,13 +94,12 @@ LuckyNumberShow1: Here we follow a logic similar to the previous step: `CheckLuckyNumberShowFlag` copies the value of the `ENGINE_LUCKY_NUMBER_SHOW` flag into the Z flag and if it's set (Z = 1, or NZ), we jump to `.dontreset` so we don't reset the lucky number yet; if the flag is reset then it means it's a new day and we can safely reset the number. -## 5. Edit dialogs +## 5. Edit some NPCs' dialogues -NPCs are refering to "this week's" lucky number. -Edit the concerned strings in [data/text/common_1.asm](../blob/master/data/text/common_1.asm): +The only thing left is to edit some NPCs' dialogues to indicate the Lucky Number Show is now a daily event instead of weekly. For that, let's first edit [data/text/common_1.asm](../blob/master/data/text/common_1.asm): ```diff -_LC_Text7:: + _LC_Text7:: text_start - line "This week's Lucky" + line "Today's Lucky" @@ -107,14 +107,25 @@ _LC_Text7:: ... ``` -and in [maps/RadioTower1F.asm](../blob/master/maps/RadioTower1F.asm): +And also [maps/RadioTower1F.asm](../blob/master/maps/RadioTower1F.asm): ```diff -RadioTower1FLuckyNumberManThisWeeksIdIsText: + RadioTower1FLuckyNumberManThisWeeksIdIsText: - text "This week's ID" + text "Today's ID" line "number is @" + text_ram wStringBuffer3 + text "." + done + ... + + RadioTower1FLuckyNumberManComeAgainText: + text "Please come back" +- line "next week for the" ++ line "tomorrow for the" + cont "next LUCKY NUMBER." + done ``` And that's it! Now the Lucky Number Show will generate a lucky number daily and we can get it by either talking to the recepcionist or listening to the show, so go try your luck and get a prize! (And if you don't get it, don't worry, you can now try the next day). ;-)
\ No newline at end of file |