pokecrystal/maps/OlivineLighthouse2F.asm

223 lines
4.3 KiB
NASM
Raw Normal View History

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
OlivineLighthouse2F_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
2015-07-10 08:20:21 +00:00
TrainerGentlemanAlfred:
trainer GENTLEMAN, ALFRED, EVENT_BEAT_GENTLEMAN_ALFRED, GentlemanAlfredSeenText, GentlemanAlfredBeatenText, 0, .Script
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
closetext
end
2018-02-02 16:02:31 +00:00
TrainerSailorHuey:
trainer SAILOR, HUEY1, EVENT_BEAT_SAILOR_HUEY, SailorHueySeenText, SailorHueyBeatenText, 0, .Script
2017-12-18 01:45:04 +00:00
.Script:
writecode VAR_CALLERID, PHONE_SAILOR_HUEY
2018-02-03 02:09:17 +00:00
endifjustbattled
2015-12-09 23:25:44 +00:00
opentext
checkflag ENGINE_HUEY
2018-02-02 16:02:31 +00:00
iftrue .WantsBattle
checkcellnum PHONE_SAILOR_HUEY
2018-02-02 16:02:31 +00:00
iftrue .NumberAccepted
checkevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
2018-02-02 16:02:31 +00:00
iftrue .AskedBefore
setevent EVENT_HUEY_ASKED_FOR_PHONE_NUMBER
2018-02-02 16:02:31 +00:00
scall .AskNumber1
jump .AskForNumber
2018-02-02 16:02:31 +00:00
.AskedBefore:
scall .AskNumber2
.AskForNumber:
askforphonenumber PHONE_SAILOR_HUEY
ifequal PHONE_CONTACTS_FULL, .PhoneFull
ifequal PHONE_CONTACT_REFUSED, .NumberDeclined
2018-01-12 06:40:20 +00:00
trainertotext SAILOR, HUEY1, MEM_BUFFER_0
2018-02-02 16:02:31 +00:00
scall .RegisteredNumber
jump .NumberAccepted
2018-02-02 16:02:31 +00:00
.WantsBattle:
scall .Rematch
winlosstext SailorHueyBeatenText, 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
.Fight3:
2013-09-24 07:48:58 +00:00
checkevent EVENT_RESTORED_POWER_TO_KANTO
iftrue .LoadFight3
.Fight2:
2015-06-25 03:20:04 +00:00
checkevent EVENT_BEAT_ELITE_FOUR
iftrue .LoadFight2
.Fight1:
2013-09-24 07:48:58 +00:00
checkevent EVENT_CLEARED_RADIO_TOWER
iftrue .LoadFight1
.LoadFight0:
loadtrainer SAILOR, HUEY1
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 1
clearflag ENGINE_HUEY
end
.LoadFight1:
loadtrainer SAILOR, HUEY2
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 2
clearflag ENGINE_HUEY
end
.LoadFight2:
loadtrainer SAILOR, HUEY3
startbattle
reloadmapafterbattle
2015-07-10 20:04:00 +00:00
loadvar wHueyFightCount, 3
clearflag ENGINE_HUEY
end
.LoadFight3:
loadtrainer SAILOR, HUEY4
startbattle
reloadmapafterbattle
clearflag ENGINE_HUEY
2013-09-24 07:48:58 +00:00
checkevent EVENT_HUEY_PROTEIN
2018-02-02 16:02:31 +00:00
iftrue .HasProtein
checkevent EVENT_GOT_PROTEIN_FROM_HUEY
2018-02-02 16:02:31 +00:00
iftrue .SkipGift
scall .RematchGift
2015-11-05 01:20:14 +00:00
verbosegiveitem PROTEIN
2018-02-02 16:02:31 +00:00
iffalse .PackFull
setevent EVENT_GOT_PROTEIN_FROM_HUEY
2018-02-02 16:02:31 +00:00
jump .NumberAccepted
2018-02-02 16:02:31 +00:00
.SkipGift:
end
2018-02-02 16:02:31 +00:00
.HasProtein:
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
2018-02-02 16:02:31 +00:00
iffalse .PackFull
2013-09-24 07:48:58 +00:00
clearevent EVENT_HUEY_PROTEIN
setevent EVENT_GOT_PROTEIN_FROM_HUEY
2018-02-02 16:02:31 +00:00
jump .NumberAccepted
2018-02-02 16:02:31 +00:00
.AskNumber1:
2015-06-25 01:26:24 +00:00
jumpstd asknumber1m
end
2018-02-02 16:02:31 +00:00
.AskNumber2:
2015-06-25 01:26:24 +00:00
jumpstd asknumber2m
end
2018-02-02 16:02:31 +00:00
.RegisteredNumber:
2015-06-25 01:26:24 +00:00
jumpstd registerednumberm
end
2018-02-02 16:02:31 +00:00
.NumberAccepted:
2015-06-25 01:26:24 +00:00
jumpstd numberacceptedm
end
2018-02-02 16:02:31 +00:00
.NumberDeclined:
2015-06-25 01:26:24 +00:00
jumpstd numberdeclinedm
end
2018-02-02 16:02:31 +00:00
.PhoneFull:
2015-06-25 01:26:24 +00:00
jumpstd phonefullm
end
2018-02-02 16:02:31 +00:00
.Rematch:
2015-06-25 01:26:24 +00:00
jumpstd rematchm
end
2018-02-02 16:02:31 +00:00
.PackFull:
2013-09-24 07:48:58 +00:00
setevent EVENT_HUEY_PROTEIN
2015-06-25 01:26:24 +00:00
jumpstd packfullm
end
2018-02-02 16:02:31 +00:00
.RematchGift:
2015-06-25 01:26:24 +00:00
jumpstd rematchgiftm
end
2018-02-02 16:02:31 +00:00
SailorHueySeenText:
text "Men of the sea are"
line "always spoiling"
cont "for a good fight!"
done
2018-02-02 16:02:31 +00:00
SailorHueyBeatenText:
text "Urf!"
line "I lose!"
done
; unused
UnusedText_0x5b0be:
text "What power!"
line "How would you like"
para "to sail the seas"
line "with me?"
done
2015-07-10 08:20:21 +00:00
GentlemanAlfredSeenText:
text "Hm? This is no"
line "place for playing."
done
2015-07-10 08:20:21 +00:00
GentlemanAlfredBeatenText:
text "Ah! I can see that"
line "you're serious."
done
2017-12-10 20:36:58 +00: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
2015-07-10 08:20:21 +00:00
UnknownText_0x5b1b6:
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-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
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-02 03:22:07 +00:00
object_event 17, 8, SPRITE_GENTLEMAN, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 3, TrainerGentlemanAlfred, -1