From b921e9c9be58c8e15cee8da7e4abab1f2284942e Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 30 Dec 2018 17:15:52 -0500 Subject: Split engine/phone/phone_scripts.asm and phone_gossip.asm into individual files --- engine/phone/scripts/joey.asm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 engine/phone/scripts/joey.asm (limited to 'engine/phone/scripts/joey.asm') diff --git a/engine/phone/scripts/joey.asm b/engine/phone/scripts/joey.asm new file mode 100644 index 000000000..0fc19f61f --- /dev/null +++ b/engine/phone/scripts/joey.asm @@ -0,0 +1,41 @@ +JoeyPhoneScript1: + trainertotext YOUNGSTER, JOEY1, MEM_BUFFER_0 + checkflag ENGINE_JOEY + iftrue .WantsBattle + farscall PhoneScript_AnswerPhone_Male + checkflag ENGINE_JOEY_MONDAY_AFTERNOON + iftrue .NotMonday + checkcode VAR_WEEKDAY + ifnotequal MONDAY, .NotMonday + checktime DAY + iftrue JoeyMondayAfternoon + +.NotMonday: + special RandomPhoneMon + farjump UnknownScript_0xa0930 + +.WantsBattle: + landmarktotext ROUTE_30, MEM_BUFFER_2 + farjump UnknownScript_0xa0a4b + +JoeyPhoneScript2: + trainertotext YOUNGSTER, JOEY1, MEM_BUFFER_0 + farscall PhoneScript_GreetPhone_Male + checkflag ENGINE_JOEY + iftrue .Generic + checkflag ENGINE_JOEY_MONDAY_AFTERNOON + iftrue .Generic + farscall PhoneScript_Random3 + ifequal 0, JoeyWantsBattle + ifequal 1, JoeyWantsBattle + +.Generic: + farjump Phone_GenericCall_Male + +JoeyMondayAfternoon: + setflag ENGINE_JOEY_MONDAY_AFTERNOON + +JoeyWantsBattle: + landmarktotext ROUTE_30, MEM_BUFFER_2 + setflag ENGINE_JOEY + farjump PhoneScript_WantsToBattle_Male -- cgit v1.2.3