pokecrystal/engine/phone/scripts/buena.asm

170 lines
2.8 KiB
NASM
Raw Normal View History

BuenaPhoneCalleeScript:
2015-07-10 12:12:28 +00:00
checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
2015-11-17 17:29:37 +00:00
iftrue BuenaPhoneScript_Rocket
readvar VAR_HOUR
ifgreater 17, BuenaPhoneScript_AfterMidnightCallee
scall BuenaPhoneScript_CheckTimeOfDayCallee
sjump BuenaPhoneScript_RandomCallee
BuenaPhoneCallerScript:
2015-07-10 12:12:28 +00:00
checkflag ENGINE_ROCKETS_IN_RADIO_TOWER
2015-11-17 17:29:37 +00:00
iftrue BuenaPhoneScript_Rocket
scall BuenaPhoneScript_CheckTimeOfDayCaller
sjump BuenaPhoneScript_RandomCaller
BuenaPhoneScript_CheckTimeOfDayCallee:
checktime MORN
2015-11-17 17:29:37 +00:00
iftrue .morn
checktime DAY
2015-11-17 17:29:37 +00:00
iftrue .day
writetext BuenaPhoneNiteAnswerText
2019-11-03 17:48:54 +00:00
promptbutton
end
.morn
writetext BuenaPhoneMorningAnswerText
2019-11-03 17:48:54 +00:00
promptbutton
end
.day
writetext BuenaPhoneDayAnswerText
2019-11-03 17:48:54 +00:00
promptbutton
end
BuenaPhoneScript_AfterMidnightCallee:
writetext BuenaPhoneMidnightAnswerText
end
BuenaPhoneScript_CheckTimeOfDayCaller:
readvar VAR_HOUR
ifgreater 17, BuenaPhoneScript_AfterMidnightCaller
checktime MORN
2015-11-17 17:29:37 +00:00
iftrue .morn
checktime DAY
2015-11-17 17:29:37 +00:00
iftrue .day
writetext BuenaPhoneNiteText
2019-11-03 17:48:54 +00:00
promptbutton
end
.morn
writetext BuenaPhoneMorningText
2019-11-03 17:48:54 +00:00
promptbutton
end
.day
writetext BuenaPhoneDayText
2019-11-03 17:48:54 +00:00
promptbutton
end
BuenaPhoneScript_AfterMidnightCaller:
writetext BuenaPhoneMidnightText
2019-11-03 17:48:54 +00:00
promptbutton
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_Rocket:
writetext BuenaPhoneRocketText
end
BuenaPhoneScript_RandomCaller:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
2015-11-17 17:29:37 +00:00
iftrue .PostE4
random 11
sjump .Jumptable
2015-11-17 17:29:37 +00:00
.PostE4:
random 14
2015-11-17 17:29:37 +00:00
.Jumptable:
2018-02-03 02:09:17 +00:00
ifequal 0, .zero
ifequal 1, .one
ifequal 2, .two
ifequal 3, .three
ifequal 4, .four
ifequal 5, .five
ifequal 6, .six
ifequal 7, .seven
ifequal 8, .eight
ifequal 9, .nine
ifequal 10, .ten
ifequal 11, .eleven
ifequal 12, .twelve
ifequal 13, .thirteen
2015-11-17 17:29:37 +00:00
.zero
writetext BuenaPhoneWentOutWithBenText
sjump .finish
.one
writetext BuenaPhoneReceptionistText
sjump .finish
.two
writetext BuenaPhoneLuckyNumberShowText
sjump .finish
.three
writetext BuenaPhoneStressedFromWorkText
sjump .finish
.four
writetext BuenaPhoneProfessorOakText
sjump .finish
.five
writetext BuenaPhoneGotAColdText
sjump .finish
.six
writetext BuenaPhoneRadioCardQuestionsText
sjump .finish
.seven
writetext BuenaPhonePikachuFanClubText
sjump .finish
.eight
writetext BuenaPhoneRadioTowerDirectorText
sjump .finish
.nine
writetext BuenaPhoneWhenDoYouRelaxText
sjump .finish
.ten
writetext BuenaPhoneStarterPokemonText
sjump .finish
.eleven
writetext BuenaPhoneCompanyVacationText
sjump .finish
.twelve
writetext BuenaPhoneBenAndFernText
sjump .finish
.thirteen
writetext BuenaPhoneGoingShoppingText
.finish
end
BuenaPhoneScript_RandomCallee:
random 3
2018-02-03 02:09:17 +00:00
ifequal 0, .zero
ifequal 1, .one
ifequal 2, .two
.zero
writetext BuenaPhoneFavoriteSlotMachineAnswerText
end
.one
writetext BuenaPhonePokegearAnswerText
end
.two
writetext BuenaPhoneCoopedUpInRadioTowerAnswerText
end
2015-11-17 17:29:37 +00:00
2018-01-10 00:51:30 +00:00
INCLUDE "data/phone/text/buena.asm"