pokecrystal-board/maps/OlivineLighthouse2F.asm

258 lines
4.8 KiB
NASM
Raw Normal View History

2015-07-10 01:20:21 -07:00
OlivineLighthouse2F_MapScriptHeader:
; trigger count
db 0
; callback count
db 0
2015-07-10 01:20:21 -07:00
TrainerGentlemanAlfred:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_GENTLEMAN_ALFRED
; trainer group && trainer id
db GENTLEMAN, ALFRED
; text when seen
dw GentlemanAlfredSeenText
; text when trainer beaten
dw GentlemanAlfredBeatenText
; script when lost
dw $0000
; script when talk again
dw GentlemanAlfredScript
2015-07-10 01:20:21 -07:00
GentlemanAlfredScript:
talkaftercancel
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5b13e
closetext
loadmovesprites
end
2015-07-10 01:20:21 -07:00
TrainerSailorHuey1:
; bit/flag number
2015-07-10 01:20:21 -07:00
dw EVENT_BEAT_SAILOR_HUEY
; trainer group && trainer id
db SAILOR, HUEY1
; text when seen
dw SailorHuey1SeenText
; text when trainer beaten
dw SailorHuey1BeatenText
; script when lost
dw $0000
; script when talk again
dw SailorHuey1Script
2015-07-10 01:20:21 -07:00
SailorHuey1Script:
writecode VAR_CALLERID, $7
talkaftercancel
loadfont
checkflag ENGINE_HUEY
iftrue UnknownScript_0x5afc7
checkcellnum $7
iftrue UnknownScript_0x5b05f
2013-09-24 00:48:58 -07:00
checkevent $0263
iftrue UnknownScript_0x5afb0
2013-09-24 00:48:58 -07:00
setevent $0263
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5b053
jump UnknownScript_0x5afb3
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afb0:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5b057
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afb3:
askforphonenumber $7
if_equal $1, UnknownScript_0x5b067
if_equal $2, UnknownScript_0x5b063
trainertotext SAILOR, HUEY1, $0
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5b05b
jump UnknownScript_0x5b05f
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afc7:
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5b06b
winlosstext SailorHuey1BeatenText, $0000
2015-02-10 15:37:24 -08:00
copybytetovar wd9f4
if_equal $3, UnknownScript_0x5afe2
if_equal $2, UnknownScript_0x5afe8
if_equal $1, UnknownScript_0x5afee
if_equal $0, UnknownScript_0x5aff4
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afe2:
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue UnknownScript_0x5b01b
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afe8:
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue UnknownScript_0x5b00e
2015-07-10 01:20:21 -07:00
UnknownScript_0x5afee:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue UnknownScript_0x5b001
2015-07-10 01:20:21 -07:00
UnknownScript_0x5aff4:
loadtrainer SAILOR, HUEY1
startbattle
returnafterbattle
2015-02-10 15:37:24 -08:00
loadvar wd9f4, $1
clearflag ENGINE_HUEY
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b001:
loadtrainer SAILOR, HUEY2
startbattle
returnafterbattle
2015-02-10 15:37:24 -08:00
loadvar wd9f4, $2
clearflag ENGINE_HUEY
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b00e:
loadtrainer SAILOR, HUEY3
startbattle
returnafterbattle
2015-02-10 15:37:24 -08:00
loadvar wd9f4, $3
clearflag ENGINE_HUEY
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b01b:
loadtrainer SAILOR, HUEY4
startbattle
returnafterbattle
clearflag ENGINE_HUEY
2013-09-24 00:48:58 -07:00
checkevent EVENT_HUEY_PROTEIN
iftrue UnknownScript_0x5b03f
2013-09-24 00:48:58 -07:00
checkevent $0265
iftrue UnknownScript_0x5b03e
2015-01-20 00:01:23 -08:00
scall UnknownScript_0x5b076
verbosegiveitem PROTEIN, 1
iffalse UnknownScript_0x5b06f
2013-09-24 00:48:58 -07:00
setevent $0265
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x5b05f
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b03e:
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b03f:
loadfont
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5b1b6
closetext
verbosegiveitem PROTEIN, 1
iffalse UnknownScript_0x5b06f
2013-09-24 00:48:58 -07:00
clearevent EVENT_HUEY_PROTEIN
setevent $0265
2015-01-20 00:01:23 -08:00
jump UnknownScript_0x5b05f
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b053:
2015-06-24 18:26:24 -07:00
jumpstd asknumber1m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b057:
2015-06-24 18:26:24 -07:00
jumpstd asknumber2m
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b05b:
2015-06-24 18:26:24 -07:00
jumpstd registerednumberm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b05f:
2015-06-24 18:26:24 -07:00
jumpstd numberacceptedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b063:
2015-06-24 18:26:24 -07:00
jumpstd numberdeclinedm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b067:
2015-06-24 18:26:24 -07:00
jumpstd phonefullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b06b:
2015-06-24 18:26:24 -07:00
jumpstd rematchm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b06f:
2013-09-24 00:48:58 -07:00
setevent EVENT_HUEY_PROTEIN
2015-06-24 18:26:24 -07:00
jumpstd packfullm
end
2015-07-10 01:20:21 -07:00
UnknownScript_0x5b076:
2015-06-24 18:26:24 -07:00
jumpstd rematchgiftm
end
2015-07-10 01:20:21 -07:00
SailorHuey1SeenText:
text "Men of the sea are"
line "always spoiling"
cont "for a good fight!"
done
2015-07-10 01:20:21 -07:00
SailorHuey1BeatenText:
text "Urf!"
line "I lose!"
done
; possibly unused
2015-07-10 01:20:21 -07:00
UnknownText_0x5b0be:
text "What power!"
line "How would you like"
para "to sail the seas"
line "with me?"
done
2015-07-10 01:20:21 -07:00
GentlemanAlfredSeenText:
text "Hm? This is no"
line "place for playing."
done
2015-07-10 01:20:21 -07:00
GentlemanAlfredBeatenText:
text "Ah! I can see that"
line "you're serious."
done
2015-07-10 01:20:21 -07:00
UnknownText_0x5b13e:
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 01:20:21 -07: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 01:20:21 -07:00
OlivineLighthouse2F_MapEventHeader:
; filler
db 0, 0
; warps
db 6
warp_def $b, $3, 3, GROUP_OLIVINE_LIGHTHOUSE_1F, MAP_OLIVINE_LIGHTHOUSE_1F
warp_def $3, $5, 2, GROUP_OLIVINE_LIGHTHOUSE_3F, MAP_OLIVINE_LIGHTHOUSE_3F
warp_def $d, $10, 4, GROUP_OLIVINE_LIGHTHOUSE_1F, MAP_OLIVINE_LIGHTHOUSE_1F
warp_def $d, $11, 5, GROUP_OLIVINE_LIGHTHOUSE_1F, MAP_OLIVINE_LIGHTHOUSE_1F
warp_def $b, $10, 4, GROUP_OLIVINE_LIGHTHOUSE_3F, MAP_OLIVINE_LIGHTHOUSE_3F
warp_def $b, $11, 5, GROUP_OLIVINE_LIGHTHOUSE_3F, MAP_OLIVINE_LIGHTHOUSE_3F
; xy triggers
db 0
; signposts
db 0
; people-events
db 2
2013-07-12 14:06:11 -07:00
person_event SPRITE_SAILOR, 7, 13, $9, $0, 255, 255, $92, 3, TrainerSailorHuey1, $ffff
person_event SPRITE_GENTLEMAN, 12, 21, $8, $0, 255, 255, $92, 3, TrainerGentlemanAlfred, $ffff