pokecrystal/engine/phone/scripts/buena.asm

170 lines
2.5 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
2018-02-03 02:09:17 +00:00
ifgreater 17, BuenaPhoneScript_AfterMidnight1
2015-11-17 17:29:37 +00:00
scall BuenaPhoneScript_CheckTimeOfDay1
sjump BuenaPhoneScript_Random1
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_CheckTimeOfDay2
sjump BuenaPhoneScript_Random2
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_CheckTimeOfDay1:
checktime MORN
2015-11-17 17:29:37 +00:00
iftrue .morn
checktime DAY
2015-11-17 17:29:37 +00:00
iftrue .day
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0d42
2015-11-30 03:29:45 +00:00
buttonsound
end
.morn
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0c28
2015-11-30 03:29:45 +00:00
buttonsound
end
.day
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0c72
2015-11-30 03:29:45 +00:00
buttonsound
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_AfterMidnight1:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0caf
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_CheckTimeOfDay2:
readvar VAR_HOUR
2018-02-03 02:09:17 +00:00
ifgreater 17, BuenaPhoneScript_AfterMidnight2
checktime MORN
2015-11-17 17:29:37 +00:00
iftrue .morn
checktime DAY
2015-11-17 17:29:37 +00:00
iftrue .day
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0e29
2015-11-30 03:29:45 +00:00
buttonsound
end
.morn
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0d96
2015-11-30 03:29:45 +00:00
buttonsound
end
.day
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0dcf
2015-11-30 03:29:45 +00:00
buttonsound
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_AfterMidnight2:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0e01
2015-11-30 03:29:45 +00:00
buttonsound
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_Rocket:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0e5e
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_Random2:
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
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0efb
sjump .finish
.one
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0fcf
sjump .finish
.two
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa109d
sjump .finish
.three
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1143
sjump .finish
.four
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1244
sjump .finish
.five
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1318
sjump .finish
.six
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa13d8
sjump .finish
.seven
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1488
sjump .finish
.eight
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa15de
sjump .finish
.nine
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1717
sjump .finish
.ten
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa183d
sjump .finish
.eleven
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa19b1
sjump .finish
.twelve
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1ac0
sjump .finish
.thirteen
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1bed
.finish
end
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_Random1:
random 3
2018-02-03 02:09:17 +00:00
ifequal 0, .zero
ifequal 1, .one
ifequal 2, .two
.zero
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1c88
end
.one
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1d5f
end
.two
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1e2f
end
2015-11-17 17:29:37 +00:00
2018-01-10 00:51:30 +00:00
INCLUDE "data/phone/text/buena.asm"