pokecrystal/maps/VioletPokeCenter1F.asm

241 lines
4.9 KiB
NASM
Raw Normal View History

2015-11-27 05:22:14 +00:00
const_value set 2
const VIOLETPOKECENTER1F_NURSE
const VIOLETPOKECENTER1F_GAMEBOY_KID
const VIOLETPOKECENTER1F_GENTLEMAN
const VIOLETPOKECENTER1F_YOUNGSTER
const VIOLETPOKECENTER1F_SCIENTIST
2015-07-10 08:45:35 +00:00
VioletPokeCenter1F_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 0
VioletPokeCenterNurse:
jumpstd pokecenternurse
VioletPokeCenter1F_ElmsAideScript:
faceplayer
2015-12-09 23:25:44 +00:00
opentext
2013-09-24 07:48:58 +00:00
checkevent EVENT_REFUSED_TO_TAKE_EGG_FROM_ELMS_AIDE
iftrue .SecondTimeAsking
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x69555
.AskTakeEgg:
yesorno
iffalse .RefusedEgg
checkcode VAR_PARTYCOUNT
if_equal PARTY_LENGTH, .PartyFull
giveegg TOGEPI, 5
stringtotext .eggname, $1
scall .AideGivesEgg
2013-09-24 07:48:58 +00:00
setevent EVENT_GOT_TOGEPI_EGG_FROM_ELMS_AIDE
clearevent EVENT_ELMS_AIDE_IN_LAB
clearevent EVENT_TOGEPI_HATCHED
domaptrigger ROUTE_32, $1
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x695c5
2015-11-25 15:16:29 +00:00
waitbutton
closetext
checkcode VAR_FACING
if_equal UP, .AideWalksAroundPlayer
spriteface PLAYER, DOWN
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideWalksStraightOutOfPokecenter
playsound SFX_EXIT_BUILDING
2015-11-27 05:22:14 +00:00
disappear VIOLETPOKECENTER1F_SCIENTIST
2015-11-25 15:16:29 +00:00
waitsfx
end
.AideWalksAroundPlayer:
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideWalksLeftToExitPokecenter
spriteface PLAYER, DOWN
applymovement VIOLETPOKECENTER1F_SCIENTIST, MovementData_AideFinishesLeavingPokecenter
playsound SFX_EXIT_BUILDING
2015-11-27 05:22:14 +00:00
disappear VIOLETPOKECENTER1F_SCIENTIST
2015-11-25 15:16:29 +00:00
waitsfx
end
2015-07-10 08:45:35 +00:00
.eggname
db "EGG@"
.AideGivesEgg:
jumpstd receivetogepiegg
end
.PartyFull:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x69693
2015-11-25 15:16:29 +00:00
waitbutton
closetext
end
.RefusedEgg:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x696f2
2015-11-25 15:16:29 +00:00
waitbutton
closetext
2013-09-24 07:48:58 +00:00
setevent EVENT_REFUSED_TO_TAKE_EGG_FROM_ELMS_AIDE
end
.SecondTimeAsking:
2015-01-20 08:01:23 +00:00
writetext UnknownText_0x69712
jump .AskTakeEgg
2015-07-10 08:45:35 +00:00
GameboyKidScript_0x69540:
jumptextfaceplayer UnknownText_0x69809
2015-07-10 08:45:35 +00:00
GentlemanScript_0x69543:
jumptextfaceplayer UnknownText_0x6983c
2015-07-10 08:45:35 +00:00
YoungsterScript_0x69546:
jumptextfaceplayer UnknownText_0x698b8
MovementData_AideWalksStraightOutOfPokecenter:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step DOWN
step DOWN
step_end
MovementData_AideWalksLeftToExitPokecenter:
2016-05-14 17:46:14 +00:00
step LEFT
step DOWN
step_end
MovementData_AideFinishesLeavingPokecenter:
2016-05-14 17:46:14 +00:00
step DOWN
step DOWN
step DOWN
step_end
2015-07-10 08:45:35 +00:00
UnknownText_0x69555:
text "<PLAY_G>, long"
line "time, no see."
para "PROF.ELM asked me"
line "to find you."
para "He has another"
line "favor to ask."
para "Would you take the"
line "#MON EGG?"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x695c5:
text "We discovered that"
line "a #MON will not"
para "hatch until it"
line "grows in the EGG."
para "It also has to be"
line "with other active"
cont "#MON to hatch."
para "<PLAY_G>, you're"
line "the only person"
cont "we can rely on."
para "Please call PROF."
line "ELM when that EGG"
cont "hatches!"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x69693:
text "Oh, no. You can't"
line "carry any more"
cont "#MON with you."
para "I'll wait here"
line "while you make"
cont "room for the EGG."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x696f2:
text "B-but… PROF.ELM"
line "asked for you…"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x69712:
text "<PLAY_G>, will you"
line "take the EGG?"
done
2015-07-10 08:45:35 +00:00
UnknownText_0x6972d:
text "I've been thinking"
line "it'd be great to"
para "be able to link up"
line "and battle with my"
para "friends who live"
line "far away."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x69791:
text "I just battled a"
line "friend in CIANWOOD"
cont "over a link."
para "If you connect a"
line "MOBILE ADAPTER,"
para "you can link with"
line "a friend far away."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x69809:
text "A guy named BILL"
line "made the #MON"
cont "PC storage system."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x6983c:
text "It was around"
line "three years ago."
para "TEAM ROCKET was up"
line "to no good with"
cont "#MON."
para "But justice pre-"
line "vailed--a young"
cont "kid broke 'em up."
done
2015-07-10 08:45:35 +00:00
UnknownText_0x698b8:
text "#MON are smart."
line "They won't obey a"
para "trainer they don't"
line "respect."
para "Without the right"
line "GYM BADGES, they"
para "will just do as"
line "they please."
done
2015-07-10 08:45:35 +00:00
VioletPokeCenter1F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 3
warp_def $7, $3, 5, VIOLET_CITY
warp_def $7, $4, 5, VIOLET_CITY
warp_def $7, $0, 1, POKECENTER_2F
.XYTriggers:
db 0
.Signposts:
db 0
.PersonEvents:
db 5
person_event SPRITE_NURSE, 1, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, VioletPokeCenterNurse, -1
person_event SPRITE_GAMEBOY_KID, 6, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, GameboyKidScript_0x69540, -1
person_event SPRITE_GENTLEMAN, 4, 1, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, GentlemanScript_0x69543, -1
person_event SPRITE_YOUNGSTER, 1, 8, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, YoungsterScript_0x69546, -1
person_event SPRITE_SCIENTIST, 3, 4, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, VioletPokeCenter1F_ElmsAideScript, EVENT_ELMS_AIDE_IN_VIOLET_POKEMON_CENTER