pokecrystal-board/maps/OlivineLighthouse2F.asm

223 lines
4.4 KiB
NASM
Raw Normal View History

object_const_def ; object_event constants
2015-11-26 21:22:14 -08:00
const OLIVINELIGHTHOUSE2F_SAILOR
const OLIVINELIGHTHOUSE2F_GENTLEMAN
OlivineLighthouse2F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2015-07-10 01:20:21 -07:00
TrainerGentlemanAlfred:
trainer GENTLEMAN, ALFRED, EVENT_BEAT_GENTLEMAN_ALFRED, GentlemanAlfredSeenText, GentlemanAlfredBeatenText, 0, .Script
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
closetext
end
2018-02-02 08:02:31 -08:00
TrainerSailorHuey:
trainer SAILOR, HUEY1, EVENT_BEAT_SAILOR_HUEY, SailorHueySeenText, SailorHueyBeatenText, 0, .Script
2017-12-17 17:45:04 -08:00
.Script:
loadvar VAR_CALLERID, PHONE_SAILOR_HUEY
2018-02-02 18:09:17 -08:00
endifjustbattled
2015-12-09 15:25:44 -08:00
opentext
checkflag ENGINE_HUEY
2018-02-02 08:02:31 -08:00
iftrue .WantsBattle
checkcellnum PHONE_SAILOR_HUEY
2018-02-02 08:02:31 -08:00
iftrue .NumberAccepted
checkevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
2018-02-02 08:02:31 -08:00
iftrue .AskedBefore
setevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
2018-02-02 08:02:31 -08:00
scall .AskNumber1
sjump .AskForNumber
2018-02-02 08:02:31 -08:00
.AskedBefore:
scall .AskNumber2
.AskForNumber:
askforphonenumber PHONE_SAILOR_HUEY
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
gettrainername STRING_BUFFER_3, SAILOR, HUEY1
2018-02-02 08:02:31 -08:00
scall .RegisteredNumber
sjump .NumberAccepted
2018-02-02 08:02:31 -08:00
.WantsBattle:
scall .Rematch
winlosstext SailorHueyBeatenText, 0
readmem wHueyFightCount
2018-02-02 18:09:17 -08:00
ifequal 3, .Fight3
ifequal 2, .Fight2
ifequal 1, .Fight1
ifequal 0, .LoadFight0
.Fight3:
2013-09-24 00:48:58 -07:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight3
.Fight2:
2015-06-24 20:20:04 -07:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight2
.Fight1:
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight1
.LoadFight0:
loadtrainer SAILOR, HUEY1
startbattle
reloadmapafterbattle
loadmem wHueyFightCount, 1
clearflag ENGINE_HUEY
end
.LoadFight1:
loadtrainer SAILOR, HUEY2
startbattle
reloadmapafterbattle
loadmem wHueyFightCount, 2
clearflag ENGINE_HUEY
end
.LoadFight2:
loadtrainer SAILOR, HUEY3
startbattle
reloadmapafterbattle
loadmem wHueyFightCount, 3
clearflag ENGINE_HUEY
end
.LoadFight3:
loadtrainer SAILOR, HUEY4
startbattle
reloadmapafterbattle
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
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
setevent EVENT_GOT_PROTEIN_FROM_HUEY
sjump .NumberAccepted
2018-02-02 08:02:31 -08:00
.SkipGift:
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
setevent EVENT_GOT_PROTEIN_FROM_HUEY
sjump .NumberAccepted
2018-02-02 08:02:31 -08:00
.AskNumber1:
jumpstd AskNumber1MScript
end
2018-02-02 08:02:31 -08:00
.AskNumber2:
jumpstd AskNumber2MScript
end
2018-02-02 08:02:31 -08:00
.RegisteredNumber:
jumpstd RegisteredNumberMScript
end
2018-02-02 08:02:31 -08:00
.NumberAccepted:
jumpstd NumberAcceptedMScript
end
2018-02-02 08:02:31 -08:00
.NumberDeclined:
jumpstd NumberDeclinedMScript
end
2018-02-02 08:02:31 -08:00
.PhoneFull:
jumpstd PhoneFullMScript
end
2018-02-02 08:02:31 -08:00
.Rematch:
jumpstd RematchMScript
end
2018-02-02 08:02:31 -08:00
.PackFull:
2013-09-24 00:48:58 -07:00
setevent EVENT_HUEY_PROTEIN
jumpstd PackFullMScript
end
2018-02-02 08:02:31 -08:00
.RematchGift:
jumpstd RematchGiftMScript
end
2018-02-02 08:02:31 -08:00
SailorHueySeenText:
text "Men of the sea are"
line "always spoiling"
cont "for a good fight!"
done
2018-02-02 08:02:31 -08:00
SailorHueyBeatenText:
text "Urf!"
line "I lose!"
done
2018-02-27 16:47:30 -08:00
SailorHueyUnusedText:
; unused
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
2017-12-10 12:36:58 -08: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
2018-02-28 13:50:43 -08:00
SailorHueyGiveProteinText:
text "Man! You're as"
line "tough as ever!"
para "Anyway, here's"
line "that medicine from"
cont "before."
done
OlivineLighthouse2F_MapEvents:
db 0, 0 ; filler
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
db 0 ; coord events
db 0 ; bg events
db 2 ; object events
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