diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2018-12-31 16:35:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-31 16:35:13 -0500 |
commit | 4259e7051e2cc621267fc62d6ea11620ab995122 (patch) | |
tree | 18133db512710c15ab5d32385ed80771aff58254 /engine/phone/scripts/beth.asm | |
parent | 378667d9ecd80940bb6ef59781c82bd38ce38650 (diff) | |
parent | afbf1b3ffcea7ab5cfd03a8205c18e948c549bb7 (diff) |
Merge pull request #585 from Rangi42/master
Refactor engine/phone/
Diffstat (limited to 'engine/phone/scripts/beth.asm')
-rw-r--r-- | engine/phone/scripts/beth.asm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/engine/phone/scripts/beth.asm b/engine/phone/scripts/beth.asm new file mode 100644 index 000000000..4aae343a7 --- /dev/null +++ b/engine/phone/scripts/beth.asm @@ -0,0 +1,39 @@ +BethPhoneCalleeScript: + trainertotext COOLTRAINERF, BETH1, MEM_BUFFER_0 + checkflag ENGINE_BETH + iftrue .WantsBattle + farscall PhoneScript_AnswerPhone_Female + checkflag ENGINE_BETH_FRIDAY_AFTERNOON + iftrue .NotFriday + checkcode VAR_WEEKDAY + ifnotequal FRIDAY, .NotFriday + checktime DAY + iftrue BethFridayAfternoon + +.NotFriday: + farjump UnknownScript_0xa0918 + +.WantsBattle: + landmarktotext ROUTE_26, MEM_BUFFER_2 + farjump BethBattleReminderScript + +BethPhoneCallerScript: + trainertotext COOLTRAINERF, BETH1, MEM_BUFFER_0 + farscall PhoneScript_GreetPhone_Female + checkflag ENGINE_BETH + iftrue .Generic + checkflag ENGINE_BETH_FRIDAY_AFTERNOON + iftrue .Generic + farscall PhoneScript_Random2 + ifequal 0, BethWantsBattle + +.Generic: + farjump Phone_GenericCall_Female + +BethFridayAfternoon: + setflag ENGINE_BETH_FRIDAY_AFTERNOON + +BethWantsBattle: + landmarktotext ROUTE_26, MEM_BUFFER_2 + setflag ENGINE_BETH + farjump PhoneScript_WantsToBattle_Female |