pokecrystal/maps/Route33.asm

217 lines
3.9 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const ROUTE33_POKEFAN_M
const ROUTE33_LASS
const ROUTE33_FRUIT_TREE
2015-07-10 08:20:21 +00:00
Route33_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
2015-12-17 02:57:42 +00:00
Route33LassScript:
jumptextfaceplayer Route33LassText
2015-07-10 08:20:21 +00:00
TrainerHikerAnthony:
2015-12-17 02:57:42 +00:00
trainer EVENT_BEAT_HIKER_ANTHONY, HIKER, ANTHONY2, HikerAnthony2SeenText, HikerAnthony2BeatenText, 0, .Script
2015-12-17 02:57:42 +00:00
.Script:
writecode VAR_CALLERID, PHONE_HIKER_ANTHONY
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_ANTHONY
2015-12-17 02:57:42 +00:00
iftrue .Rematch
2015-07-10 12:08:03 +00:00
checkflag ENGINE_DUNSPARCE_SWARM
2015-12-17 02:57:42 +00:00
iftrue .Swarm
checkcellnum PHONE_HIKER_ANTHONY
2015-12-17 02:57:42 +00:00
iftrue .NumberAccepted
checkevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
2015-12-17 02:57:42 +00:00
iftrue .AskAgain
writetext HikerAnthony2AfterText
2015-11-30 03:29:45 +00:00
buttonsound
setevent EVENT_ANTHONY_ASKED_FOR_PHONE_NUMBER
2015-12-17 02:57:42 +00:00
scall .AskNumber1
jump .AskForPhoneNumber
2015-12-17 02:57:42 +00:00
.AskAgain:
scall .AskNumber2
.AskForPhoneNumber:
askforphonenumber PHONE_HIKER_ANTHONY
2015-12-17 02:57:42 +00:00
if_equal $1, .PhoneFull
if_equal $2, .NumberDeclined
trainertotext HIKER, ANTHONY2, $0
2015-12-17 02:57:42 +00:00
scall .RegisteredNumber
jump .NumberAccepted
2015-12-17 02:57:42 +00:00
.Rematch:
scall .RematchStd
2015-11-02 19:37:02 +00:00
winlosstext HikerAnthony2BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wAnthonyFightCount
if_equal 4, .Fight4
if_equal 3, .Fight3
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight4
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight4
.Fight3
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight3
.Fight2
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight2
.Fight1
checkflag ENGINE_FLYPOINT_OLIVINE
iftrue .LoadFight1
.LoadFight0
loadtrainer HIKER, ANTHONY2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wAnthonyFightCount, 1
clearflag ENGINE_ANTHONY
end
.LoadFight1
loadtrainer HIKER, ANTHONY1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wAnthonyFightCount, 2
clearflag ENGINE_ANTHONY
end
.LoadFight2
loadtrainer HIKER, ANTHONY3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wAnthonyFightCount, 3
clearflag ENGINE_ANTHONY
end
.LoadFight3
loadtrainer HIKER, ANTHONY4
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wAnthonyFightCount, 4
clearflag ENGINE_ANTHONY
end
.LoadFight4
loadtrainer HIKER, ANTHONY5
startbattle
reloadmapafterbattle
clearflag ENGINE_ANTHONY
end
2015-12-17 02:57:42 +00:00
.Swarm:
writetext HikerAnthonyDunsparceText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-12-17 02:57:42 +00:00
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-12-17 02:57:42 +00:00
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-12-17 02:57:42 +00:00
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-12-17 02:57:42 +00:00
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-12-17 02:57:42 +00:00
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-12-17 02:57:42 +00:00
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-12-17 02:57:42 +00:00
.RematchStd:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2016-04-07 04:59:45 +00:00
Route33Sign:
jumptext Route33SignText
2015-12-17 02:57:42 +00:00
Route33FruitTreeScript:
2015-11-18 15:42:42 +00:00
fruittree FRUITTREE_ROUTE_33
2015-07-10 08:20:21 +00:00
HikerAnthony2SeenText:
text "I came through the"
line "tunnel, but I"
para "still have plenty"
line "of energy left."
done
2015-07-10 08:20:21 +00:00
HikerAnthony2BeatenText:
text "Whoa! You've got"
line "more zip than me!"
done
2015-12-17 02:57:42 +00:00
HikerAnthony2AfterText:
text "We HIKERS are at"
line "our best in the"
cont "mountains."
done
2015-12-17 02:57:42 +00:00
HikerAnthonyDunsparceText:
text "Hey, did you get a"
line "DUNSPARCE?"
para "I caught one too."
para "Take a look at it"
line "in the light. It's"
cont "got a funny face!"
done
2015-12-17 02:57:42 +00:00
Route33LassText:
text "Pant, pant…"
para "I finally got"
line "through that cave."
para "It was much bigger"
line "than I'd expected."
para "I got too tired to"
line "explore the whole"
para "thing, so I came"
line "outside."
done
2016-04-07 04:59:45 +00:00
Route33SignText:
text "ROUTE 33"
done
2015-07-10 08:20:21 +00:00
Route33_MapEventHeader:
; filler
db 0, 0
.Warps:
db 1
warp_def $9, $b, 3, UNION_CAVE_1F
.XYTriggers:
db 0
.Signposts:
db 1
2016-04-07 04:59:45 +00:00
signpost 11, 11, SIGNPOST_READ, Route33Sign
.PersonEvents:
db 3
person_event SPRITE_POKEFAN_M, 13, 6, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, (1 << 3) | PAL_OW_BROWN, PERSONTYPE_TRAINER, 2, TrainerHikerAnthony, -1
2015-12-17 02:57:42 +00:00
person_event SPRITE_LASS, 16, 13, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, Route33LassScript, -1
person_event SPRITE_FRUIT_TREE, 16, 14, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, Route33FruitTreeScript, -1