summaryrefslogtreecommitdiff
path: root/engine/phone/scripts/brent.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/brent.asm
parent378667d9ecd80940bb6ef59781c82bd38ce38650 (diff)
Split engine/phone/phone_scripts.asm and phone_gossip.asm into individual files
Diffstat (limited to 'engine/phone/scripts/brent.asm')
-rw-r--r--engine/phone/scripts/brent.asm44
1 files changed, 44 insertions, 0 deletions
diff --git a/engine/phone/scripts/brent.asm b/engine/phone/scripts/brent.asm
new file mode 100644
index 000000000..758bb585f
--- /dev/null
+++ b/engine/phone/scripts/brent.asm
@@ -0,0 +1,44 @@
+BrentPhoneScript1:
+ trainertotext POKEMANIAC, BRENT1, MEM_BUFFER_0
+ checkflag ENGINE_BRENT
+ iftrue .WantsBattle
+ farscall PhoneScript_AnswerPhone_Male
+ checkflag ENGINE_BRENT_MONDAY_MORNING
+ iftrue .NotMonday
+ checkcode VAR_WEEKDAY
+ ifnotequal MONDAY, .NotMonday
+ checktime MORN
+ iftrue BrentMondayMorning
+
+.NotMonday:
+ farjump UnknownScript_0xa0998
+
+.WantsBattle:
+ landmarktotext ROUTE_43, MEM_BUFFER_2
+ farjump UnknownScript_0xa0a87
+
+BrentPhoneScript2:
+ trainertotext POKEMANIAC, BRENT1, MEM_BUFFER_0
+ farscall PhoneScript_GreetPhone_Male
+ farscall PhoneScript_Random2
+ ifequal 0, BrentBillTrivia
+ checkflag ENGINE_BRENT
+ iftrue .Generic
+ checkflag ENGINE_BRENT_MONDAY_MORNING
+ iftrue .Generic
+ farscall PhoneScript_Random2
+ ifequal 0, BrentWantsBattle
+
+.Generic:
+ farjump Phone_GenericCall_Male
+
+BrentMondayMorning:
+ setflag ENGINE_BRENT_MONDAY_MORNING
+
+BrentWantsBattle:
+ landmarktotext ROUTE_43, MEM_BUFFER_2
+ setflag ENGINE_BRENT
+ farjump PhoneScript_WantsToBattle_Male
+
+BrentBillTrivia:
+ farjump BrentBillTriviaScript