pokecrystal-board/maps/GoldenrodDeptStore5F.asm

249 lines
4.9 KiB
NASM
Raw Normal View History

2015-11-26 21:22:14 -08:00
const_value set 2
const GOLDENRODDEPTSTORE5F_CLERK
const GOLDENRODDEPTSTORE5F_LASS
2016-04-07 03:13:59 -07:00
const GOLDENRODDEPTSTORE5F_MIKE
2015-11-26 21:22:14 -08:00
const GOLDENRODDEPTSTORE5F_POKEFAN_M
2016-04-07 03:13:59 -07:00
const GOLDENRODDEPTSTORE5F_CARRIE
2015-11-26 21:22:14 -08:00
const GOLDENRODDEPTSTORE5F_RECEPTIONIST
2015-06-25 21:01:08 -07:00
GoldenrodDeptStore5F_MapScriptHeader:
.MapTriggers:
db 0
.MapCallbacks:
db 1
; callbacks
2016-01-06 04:44:50 -08:00
dbw MAPCALLBACK_OBJECTS, .CheckIfSunday
.CheckIfSunday:
checkcode VAR_WEEKDAY
if_equal SUNDAY, .yes
2015-11-26 21:22:14 -08:00
disappear GOLDENRODDEPTSTORE5F_RECEPTIONIST
return
.yes
2015-11-26 21:22:14 -08:00
appear GOLDENRODDEPTSTORE5F_RECEPTIONIST
return
2015-06-25 21:01:08 -07:00
ClerkScript_0x5609c:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM02_HEADBUTT
iftrue .headbutt
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM08_ROCK_SMASH
iftrue .onlyrocksmash
jump .neither
.headbutt
2013-09-24 00:48:58 -07:00
checkevent EVENT_GOT_TM08_ROCK_SMASH
iftrue .both
jump .onlyheadbutt
.neither
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_GOLDENROD_5F_1
2015-11-25 07:16:29 -08:00
closetext
end
.onlyheadbutt
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_GOLDENROD_5F_2
2015-11-25 07:16:29 -08:00
closetext
end
.onlyrocksmash
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_GOLDENROD_5F_3
2015-11-25 07:16:29 -08:00
closetext
end
.both
2015-11-02 14:38:08 -08:00
pokemart MARTTYPE_STANDARD, MART_GOLDENROD_5F_4
2015-11-25 07:16:29 -08:00
closetext
end
2015-06-25 21:01:08 -07:00
ReceptionistScript_0x560ce:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
checkcode VAR_WEEKDAY
if_not_equal SUNDAY, .EventIsOver
2015-07-10 05:08:03 -07:00
checkflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
iftrue .EventIsOver
special GetFirstPokemonHappiness
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x56143
2015-11-29 19:29:45 -08:00
buttonsound
if_greater_than $95, .VeryHappy
if_greater_than $31, .SomewhatHappy
jump .NotVeryHappy
.VeryHappy:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x5615a
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_RETURN
iffalse .Done
2015-07-10 05:08:03 -07:00
setflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
2015-11-25 07:16:29 -08:00
closetext
end
.SomewhatHappy:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x561a6
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
.NotVeryHappy:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x561d8
2015-11-29 19:29:45 -08:00
buttonsound
2015-11-04 17:20:14 -08:00
verbosegiveitem TM_FRUSTRATION
iffalse .Done
2015-07-10 05:08:03 -07:00
setflag ENGINE_GOLDENROD_MALL_5F_HAPPINESS_EVENT
2015-11-25 07:16:29 -08:00
closetext
end
.EventIsOver:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x56202
2015-11-25 07:16:29 -08:00
waitbutton
.Done:
2015-11-25 07:16:29 -08:00
closetext
end
2016-04-07 03:13:59 -07:00
Carrie:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
special SpecialGameboyCheck
if_not_equal $2, .NotGBC ; This is a dummy check from Gold and Silver. In normal gameplay, this would not be checked.
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x56241
2015-11-25 07:16:29 -08:00
waitbutton
closetext
special Special_UnlockMysteryGift
end
.NotGBC:
2015-01-20 00:01:23 -08:00
writetext UnknownText_0x56279
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
LassScript_0x56130:
jumptextfaceplayer UnknownText_0x562ad
2016-04-07 03:13:59 -07:00
Mike:
faceplayer
2015-12-09 15:25:44 -08:00
opentext
trade $0
2015-11-25 07:16:29 -08:00
waitbutton
closetext
end
2015-06-25 21:01:08 -07:00
PokefanMScript_0x5613a:
jumptextfaceplayer UnknownText_0x562f3
2015-06-25 21:01:08 -07:00
GoldenrodDeptStore5FDirectory:
jumptext GoldenrodDeptStore5FDirectoryText
2015-06-25 21:01:08 -07:00
GoldenrodDeptStore5FElevatorButton:
2015-06-24 18:26:24 -07:00
jumpstd elevatorbutton
2015-06-25 21:01:08 -07:00
UnknownText_0x56143:
text "Hello. Oh, your"
line "#MON…"
done
2015-06-25 21:01:08 -07:00
UnknownText_0x5615a:
text "It's very attached"
line "to you."
para "This move should"
line "be perfect for a"
cont "pair like you."
done
2015-06-25 21:01:08 -07:00
UnknownText_0x561a6:
text "It's adorable!"
para "You should teach"
line "it good TM moves."
done
2015-06-25 21:01:08 -07:00
UnknownText_0x561d8:
text "It looks evil. How"
line "about this TM for"
cont "it?"
done
2015-06-25 21:01:08 -07:00
UnknownText_0x56202:
text "There are sure to"
line "be TMs that are"
para "just perfect for"
line "your #MON."
done
2015-06-25 21:01:08 -07:00
UnknownText_0x56241:
text "MYSTERY GIFT."
para "With just a"
line "little beep, you"
cont "get a gift."
done
2015-06-25 21:01:08 -07:00
UnknownText_0x56279:
text "The MYSTERY GIFT"
line "option requires a"
cont "Game Boy Color."
done
2015-06-25 21:01:08 -07:00
UnknownText_0x562ad:
text "On Sundays, a lady"
line "comes to check out"
cont "#MON."
para "She even gives"
line "away TMs!"
done
2015-06-25 21:01:08 -07:00
UnknownText_0x562f3:
text "You can't rename a"
line "#MON you get in"
cont "a trade."
para "The name is a re-"
line "flection of the"
para "original trainer's"
line "feelings for it."
done
2015-06-25 21:01:08 -07:00
GoldenrodDeptStore5FDirectoryText:
text "Customize Your"
line "#MON"
para "5F TM CORNER"
done
2015-06-25 21:01:08 -07:00
GoldenrodDeptStore5F_MapEventHeader:
; filler
db 0, 0
.Warps:
db 3
warp_def $0, $c, 1, GOLDENROD_DEPT_STORE_4F
warp_def $0, $f, 1, GOLDENROD_DEPT_STORE_6F
warp_def $0, $2, 1, GOLDENROD_DEPT_STORE_ELEVATOR
.XYTriggers:
db 0
.Signposts:
db 2
signpost 0, 14, SIGNPOST_READ, GoldenrodDeptStore5FDirectory
signpost 0, 3, SIGNPOST_READ, GoldenrodDeptStore5FElevatorButton
.PersonEvents:
db 6
person_event SPRITE_CLERK, 5, 8, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, ClerkScript_0x5609c, -1
person_event SPRITE_LASS, 6, 3, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, LassScript_0x56130, -1
2016-04-07 03:13:59 -07:00
person_event SPRITE_COOLTRAINER_M, 3, 6, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, Mike, -1
person_event SPRITE_POKEFAN_M, 5, 13, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, 0, PERSONTYPE_SCRIPT, 0, PokefanMScript_0x5613a, -1
2016-04-07 03:13:59 -07:00
person_event SPRITE_TWIN, 1, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, (1 << 3) | PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, Carrie, -1
person_event SPRITE_RECEPTIONIST, 5, 7, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, (1 << 3) | PAL_OW_RED, PERSONTYPE_SCRIPT, 0, ReceptionistScript_0x560ce, EVENT_GOLDENROD_DEPT_STORE_5F_HAPPINESS_EVENT_LADY