summaryrefslogtreecommitdiff
path: root/engine/phone/scripts/reena.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-12-30 17:15:52 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2018-12-30 17:15:52 -0500
commitb921e9c9be58c8e15cee8da7e4abab1f2284942e (patch)
tree1f8ba49b3e1f402d8e3a43e2c3e046abc06c62fa /engine/phone/scripts/reena.asm
parent378667d9ecd80940bb6ef59781c82bd38ce38650 (diff)
Split engine/phone/phone_scripts.asm and phone_gossip.asm into individual files
Diffstat (limited to 'engine/phone/scripts/reena.asm')
-rw-r--r--engine/phone/scripts/reena.asm39
1 files changed, 39 insertions, 0 deletions
diff --git a/engine/phone/scripts/reena.asm b/engine/phone/scripts/reena.asm
new file mode 100644
index 000000000..dd7818f7d
--- /dev/null
+++ b/engine/phone/scripts/reena.asm
@@ -0,0 +1,39 @@
+ReenaPhoneScript1:
+ trainertotext COOLTRAINERF, REENA1, MEM_BUFFER_0
+ checkflag ENGINE_REENA
+ iftrue .WantsBattle
+ farscall PhoneScript_AnswerPhone_Female
+ checkflag ENGINE_REENA_SUNDAY_MORNING
+ iftrue .NotSunday
+ checkcode VAR_WEEKDAY
+ ifnotequal SUNDAY, .NotSunday
+ checktime MORN
+ iftrue ReenaSundayMorning
+
+.NotSunday:
+ farjump UnknownScript_0xa0928
+
+.WantsBattle:
+ landmarktotext ROUTE_27, MEM_BUFFER_2
+ farjump UnknownScript_0xa0a46
+
+ReenaPhoneScript2:
+ trainertotext COOLTRAINERF, REENA1, MEM_BUFFER_0
+ farscall PhoneScript_GreetPhone_Female
+ checkflag ENGINE_REENA
+ iftrue .Generic
+ checkflag ENGINE_REENA_SUNDAY_MORNING
+ iftrue .Generic
+ farscall PhoneScript_Random2
+ ifequal 0, ReenaWantsBattle
+
+.Generic:
+ farjump Phone_GenericCall_Female
+
+ReenaSundayMorning:
+ setflag ENGINE_REENA_SUNDAY_MORNING
+
+ReenaWantsBattle:
+ landmarktotext ROUTE_27, MEM_BUFFER_2
+ setflag ENGINE_REENA
+ farjump PhoneScript_WantsToBattle_Female