2015-07-10 08:20:21 +00:00
|
|
|
OlivineLighthouse2F_MapScriptHeader:
|
2013-02-17 06:54:07 +00:00
|
|
|
; trigger count
|
|
|
|
db 0
|
|
|
|
|
|
|
|
; callback count
|
|
|
|
db 0
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerGentlemanAlfred:
|
2013-02-17 06:54:07 +00:00
|
|
|
; bit/flag number
|
2015-07-10 08:20:21 +00:00
|
|
|
dw EVENT_BEAT_GENTLEMAN_ALFRED
|
2013-02-17 06:54:07 +00:00
|
|
|
|
|
|
|
; 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 08:20:21 +00:00
|
|
|
GentlemanAlfredScript:
|
2013-02-17 06:54:07 +00:00
|
|
|
talkaftercancel
|
|
|
|
loadfont
|
2015-01-20 08:01:23 +00:00
|
|
|
writetext UnknownText_0x5b13e
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
loadmovesprites
|
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerSailorHuey1:
|
2013-02-17 06:54:07 +00:00
|
|
|
; bit/flag number
|
2015-07-10 08:20:21 +00:00
|
|
|
dw EVENT_BEAT_SAILOR_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
|
|
|
|
; 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 08:20:21 +00:00
|
|
|
SailorHuey1Script:
|
2015-07-10 02:08:03 +00:00
|
|
|
writecode VAR_CALLERID, $7
|
2013-02-17 06:54:07 +00:00
|
|
|
talkaftercancel
|
|
|
|
loadfont
|
2015-07-10 08:36:57 +00:00
|
|
|
checkflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
iftrue UnknownScript_0x5afc7
|
|
|
|
checkcellnum $7
|
|
|
|
iftrue UnknownScript_0x5b05f
|
2015-07-10 10:31:08 +00:00
|
|
|
checkevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
|
2013-02-17 06:54:07 +00:00
|
|
|
iftrue UnknownScript_0x5afb0
|
2015-07-10 10:31:08 +00:00
|
|
|
setevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
|
2015-01-20 08:01:23 +00:00
|
|
|
scall UnknownScript_0x5b053
|
|
|
|
jump UnknownScript_0x5afb3
|
2013-02-17 06:54:07 +00:00
|
|
|
|
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:
|
2013-02-17 06:54:07 +00:00
|
|
|
askforphonenumber $7
|
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5afc7:
|
2015-01-20 08:01:23 +00:00
|
|
|
scall UnknownScript_0x5b06b
|
2013-02-17 06:54:07 +00:00
|
|
|
winlosstext SailorHuey1BeatenText, $0000
|
2015-07-10 10:31:08 +00:00
|
|
|
copybytetovar HueyFightCount
|
|
|
|
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
|
2015-07-10 10:31:08 +00:00
|
|
|
iftrue .LoadFight3
|
|
|
|
.Fight2
|
2015-06-25 03:20:04 +00:00
|
|
|
checkevent EVENT_BEAT_ELITE_FOUR
|
2015-07-10 10:31:08 +00:00
|
|
|
iftrue .LoadFight2
|
|
|
|
.Fight1
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_CLEARED_RADIO_TOWER
|
2015-07-10 10:31:08 +00:00
|
|
|
iftrue .LoadFight1
|
|
|
|
.LoadFight0
|
2013-02-17 06:54:07 +00:00
|
|
|
loadtrainer SAILOR, HUEY1
|
|
|
|
startbattle
|
|
|
|
returnafterbattle
|
2015-07-10 10:31:08 +00:00
|
|
|
loadvar HueyFightCount, 1
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 10:31:08 +00:00
|
|
|
.LoadFight1
|
2013-02-17 06:54:07 +00:00
|
|
|
loadtrainer SAILOR, HUEY2
|
|
|
|
startbattle
|
|
|
|
returnafterbattle
|
2015-07-10 10:31:08 +00:00
|
|
|
loadvar HueyFightCount, 2
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 10:31:08 +00:00
|
|
|
.LoadFight2
|
2013-02-17 06:54:07 +00:00
|
|
|
loadtrainer SAILOR, HUEY3
|
|
|
|
startbattle
|
|
|
|
returnafterbattle
|
2015-07-10 10:31:08 +00:00
|
|
|
loadvar HueyFightCount, 3
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 10:31:08 +00:00
|
|
|
.LoadFight3
|
2013-02-17 06:54:07 +00:00
|
|
|
loadtrainer SAILOR, HUEY4
|
|
|
|
startbattle
|
|
|
|
returnafterbattle
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_HUEY_PROTEIN
|
2013-02-17 06:54:07 +00:00
|
|
|
iftrue UnknownScript_0x5b03f
|
2015-07-10 10:31:08 +00:00
|
|
|
checkevent EVENT_GOT_PROTEIN_FROM_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
iftrue UnknownScript_0x5b03e
|
2015-01-20 08:01:23 +00:00
|
|
|
scall UnknownScript_0x5b076
|
2013-02-17 06:54:07 +00:00
|
|
|
verbosegiveitem PROTEIN, 1
|
|
|
|
iffalse UnknownScript_0x5b06f
|
2015-07-10 10:31:08 +00:00
|
|
|
setevent EVENT_GOT_PROTEIN_FROM_HUEY
|
2015-01-20 08:01:23 +00:00
|
|
|
jump UnknownScript_0x5b05f
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b03e:
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b03f:
|
2013-02-17 06:54:07 +00:00
|
|
|
loadfont
|
2015-01-20 08:01:23 +00:00
|
|
|
writetext UnknownText_0x5b1b6
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
verbosegiveitem PROTEIN, 1
|
|
|
|
iffalse UnknownScript_0x5b06f
|
2013-09-24 07:48:58 +00:00
|
|
|
clearevent EVENT_HUEY_PROTEIN
|
|
|
|
setevent $0265
|
2015-01-20 08:01:23 +00:00
|
|
|
jump UnknownScript_0x5b05f
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b053:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd asknumber1m
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b057:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd asknumber2m
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b05b:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd registerednumberm
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b05f:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd numberacceptedm
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b063:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd numberdeclinedm
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b067:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd phonefullm
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b06b:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd rematchm
|
2013-02-17 06:54:07 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownScript_0x5b076:
|
2015-06-25 01:26:24 +00:00
|
|
|
jumpstd rematchgiftm
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
SailorHuey1SeenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Men of the sea are"
|
|
|
|
line "always spoiling"
|
|
|
|
cont "for a good fight!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
SailorHuey1BeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Urf!"
|
|
|
|
line "I lose!"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
|
|
|
; possibly unused
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownText_0x5b0be:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "What power!"
|
|
|
|
line "How would you like"
|
|
|
|
|
|
|
|
para "to sail the seas"
|
|
|
|
line "with me?"
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
GentlemanAlfredSeenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Hm? This is no"
|
|
|
|
line "place for playing."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
GentlemanAlfredBeatenText:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Ah! I can see that"
|
|
|
|
line "you're serious."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownText_0x5b13e:
|
2014-03-06 05:29:44 +00:00
|
|
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
UnknownText_0x5b1b6:
|
2014-03-06 05:29:44 +00:00
|
|
|
text "Man! You're as"
|
|
|
|
line "tough as ever!"
|
|
|
|
|
|
|
|
para "Anyway, here's"
|
|
|
|
line "that medicine from"
|
|
|
|
cont "before."
|
|
|
|
done
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
OlivineLighthouse2F_MapEventHeader:
|
2013-02-17 06:54:07 +00:00
|
|
|
; 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 21:06:11 +00: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
|