pokecrystal-board/maps/BlackthornCity.asm

347 lines
7.5 KiB
NASM
Raw Normal View History

2018-01-31 08:38:45 -08:00
const_def 2 ; object constants
2015-11-26 21:22:14 -08:00
const BLACKTHORNCITY_SUPER_NERD1
const BLACKTHORNCITY_SUPER_NERD2
const BLACKTHORNCITY_GRAMPS1
const BLACKTHORNCITY_GRAMPS2
const BLACKTHORNCITY_BLACK_BELT
const BLACKTHORNCITY_COOLTRAINER_F1
const BLACKTHORNCITY_YOUNGSTER1
2016-04-06 21:59:45 -07:00
const BLACKTHORNCITY_SANTOS
2015-11-26 21:22:14 -08:00
const BLACKTHORNCITY_COOLTRAINER_F2
BlackthornCity_MapScripts:
db 0 ; scene scripts
db 2 ; callbacks
callback MAPCALLBACK_NEWMAP, .FlyPoint
callback MAPCALLBACK_OBJECTS, .Santos
.FlyPoint:
2015-06-25 22:30:16 -07:00
setflag ENGINE_FLYPOINT_BLACKTHORN
return
.Santos:
checkcode VAR_WEEKDAY
2018-02-02 18:09:17 -08:00
ifequal SATURDAY, .SantosAppears
2016-04-06 21:59:45 -07:00
disappear BLACKTHORNCITY_SANTOS
return
.SantosAppears:
2016-04-06 21:59:45 -07:00
appear BLACKTHORNCITY_SANTOS
return
2015-12-15 07:55:56 -08:00
BlackthornSuperNerdScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_BEAT_CLAIR
2015-12-15 07:55:56 -08:00
iftrue .BeatClair
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
2015-12-15 07:55:56 -08:00
iftrue .ClearedRadioTower
writetext Text_ClairIsOut
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
.ClearedRadioTower:
writetext Text_ClairIsIn
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
.BeatClair:
writetext Text_ClairIsBeaten
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
BlackthornGramps1Script:
jumptextfaceplayer BlackthornGrampsRefusesEntryText
2015-12-15 07:55:56 -08:00
BlackthornGramps2Script:
jumptextfaceplayer BlackthornGrampsGrantsEntryText
2015-12-15 07:55:56 -08:00
BlackthornBlackBeltScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_CLEARED_RADIO_TOWER
2015-12-15 07:55:56 -08:00
iftrue .ClearedRadioTower
writetext BlackBeltText_WeirdRadio
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
.ClearedRadioTower:
writetext BlackBeltText_VoicesInMyHead
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-12-15 07:55:56 -08:00
BlackthornCooltrainerF1Script:
jumptextfaceplayer BlackthornCooltrainerF1Text
2015-12-15 07:55:56 -08:00
BlackthornYoungsterScript:
jumptextfaceplayer BlackthornYoungsterText
2015-12-15 07:55:56 -08:00
BlackthornCooltrainerF2Script:
jumptextfaceplayer BlackthornCooltrainerF2Text
2014-10-26 18:37:15 -07:00
SantosScript:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_SPELL_TAG_FROM_SANTOS
2015-12-15 07:55:56 -08:00
iftrue .Saturday
checkcode VAR_WEEKDAY
2018-02-02 18:09:17 -08:00
ifnotequal SATURDAY, .NotSaturday
2013-09-24 00:48:58 -07:00
checkevent EVENT_MET_SANTOS_OF_SATURDAY
2014-10-26 18:37:15 -07:00
iftrue .MetSantos
2015-01-20 00:01:23 -08:00
writetext MeetSantosText
2015-11-29 19:29:45 -08:00
buttonsound
2013-09-24 00:48:58 -07:00
setevent EVENT_MET_SANTOS_OF_SATURDAY
.MetSantos:
2015-01-20 00:01:23 -08:00
writetext SantosGivesGiftText
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem SPELL_TAG
2015-12-15 07:55:56 -08:00
iffalse .Done
2013-09-24 00:48:58 -07:00
setevent EVENT_GOT_SPELL_TAG_FROM_SANTOS
2015-01-20 00:01:23 -08:00
writetext SantosGaveGiftText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.Saturday:
2015-01-20 00:01:23 -08:00
writetext SantosSaturdayText
2015-11-25 07:16:29 -08:00
waitbutton
.Done:
2015-11-25 07:16:29 -08:00
closetext
end
.NotSaturday:
2015-01-20 00:01:23 -08:00
writetext SantosNotSaturdayText
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
BlackthornCitySign:
jumptext BlackthornCitySignText
2015-06-25 21:01:08 -07:00
BlackthornGymSign:
jumptext BlackthornGymSignText
2015-06-25 21:01:08 -07:00
MoveDeletersHouseSign:
jumptext MoveDeletersHouseSignText
2015-06-25 21:01:08 -07:00
DragonDensSign:
jumptext DragonDensSignText
2015-06-25 21:01:08 -07:00
BlackthornCityTrainerTips:
jumptext BlackthornCityTrainerTipsText
BlackthornCityPokecenterSign:
2015-06-23 14:02:58 -07:00
jumpstd pokecentersign
2015-06-25 21:01:08 -07:00
BlackthornCityMartSign:
2015-06-23 14:02:58 -07:00
jumpstd martsign
2015-12-15 07:55:56 -08:00
Text_ClairIsOut:
text "I am sorry."
para "CLAIR, our GYM"
line "LEADER, entered"
para "the DRAGON'S DEN"
line "behind the GYM."
para "I have no idea"
line "when our LEADER"
cont "will return."
done
2015-12-15 07:55:56 -08:00
Text_ClairIsIn:
text "CLAIR, our GYM"
line "LEADER, is waiting"
cont "for you."
para "However, it would"
line "be impossible for"
para "a run-of-the-mill"
line "trainer to win."
done
2015-12-15 07:55:56 -08:00
Text_ClairIsBeaten:
text "You defeated"
line "CLAIR?"
para "That's amazing!"
para "I've never heard"
line "of her losing to"
para "anyone other than"
line "LANCE."
done
2015-12-15 07:55:56 -08:00
BlackthornGrampsRefusesEntryText:
text "No. Only chosen"
line "trainers may train"
para "here."
line "Please leave."
done
2015-12-15 07:55:56 -08:00
BlackthornGrampsGrantsEntryText:
text "If CLAIR allows"
line "it, her grand-"
cont "father--our MASTER"
cont "--will also."
para "You may enter."
done
2015-12-15 07:55:56 -08:00
BlackBeltText_WeirdRadio:
text "My radio's busted?"
line "Lately, I only get"
cont "this weird signal."
done
2015-12-15 07:55:56 -08:00
BlackBeltText_VoicesInMyHead:
text "Arooo! Voices in"
line "my head!"
para "Huh? I'm listening"
line "to my radio!"
done
2015-12-15 07:55:56 -08:00
BlackthornCooltrainerF1Text:
text "Are you going to"
line "make your #MON"
cont "forget some moves?"
done
2015-12-15 07:55:56 -08:00
BlackthornYoungsterText:
text "Dragon masters all"
line "come from the city"
cont "of BLACKTHORN."
done
2014-10-26 18:37:15 -07:00
MeetSantosText:
text "SANTOS: …"
para "It's Saturday…"
para "I'm SANTOS of"
line "Saturday…"
done
2014-10-26 18:37:15 -07:00
SantosGivesGiftText:
text "You can have this…"
done
2014-10-26 18:37:15 -07:00
SantosGaveGiftText:
text "SANTOS: …"
para "SPELL TAG…"
para "Ghost-type moves"
line "get stronger…"
para "It will frighten"
line "you…"
done
2014-10-26 18:37:15 -07:00
SantosSaturdayText:
text "SANTOS: …"
para "See you again on"
line "another Saturday…"
para "I won't have any"
line "more gifts…"
done
2014-10-26 18:37:15 -07:00
SantosNotSaturdayText:
text "SANTOS: Today's"
line "not Saturday…"
done
2015-12-15 07:55:56 -08:00
BlackthornCooltrainerF2Text:
text "Wow, you came"
line "through the ICE"
cont "PATH?"
para "You must be a real"
line "hotshot trainer!"
done
2015-06-25 21:01:08 -07:00
BlackthornCitySignText:
text "BLACKTHORN CITY"
para "A Quiet Mountain"
line "Retreat"
done
2015-06-25 22:30:16 -07:00
BlackthornGymSignText:
text "BLACKTHORN CITY"
line "#MON GYM"
cont "LEADER: CLAIR"
para "The Blessed User"
line "of Dragon #MON"
done
2015-06-25 21:01:08 -07:00
MoveDeletersHouseSignText:
text "MOVE DELETER'S"
line "HOUSE"
done
2015-06-25 21:01:08 -07:00
DragonDensSignText:
text "DRAGON'S DEN"
line "AHEAD"
done
2015-06-25 22:30:16 -07:00
BlackthornCityTrainerTipsText:
text "TRAINER TIPS"
para "A #MON holding"
line "a MIRACLEBERRY"
para "will cure itself"
line "of any status"
cont "problem."
done
BlackthornCity_MapEvents:
db 0, 0 ; filler
db 8 ; warp events
2018-02-01 18:54:00 -08:00
warp_event 18, 11, BLACKTHORN_GYM_1F, 1
warp_event 13, 21, BLACKTHORN_DRAGON_SPEECH_HOUSE, 1
warp_event 29, 23, BLACKTHORN_EMYS_HOUSE, 1
warp_event 15, 29, BLACKTHORN_MART, 2
warp_event 21, 29, BLACKTHORN_POKECENTER_1F, 1
2018-02-01 19:22:07 -08:00
warp_event 9, 31, MOVE_DELETERS_HOUSE, 1
warp_event 36, 9, ICE_PATH_1F, 2
warp_event 20, 1, DRAGONS_DEN_1F, 1
db 0 ; coord events
db 7 ; bg events
bg_event 34, 24, BGEVENT_READ, BlackthornCitySign
bg_event 17, 13, BGEVENT_READ, BlackthornGymSign
2018-02-01 19:22:07 -08:00
bg_event 7, 31, BGEVENT_READ, MoveDeletersHouseSign
bg_event 21, 3, BGEVENT_READ, DragonDensSign
bg_event 5, 25, BGEVENT_READ, BlackthornCityTrainerTips
bg_event 16, 29, BGEVENT_READ, BlackthornCityMartSign
bg_event 22, 29, BGEVENT_READ, BlackthornCityPokecenterSign
db 9 ; object events
object_event 18, 12, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, BlackthornSuperNerdScript, EVENT_BLACKTHORN_CITY_SUPER_NERD_BLOCKS_GYM
object_event 19, 12, SPRITE_SUPER_NERD, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, BlackthornSuperNerdScript, EVENT_BLACKTHORN_CITY_SUPER_NERD_DOES_NOT_BLOCK_GYM
2018-02-01 19:22:07 -08:00
object_event 20, 2, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGramps1Script, EVENT_BLACKTHORN_CITY_GRAMPS_BLOCKS_DRAGONS_DEN
object_event 21, 2, SPRITE_GRAMPS, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornGramps2Script, EVENT_BLACKTHORN_CITY_GRAMPS_NOT_BLOCKING_DRAGONS_DEN
object_event 24, 31, SPRITE_BLACK_BELT, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, BlackthornBlackBeltScript, -1
2018-02-01 19:22:07 -08:00
object_event 9, 25, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, BlackthornCooltrainerF1Script, -1
object_event 13, 15, SPRITE_YOUNGSTER, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, BlackthornYoungsterScript, -1
object_event 22, 20, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, SantosScript, EVENT_BLACKTHORN_CITY_SANTOS_OF_SATURDAY
object_event 35, 19, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, BlackthornCooltrainerF2Script, -1