2018-01-31 16:38:45 +00:00
|
|
|
const_def 2 ; object constants
|
2015-11-27 05:22:14 +00:00
|
|
|
const OLIVINELIGHTHOUSE2F_SAILOR
|
|
|
|
const OLIVINELIGHTHOUSE2F_GENTLEMAN
|
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
OlivineLighthouse2F_MapScripts:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; scene scripts
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; callbacks
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerGentlemanAlfred:
|
2018-01-23 18:08:48 +00:00
|
|
|
trainer GENTLEMAN, ALFRED, EVENT_BEAT_GENTLEMAN_ALFRED, GentlemanAlfredSeenText, GentlemanAlfredBeatenText, 0, .Script
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 01:45:04 +00:00
|
|
|
.Script:
|
2018-02-03 02:09:17 +00:00
|
|
|
endifjustbattled
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-07-10 08:20:21 +00:00
|
|
|
TrainerSailorHuey1:
|
2018-01-23 18:08:48 +00:00
|
|
|
trainer SAILOR, HUEY1, EVENT_BEAT_SAILOR_HUEY, SailorHuey1SeenText, SailorHuey1BeatenText, 0, .Script
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2017-12-18 01:45:04 +00:00
|
|
|
.Script:
|
2015-07-19 03:45:39 +00:00
|
|
|
writecode VAR_CALLERID, PHONE_SAILOR_HUEY
|
2018-02-03 02:09:17 +00:00
|
|
|
endifjustbattled
|
2015-12-09 23:25:44 +00:00
|
|
|
opentext
|
2015-07-10 08:36:57 +00:00
|
|
|
checkflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
iftrue UnknownScript_0x5afc7
|
2015-07-19 03:45:39 +00:00
|
|
|
checkcellnum PHONE_SAILOR_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
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:
|
2015-07-19 03:45:39 +00:00
|
|
|
askforphonenumber PHONE_SAILOR_HUEY
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal PHONE_CONTACTS_FULL, UnknownScript_0x5b067
|
|
|
|
ifequal PHONE_CONTACT_REFUSED, UnknownScript_0x5b063
|
2018-01-12 06:40:20 +00:00
|
|
|
trainertotext SAILOR, HUEY1, MEM_BUFFER_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
|
2015-11-02 19:37:02 +00:00
|
|
|
winlosstext SailorHuey1BeatenText, 0
|
2015-07-10 20:04:00 +00:00
|
|
|
copybytetovar wHueyFightCount
|
2018-02-03 02:09:17 +00:00
|
|
|
ifequal 3, .Fight3
|
|
|
|
ifequal 2, .Fight2
|
|
|
|
ifequal 1, .Fight1
|
|
|
|
ifequal 0, .LoadFight0
|
2016-04-10 18:42:14 +00:00
|
|
|
.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
|
2016-04-10 18:42:14 +00:00
|
|
|
.Fight2:
|
2015-06-25 03:20:04 +00:00
|
|
|
checkevent EVENT_BEAT_ELITE_FOUR
|
2015-07-10 10:31:08 +00:00
|
|
|
iftrue .LoadFight2
|
2016-04-10 18:42:14 +00:00
|
|
|
.Fight1:
|
2013-09-24 07:48:58 +00:00
|
|
|
checkevent EVENT_CLEARED_RADIO_TOWER
|
2015-07-10 10:31:08 +00:00
|
|
|
iftrue .LoadFight1
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight0:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer SAILOR, HUEY1
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2015-07-10 20:04:00 +00:00
|
|
|
loadvar wHueyFightCount, 1
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight1:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer SAILOR, HUEY2
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2015-07-10 20:04:00 +00:00
|
|
|
loadvar wHueyFightCount, 2
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight2:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer SAILOR, HUEY3
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
2015-07-10 20:04:00 +00:00
|
|
|
loadvar wHueyFightCount, 3
|
2015-07-10 08:36:57 +00:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-17 06:54:07 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.LoadFight3:
|
2015-12-02 02:54:11 +00:00
|
|
|
loadtrainer SAILOR, HUEY4
|
2013-02-17 06:54:07 +00:00
|
|
|
startbattle
|
2015-12-26 23:11:55 +00:00
|
|
|
reloadmapafterbattle
|
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
|
2015-11-05 01:20:14 +00:00
|
|
|
verbosegiveitem PROTEIN
|
2013-02-17 06:54:07 +00:00
|
|
|
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:
|
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
|
2013-02-17 06:54:07 +00:00
|
|
|
iffalse UnknownScript_0x5b06f
|
2013-09-24 07:48:58 +00:00
|
|
|
clearevent EVENT_HUEY_PROTEIN
|
2015-07-12 06:00:17 +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_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
|
|
|
|
2018-01-02 18:38:56 +00:00
|
|
|
; unused
|
|
|
|
UnusedText_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
|
|
|
|
2017-12-10 20:36:58 +00:00
|
|
|
GentlemanAlfredAfterBattleText:
|
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
|
|
|
|
2018-01-17 03:57:19 +00:00
|
|
|
OlivineLighthouse2F_MapEvents:
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0, 0 ; filler
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 6 ; warp events
|
2018-02-02 03:22:07 +00:00
|
|
|
warp_event 3, 11, OLIVINE_LIGHTHOUSE_1F, 3
|
|
|
|
warp_event 5, 3, OLIVINE_LIGHTHOUSE_3F, 2
|
2018-02-02 02:54:00 +00:00
|
|
|
warp_event 16, 13, OLIVINE_LIGHTHOUSE_1F, 4
|
|
|
|
warp_event 17, 13, OLIVINE_LIGHTHOUSE_1F, 5
|
|
|
|
warp_event 16, 11, OLIVINE_LIGHTHOUSE_3F, 4
|
|
|
|
warp_event 17, 11, OLIVINE_LIGHTHOUSE_3F, 5
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; coord events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 0 ; bg events
|
2013-02-17 06:54:07 +00:00
|
|
|
|
2018-01-30 19:15:47 +00:00
|
|
|
db 2 ; object events
|
2018-02-02 03:22:07 +00:00
|
|
|
object_event 9, 3, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSailorHuey1, -1
|
|
|
|
object_event 17, 8, SPRITE_GENTLEMAN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerGentlemanAlfred, -1
|