2019-04-21 14:42:25 -07:00
|
|
|
object_const_def ; object_event constants
|
2015-11-26 21:22:14 -08:00
|
|
|
const OLIVINELIGHTHOUSE2F_SAILOR
|
|
|
|
const OLIVINELIGHTHOUSE2F_GENTLEMAN
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
OlivineLighthouse2F_MapScripts:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; scene scripts
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; callbacks
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:20:21 -07:00
|
|
|
TrainerGentlemanAlfred:
|
2018-01-23 10:08:48 -08:00
|
|
|
trainer GENTLEMAN, ALFRED, EVENT_BEAT_GENTLEMAN_ALFRED, GentlemanAlfredSeenText, GentlemanAlfredBeatenText, 0, .Script
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-17 17:45:04 -08:00
|
|
|
.Script:
|
2018-02-02 18:09:17 -08:00
|
|
|
endifjustbattled
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2017-12-10 12:36:58 -08:00
|
|
|
writetext GentlemanAlfredAfterBattleText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
TrainerSailorHuey:
|
2018-02-25 17:39:54 -08:00
|
|
|
trainer SAILOR, HUEY1, EVENT_BEAT_SAILOR_HUEY, SailorHueySeenText, SailorHueyBeatenText, 0, .Script
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-17 17:45:04 -08:00
|
|
|
.Script:
|
2019-03-10 12:31:59 -07:00
|
|
|
loadvar VAR_CALLERID, PHONE_SAILOR_HUEY
|
2018-02-02 18:09:17 -08:00
|
|
|
endifjustbattled
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2015-07-10 01:36:57 -07:00
|
|
|
checkflag ENGINE_HUEY
|
2018-02-02 08:02:31 -08:00
|
|
|
iftrue .WantsBattle
|
2015-07-18 20:45:39 -07:00
|
|
|
checkcellnum PHONE_SAILOR_HUEY
|
2018-02-02 08:02:31 -08:00
|
|
|
iftrue .NumberAccepted
|
2015-07-10 03:31:08 -07:00
|
|
|
checkevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
|
2018-02-02 08:02:31 -08:00
|
|
|
iftrue .AskedBefore
|
2015-07-10 03:31:08 -07:00
|
|
|
setevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
|
2018-02-02 08:02:31 -08:00
|
|
|
scall .AskNumber1
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .AskForNumber
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.AskedBefore:
|
|
|
|
scall .AskNumber2
|
|
|
|
.AskForNumber:
|
2015-07-18 20:45:39 -07:00
|
|
|
askforphonenumber PHONE_SAILOR_HUEY
|
2018-02-25 17:39:54 -08:00
|
|
|
ifequal PHONE_CONTACTS_FULL, .PhoneFull
|
|
|
|
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
|
2019-03-10 12:31:59 -07:00
|
|
|
gettrainername STRING_BUFFER_3, SAILOR, HUEY1
|
2018-02-02 08:02:31 -08:00
|
|
|
scall .RegisteredNumber
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .NumberAccepted
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.WantsBattle:
|
|
|
|
scall .Rematch
|
|
|
|
winlosstext SailorHueyBeatenText, 0
|
2019-03-10 12:31:59 -07:00
|
|
|
readmem wHueyFightCount
|
2018-02-02 18:09:17 -08:00
|
|
|
ifequal 3, .Fight3
|
|
|
|
ifequal 2, .Fight2
|
|
|
|
ifequal 1, .Fight1
|
|
|
|
ifequal 0, .LoadFight0
|
2016-04-10 11:42:14 -07:00
|
|
|
.Fight3:
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_RESTORED_POWER_TO_KANTO
|
2015-07-10 03:31:08 -07:00
|
|
|
iftrue .LoadFight3
|
2016-04-10 11:42:14 -07:00
|
|
|
.Fight2:
|
2015-06-24 20:20:04 -07:00
|
|
|
checkevent EVENT_BEAT_ELITE_FOUR
|
2015-07-10 03:31:08 -07:00
|
|
|
iftrue .LoadFight2
|
2016-04-10 11:42:14 -07:00
|
|
|
.Fight1:
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_CLEARED_RADIO_TOWER
|
2015-07-10 03:31:08 -07:00
|
|
|
iftrue .LoadFight1
|
2016-04-10 11:42:14 -07:00
|
|
|
.LoadFight0:
|
2015-12-01 18:54:11 -08:00
|
|
|
loadtrainer SAILOR, HUEY1
|
2013-02-16 22:54:07 -08:00
|
|
|
startbattle
|
2015-12-26 15:11:55 -08:00
|
|
|
reloadmapafterbattle
|
2019-03-10 12:31:59 -07:00
|
|
|
loadmem wHueyFightCount, 1
|
2015-07-10 01:36:57 -07:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.LoadFight1:
|
2015-12-01 18:54:11 -08:00
|
|
|
loadtrainer SAILOR, HUEY2
|
2013-02-16 22:54:07 -08:00
|
|
|
startbattle
|
2015-12-26 15:11:55 -08:00
|
|
|
reloadmapafterbattle
|
2019-03-10 12:31:59 -07:00
|
|
|
loadmem wHueyFightCount, 2
|
2015-07-10 01:36:57 -07:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.LoadFight2:
|
2015-12-01 18:54:11 -08:00
|
|
|
loadtrainer SAILOR, HUEY3
|
2013-02-16 22:54:07 -08:00
|
|
|
startbattle
|
2015-12-26 15:11:55 -08:00
|
|
|
reloadmapafterbattle
|
2019-03-10 12:31:59 -07:00
|
|
|
loadmem wHueyFightCount, 3
|
2015-07-10 01:36:57 -07:00
|
|
|
clearflag ENGINE_HUEY
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 11:42:14 -07:00
|
|
|
.LoadFight3:
|
2015-12-01 18:54:11 -08:00
|
|
|
loadtrainer SAILOR, HUEY4
|
2013-02-16 22:54:07 -08:00
|
|
|
startbattle
|
2015-12-26 15:11:55 -08:00
|
|
|
reloadmapafterbattle
|
2015-07-10 01:36:57 -07:00
|
|
|
clearflag ENGINE_HUEY
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_HUEY_PROTEIN
|
2018-02-02 08:02:31 -08:00
|
|
|
iftrue .HasProtein
|
2015-07-10 03:31:08 -07:00
|
|
|
checkevent EVENT_GOT_PROTEIN_FROM_HUEY
|
2018-02-02 08:02:31 -08:00
|
|
|
iftrue .SkipGift
|
|
|
|
scall .RematchGift
|
2015-11-04 17:20:14 -08:00
|
|
|
verbosegiveitem PROTEIN
|
2018-02-02 08:02:31 -08:00
|
|
|
iffalse .PackFull
|
2015-07-10 03:31:08 -07:00
|
|
|
setevent EVENT_GOT_PROTEIN_FROM_HUEY
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .NumberAccepted
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.SkipGift:
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.HasProtein:
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2018-02-28 13:50:43 -08:00
|
|
|
writetext SailorHueyGiveProteinText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2015-11-04 17:20:14 -08:00
|
|
|
verbosegiveitem PROTEIN
|
2018-02-02 08:02:31 -08:00
|
|
|
iffalse .PackFull
|
2013-09-24 00:48:58 -07:00
|
|
|
clearevent EVENT_HUEY_PROTEIN
|
2015-07-11 23:00:17 -07:00
|
|
|
setevent EVENT_GOT_PROTEIN_FROM_HUEY
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .NumberAccepted
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.AskNumber1:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd AskNumber1MScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.AskNumber2:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd AskNumber2MScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.RegisteredNumber:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd RegisteredNumberMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.NumberAccepted:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd NumberAcceptedMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.NumberDeclined:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd NumberDeclinedMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.PhoneFull:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd PhoneFullMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.Rematch:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd RematchMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.PackFull:
|
2013-09-24 00:48:58 -07:00
|
|
|
setevent EVENT_HUEY_PROTEIN
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd PackFullMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
.RematchGift:
|
2020-06-10 13:44:16 -07:00
|
|
|
jumpstd RematchGiftMScript
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
SailorHueySeenText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Men of the sea are"
|
|
|
|
line "always spoiling"
|
|
|
|
cont "for a good fight!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-02 08:02:31 -08:00
|
|
|
SailorHueyBeatenText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Urf!"
|
|
|
|
line "I lose!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-02-27 16:47:30 -08:00
|
|
|
SailorHueyUnusedText:
|
2018-01-02 10:38:56 -08:00
|
|
|
; unused
|
2014-03-05 21:29:44 -08:00
|
|
|
text "What power!"
|
|
|
|
line "How would you like"
|
|
|
|
|
|
|
|
para "to sail the seas"
|
|
|
|
line "with me?"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:20:21 -07:00
|
|
|
GentlemanAlfredSeenText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Hm? This is no"
|
|
|
|
line "place for playing."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-10 01:20:21 -07:00
|
|
|
GentlemanAlfredBeatenText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Ah! I can see that"
|
|
|
|
line "you're serious."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-10 12:36:58 -08:00
|
|
|
GentlemanAlfredAfterBattleText:
|
2014-03-05 21:29:44 -08: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-16 22:54:07 -08:00
|
|
|
|
2018-02-28 13:50:43 -08:00
|
|
|
SailorHueyGiveProteinText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Man! You're as"
|
|
|
|
line "tough as ever!"
|
|
|
|
|
|
|
|
para "Anyway, here's"
|
|
|
|
line "that medicine from"
|
|
|
|
cont "before."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
OlivineLighthouse2F_MapEvents:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0, 0 ; filler
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 6 ; warp events
|
2018-02-01 19:22:07 -08:00
|
|
|
warp_event 3, 11, OLIVINE_LIGHTHOUSE_1F, 3
|
|
|
|
warp_event 5, 3, OLIVINE_LIGHTHOUSE_3F, 2
|
2018-02-01 18:54:00 -08: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-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; coord events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; bg events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 2 ; object events
|
2018-02-25 17:39:54 -08:00
|
|
|
object_event 9, 3, SPRITE_SAILOR, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerSailorHuey, -1
|
2018-02-01 19:22:07 -08:00
|
|
|
object_event 17, 8, SPRITE_GENTLEMAN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerGentlemanAlfred, -1
|