2018-12-31 13:32:04 -08:00
|
|
|
MomPhoneCalleeScript:
|
2018-12-30 14:15:52 -08:00
|
|
|
checkevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
|
2020-10-04 16:43:28 -07:00
|
|
|
iftrue .started_quest
|
2018-12-30 14:15:52 -08:00
|
|
|
checkevent EVENT_DUDE_TALKED_TO_YOU
|
|
|
|
iftrue MomPhoneLectureScript
|
|
|
|
checkevent EVENT_GAVE_MYSTERY_EGG_TO_ELM
|
|
|
|
iftrue MomPhoneNoGymQuestScript
|
|
|
|
checkevent EVENT_GOT_A_POKEMON_FROM_ELM
|
|
|
|
iftrue MomPhoneNoPokedexScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneNoPokemonScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
2020-10-04 16:43:28 -07:00
|
|
|
.started_quest
|
2018-12-30 14:15:52 -08:00
|
|
|
checkevent EVENT_TEMPORARY_UNTIL_MAP_RELOAD_8
|
|
|
|
iftrue MomPhoneHangUpScript
|
|
|
|
farwritetext MomPhoneGreetingText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 12:31:59 -07:00
|
|
|
getcurlandmarkname STRING_BUFFER_3
|
2021-03-10 18:06:06 -08:00
|
|
|
readvar VAR_ENVIRONMENT
|
|
|
|
ifequal TOWN, MomPhoneInTown
|
|
|
|
ifequal ROUTE, MomPhoneOnRoute
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneOther
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomPhoneLandmark:
|
|
|
|
farwritetext MomPhoneLandmarkText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
2021-03-10 18:06:06 -08:00
|
|
|
MomPhoneInTown:
|
2019-03-10 12:31:59 -07:00
|
|
|
readvar VAR_MAPGROUP
|
2018-12-30 14:15:52 -08:00
|
|
|
ifequal GROUP_NEW_BARK_TOWN, .newbark
|
|
|
|
ifequal GROUP_CHERRYGROVE_CITY, .cherrygrove
|
|
|
|
ifequal GROUP_VIOLET_CITY, .violet
|
|
|
|
ifequal GROUP_AZALEA_TOWN, .azalea
|
|
|
|
ifequal GROUP_GOLDENROD_CITY, .goldenrod
|
|
|
|
farwritetext MomPhoneGenericAreaText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.newbark
|
|
|
|
farwritetext MomPhoneNewBarkText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.cherrygrove
|
|
|
|
farwritetext MomPhoneCherrygroveText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.violet
|
2020-03-15 14:26:10 -07:00
|
|
|
getlandmarkname STRING_BUFFER_4, LANDMARK_SPROUT_TOWER
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneLandmark
|
2018-12-30 14:15:52 -08:00
|
|
|
.azalea
|
2020-03-15 14:26:10 -07:00
|
|
|
getlandmarkname STRING_BUFFER_4, LANDMARK_SLOWPOKE_WELL
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneLandmark
|
2018-12-30 14:15:52 -08:00
|
|
|
.goldenrod
|
2020-03-15 14:26:10 -07:00
|
|
|
getlandmarkname STRING_BUFFER_4, LANDMARK_RADIO_TOWER
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneLandmark
|
2018-12-30 14:15:52 -08:00
|
|
|
|
2021-03-10 18:06:06 -08:00
|
|
|
MomPhoneOnRoute:
|
2018-12-30 14:15:52 -08:00
|
|
|
farwritetext MomOtherAreaText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomPhoneOther:
|
|
|
|
farwritetext MomDeterminedText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomSavingMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomSavingMoney:
|
|
|
|
checkflag ENGINE_MOM_SAVING_MONEY
|
|
|
|
iffalse .NotSaving
|
|
|
|
checkmoney MOMS_MONEY, 0
|
|
|
|
ifequal HAVE_MORE, .SavingHasMoney
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .SavingNoMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.NotSaving:
|
|
|
|
checkmoney MOMS_MONEY, 0
|
|
|
|
ifequal HAVE_MORE, .HasMoney
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .NoMoney
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.SavingHasMoney:
|
2019-03-10 12:31:59 -07:00
|
|
|
getmoney STRING_BUFFER_3, MOMS_MONEY
|
2018-12-30 14:15:52 -08:00
|
|
|
farwritetext MomCheckBalanceText
|
|
|
|
yesorno
|
|
|
|
iftrue MomPhoneSaveMoneyScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneWontSaveMoneyScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.SavingNoMoney:
|
|
|
|
farwritetext MomImportantToSaveText
|
|
|
|
yesorno
|
|
|
|
iftrue MomPhoneSaveMoneyScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneWontSaveMoneyScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.NoMoney:
|
|
|
|
farwritetext MomYoureNotSavingText
|
|
|
|
yesorno
|
|
|
|
iftrue MomPhoneSaveMoneyScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneWontSaveMoneyScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
.HasMoney:
|
2019-03-10 12:31:59 -07:00
|
|
|
getmoney STRING_BUFFER_3, MOMS_MONEY
|
2018-12-30 14:15:52 -08:00
|
|
|
farwritetext MomYouveSavedText
|
|
|
|
yesorno
|
|
|
|
iftrue MomPhoneSaveMoneyScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneWontSaveMoneyScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomPhoneSaveMoneyScript:
|
|
|
|
setflag ENGINE_MOM_SAVING_MONEY
|
|
|
|
farwritetext MomOKIllSaveText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneHangUpScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomPhoneWontSaveMoneyScript:
|
|
|
|
clearflag ENGINE_MOM_SAVING_MONEY
|
|
|
|
farwritetext MomPhoneWontSaveMoneyText
|
2019-11-03 09:48:54 -08:00
|
|
|
promptbutton
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneHangUpScript
|
2018-12-30 14:15:52 -08:00
|
|
|
|
|
|
|
MomPhoneHangUpScript:
|
|
|
|
farwritetext MomPhoneHangUpText
|
|
|
|
end
|
|
|
|
|
|
|
|
MomPhoneNoPokemonScript:
|
|
|
|
farwritetext MomPhoneNoPokemonText
|
|
|
|
end
|
|
|
|
|
|
|
|
MomPhoneNoPokedexScript:
|
|
|
|
farwritetext MomPhoneNoPokedexText
|
|
|
|
end
|
|
|
|
|
|
|
|
MomPhoneNoGymQuestScript:
|
|
|
|
farwritetext MomPhoneNoGymQuestText
|
|
|
|
end
|
|
|
|
|
|
|
|
MomPhoneLectureScript:
|
|
|
|
setevent EVENT_TALKED_TO_MOM_AFTER_MYSTERY_EGG_QUEST
|
|
|
|
setflag ENGINE_MOM_ACTIVE
|
|
|
|
specialphonecall SPECIALCALL_NONE
|
|
|
|
farwritetext MomPhoneLectureText
|
|
|
|
yesorno
|
|
|
|
iftrue MomPhoneSaveMoneyScript
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump MomPhoneWontSaveMoneyScript
|