pokecrystal/maps/OlivineLighthouse2F.asm

230 lines
4.5 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const OLIVINELIGHTHOUSE2F_SAILOR
const OLIVINELIGHTHOUSE2F_GENTLEMAN
2015-07-10 08:20:21 +00:00
OlivineLighthouse2F_MapScriptHeader:
.SceneScripts:
db 0
.MapCallbacks:
db 0
2015-07-10 08:20:21 +00:00
TrainerGentlemanAlfred:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_GENTLEMAN_ALFRED, GENTLEMAN, ALFRED, GentlemanAlfredSeenText, GentlemanAlfredBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
2017-12-10 20:36:58 +00:00
writetext GentlemanAlfredAfterBattleText
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
2015-07-10 08:20:21 +00:00
TrainerSailorHuey1:
2017-12-18 01:45:04 +00:00
trainer EVENT_BEAT_SAILOR_HUEY, SAILOR, HUEY1, SailorHuey1SeenText, SailorHuey1BeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_SAILOR_HUEY
2015-11-25 15:16:29 +00:00
end_if_just_battled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_HUEY
iftrue UnknownScript_0x5afc7
checkcellnum PHONE_SAILOR_HUEY
iftrue UnknownScript_0x5b05f
checkevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
iftrue UnknownScript_0x5afb0
setevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x5b053
jump UnknownScript_0x5afb3
2015-07-10 08:20:21 +00:00
UnknownScript_0x5afb0:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x5b057
2015-07-10 08:20:21 +00:00
UnknownScript_0x5afb3:
askforphonenumber PHONE_SAILOR_HUEY
if_equal $1, UnknownScript_0x5b067
if_equal $2, UnknownScript_0x5b063
trainertotext SAILOR, HUEY1, $0
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x5b05b
jump UnknownScript_0x5b05f
2015-07-10 08:20:21 +00:00
UnknownScript_0x5afc7:
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x5b06b
2015-11-02 19:37:02 +00:00
winlosstext SailorHuey1BeatenText, 0
2015-07-10 20:04:00 +00:00
copybytetovar wHueyFightCount
if_equal 3, .Fight3
if_equal 2, .Fight2
if_equal 1, .Fight1
if_equal 0, .LoadFight0
.Fight3:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight3
.Fight2:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight2
.Fight1:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight1
.LoadFight0:
loadtrainer SAILOR, HUEY1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 1
clearflag ENGINE_HUEY
end
.LoadFight1:
loadtrainer SAILOR, HUEY2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 2
clearflag ENGINE_HUEY
end
.LoadFight2:
loadtrainer SAILOR, HUEY3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 3
clearflag ENGINE_HUEY
end
.LoadFight3:
loadtrainer SAILOR, HUEY4
startbattle
reloadmapafterbattle
clearflag ENGINE_HUEY
2013-09-24 07:48:58 +00:00
checkevent EVENT_HUEY_PROTEIN
iftrue UnknownScript_0x5b03f
checkevent EVENT_GOT_PROTEIN_FROM_HUEY
iftrue UnknownScript_0x5b03e
2015-01-20 08:01:23 +00:00
scall UnknownScript_0x5b076
2015-11-05 01:20:14 +00:00
verbosegiveitem PROTEIN
iffalse UnknownScript_0x5b06f
setevent EVENT_GOT_PROTEIN_FROM_HUEY
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x5b05f
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b03e:
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b03f:
2015-12-09 23:25:44 +00:00
opentext
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x5b1b6
2015-11-25 15:16:29 +00:00
waitbutton
2015-11-05 01:20:14 +00:00
verbosegiveitem PROTEIN
iffalse UnknownScript_0x5b06f
2013-09-24 07:48:58 +00:00
clearevent EVENT_HUEY_PROTEIN
setevent EVENT_GOT_PROTEIN_FROM_HUEY
2015-01-20 08:01:23 +00:00
jump UnknownScript_0x5b05f
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b053:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b057:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b05b:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b05f:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b063:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b067:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b06b:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b06f:
2013-09-24 07:48:58 +00:00
setevent EVENT_HUEY_PROTEIN
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2015-07-10 08:20:21 +00:00
UnknownScript_0x5b076:
2015-06-25 01:26:24 +00:00
jumpstd rematchgiftm
end
2015-07-10 08:20:21 +00:00
SailorHuey1SeenText:
text "Men of the sea are"
line "always spoiling"
cont "for a good fight!"
done
2015-07-10 08:20:21 +00:00
SailorHuey1BeatenText:
text "Urf!"
line "I lose!"
done
; possibly unused
2015-07-10 08:20:21 +00:00
UnknownText_0x5b0be:
text "What power!"
line "How would you like"
para "to sail the seas"
line "with me?"
done
2015-07-10 08:20:21 +00:00
GentlemanAlfredSeenText:
text "Hm? This is no"
line "place for playing."
done
2015-07-10 08:20:21 +00:00
GentlemanAlfredBeatenText:
text "Ah! I can see that"
line "you're serious."
done
2017-12-10 20:36:58 +00:00
GentlemanAlfredAfterBattleText:
text "Up top is a #-"
line "MON that keeps the"
cont "LIGHTHOUSE lit."
para "But I hear that"
line "it's sick now and"
para "can't be cured by"
line "ordinary medicine."
done
2015-07-10 08:20:21 +00:00
UnknownText_0x5b1b6:
text "Man! You're as"
line "tough as ever!"
para "Anyway, here's"
line "that medicine from"
cont "before."
done
2015-07-10 08:20:21 +00:00
OlivineLighthouse2F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 6
warp_def $b, $3, 3, OLIVINE_LIGHTHOUSE_1F
warp_def $3, $5, 2, OLIVINE_LIGHTHOUSE_3F
warp_def $d, $10, 4, OLIVINE_LIGHTHOUSE_1F
warp_def $d, $11, 5, OLIVINE_LIGHTHOUSE_1F
warp_def $b, $10, 4, OLIVINE_LIGHTHOUSE_3F
warp_def $b, $11, 5, OLIVINE_LIGHTHOUSE_3F
.CoordEvents:
db 0
.BGEvents:
db 0
.ObjectEvents:
db 2
object_event SPRITE_SAILOR, 3, 9, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSailorHuey1, -1
object_event SPRITE_GENTLEMAN, 8, 17, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerGentlemanAlfred, -1