pokecrystal/engine/buena_phone_scripts.asm

171 lines
2.5 KiB
NASM
Raw Normal View History

BuenaPhoneScript1:
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
checkcode VAR_HOUR
2015-11-17 17:29:37 +00:00
if_greater_than 17, BuenaPhoneScript_AfterMidnight1
scall BuenaPhoneScript_CheckTimeOfDay1
jump BuenaPhoneScript_Random1
BuenaPhoneScript2:
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
jump BuenaPhoneScript_Random2
2015-11-17 17:29:37 +00:00
BuenaPhoneScript_CheckTimeOfDay1:
checkmorn
2015-11-17 17:29:37 +00:00
iftrue .morn
checkday
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:
checkcode VAR_HOUR
2015-11-17 17:29:37 +00:00
if_greater_than 17, BuenaPhoneScript_AfterMidnight2
checkmorn
2015-11-17 17:29:37 +00:00
iftrue .morn
checkday
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
2015-11-17 17:29:37 +00:00
jump .Jumptable
2015-11-17 17:29:37 +00:00
.PostE4:
random 14
2015-11-17 17:29:37 +00:00
.Jumptable:
if_equal 0, .zero
if_equal 1, .one
if_equal 2, .two
if_equal 3, .three
if_equal 4, .four
if_equal 5, .five
if_equal 6, .six
if_equal 7, .seven
if_equal 8, .eight
if_equal 9, .nine
if_equal 10, .ten
if_equal 11, .eleven
if_equal 12, .twelve
if_equal 13, .thirteen
.zero
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0efb
2015-11-17 17:29:37 +00:00
jump .finish
.one
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa0fcf
2015-11-17 17:29:37 +00:00
jump .finish
.two
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa109d
2015-11-17 17:29:37 +00:00
jump .finish
.three
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1143
2015-11-17 17:29:37 +00:00
jump .finish
.four
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1244
2015-11-17 17:29:37 +00:00
jump .finish
.five
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1318
2015-11-17 17:29:37 +00:00
jump .finish
.six
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa13d8
2015-11-17 17:29:37 +00:00
jump .finish
.seven
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1488
2015-11-17 17:29:37 +00:00
jump .finish
.eight
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa15de
2015-11-17 17:29:37 +00:00
jump .finish
.nine
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1717
2015-11-17 17:29:37 +00:00
jump .finish
.ten
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa183d
2015-11-17 17:29:37 +00:00
jump .finish
.eleven
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa19b1
2015-11-17 17:29:37 +00:00
jump .finish
.twelve
2015-01-20 08:01:23 +00:00
writetext UnknownText_0xa1ac0
2015-11-17 17:29:37 +00:00
jump .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
2015-11-17 17:29:37 +00:00
if_equal 0, .zero
if_equal 1, .one
if_equal 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
; a0c28
2015-11-17 17:29:37 +00:00
INCLUDE "text/phone/buena.asm"