2019-04-21 14:42:25 -07:00
|
|
|
object_const_def ; object_event constants
|
2015-11-26 21:22:14 -08:00
|
|
|
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
|
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
GoldenrodDeptStore5F_MapScripts:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; scene scripts
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 1 ; callbacks
|
2018-01-12 21:47:38 -08:00
|
|
|
callback MAPCALLBACK_OBJECTS, .CheckIfSunday
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.CheckIfSunday:
|
2019-03-10 12:31:59 -07:00
|
|
|
readvar VAR_WEEKDAY
|
2018-02-02 18:09:17 -08:00
|
|
|
ifequal SUNDAY, .yes
|
2015-11-26 21:22:14 -08:00
|
|
|
disappear GOLDENRODDEPTSTORE5F_RECEPTIONIST
|
2013-02-16 22:54:07 -08:00
|
|
|
return
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.yes
|
2015-11-26 21:22:14 -08:00
|
|
|
appear GOLDENRODDEPTSTORE5F_RECEPTIONIST
|
2013-02-16 22:54:07 -08:00
|
|
|
return
|
|
|
|
|
2018-02-28 13:50:43 -08:00
|
|
|
GoldenrodDeptStore5FClerkScript:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_GOT_TM02_HEADBUTT
|
2015-07-16 15:10:10 -07:00
|
|
|
iftrue .headbutt
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_GOT_TM08_ROCK_SMASH
|
2015-07-16 15:10:10 -07:00
|
|
|
iftrue .onlyrocksmash
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .neither
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.headbutt
|
2013-09-24 00:48:58 -07:00
|
|
|
checkevent EVENT_GOT_TM08_ROCK_SMASH
|
2015-07-16 15:10:10 -07:00
|
|
|
iftrue .both
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .onlyheadbutt
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.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
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.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
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.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
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-10 12:01:49 -07:00
|
|
|
.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
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2018-02-28 13:50:43 -08:00
|
|
|
GoldenrodDeptStore5FReceptionistScript:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2019-03-10 12:31:59 -07:00
|
|
|
readvar VAR_WEEKDAY
|
2018-02-02 18:09:17 -08:00
|
|
|
ifnotequal SUNDAY, .EventIsOver
|
2018-01-22 12:59:24 -08:00
|
|
|
checkflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN
|
2015-07-16 15:10:10 -07:00
|
|
|
iftrue .EventIsOver
|
2018-01-24 08:17:05 -08:00
|
|
|
special GetFirstPokemonHappiness
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FReceptionistOhYourMonDotDotDotText
|
2015-11-29 19:29:45 -08:00
|
|
|
buttonsound
|
2018-02-02 18:09:17 -08:00
|
|
|
ifgreater 150 - 1, .VeryHappy
|
|
|
|
ifgreater 50 - 1, .SomewhatHappy
|
2019-03-10 13:39:31 -07:00
|
|
|
sjump .NotVeryHappy
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.VeryHappy:
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FReceptionistThisMoveShouldBePerfectText
|
2015-11-29 19:29:45 -08:00
|
|
|
buttonsound
|
2015-11-04 17:20:14 -08:00
|
|
|
verbosegiveitem TM_RETURN
|
2015-07-16 15:10:10 -07:00
|
|
|
iffalse .Done
|
2018-01-22 12:59:24 -08:00
|
|
|
setflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN
|
2015-11-25 07:16:29 -08:00
|
|
|
closetext
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.SomewhatHappy:
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FReceptionistItsAdorableText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.NotVeryHappy:
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FReceptionistItLooksEvilHowAboutThisTMText
|
2015-11-29 19:29:45 -08:00
|
|
|
buttonsound
|
2015-11-04 17:20:14 -08:00
|
|
|
verbosegiveitem TM_FRUSTRATION
|
2015-07-16 15:10:10 -07:00
|
|
|
iffalse .Done
|
2018-01-22 12:59:24 -08:00
|
|
|
setflag ENGINE_GOLDENROD_DEPT_STORE_TM27_RETURN
|
2015-11-25 07:16:29 -08:00
|
|
|
closetext
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.EventIsOver:
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FReceptionistThereAreTMsPerfectForMonText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2015-07-16 15:10:10 -07:00
|
|
|
.Done:
|
2015-11-25 07:16:29 -08:00
|
|
|
closetext
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2016-04-07 03:13:59 -07:00
|
|
|
Carrie:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2018-01-24 08:17:05 -08:00
|
|
|
special GameboyCheck
|
2018-02-02 18:09:17 -08:00
|
|
|
ifnotequal GBCHECK_CGB, .NotGBC ; This is a dummy check from Gold/Silver
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FCarrieMysteryGiftExplanationText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
2018-01-24 08:17:05 -08:00
|
|
|
special UnlockMysteryGift
|
2013-02-16 22:54:07 -08:00
|
|
|
end
|
|
|
|
|
2015-07-16 15:10:10 -07:00
|
|
|
.NotGBC:
|
2019-04-27 18:34:10 -07:00
|
|
|
writetext GoldenrodDeptStore5FCarrieMysteryGiftRequiresGBCText
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2017-12-17 16:48:04 -08:00
|
|
|
GoldenrodDeptStore5FLassScript:
|
|
|
|
jumptextfaceplayer GoldenrodDeptStore5FLassText
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2016-04-07 03:13:59 -07:00
|
|
|
Mike:
|
2013-02-16 22:54:07 -08:00
|
|
|
faceplayer
|
2015-12-09 15:25:44 -08:00
|
|
|
opentext
|
2018-01-31 18:16:57 -08:00
|
|
|
trade NPC_TRADE_MIKE
|
2015-11-25 07:16:29 -08:00
|
|
|
waitbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
closetext
|
|
|
|
end
|
|
|
|
|
2017-12-17 16:48:04 -08:00
|
|
|
GoldenrodDeptStore5FPokefanMScript:
|
|
|
|
jumptextfaceplayer GoldenrodDeptStore5FPokefanMText
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
GoldenrodDeptStore5FDirectory:
|
|
|
|
jumptext GoldenrodDeptStore5FDirectoryText
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
GoldenrodDeptStore5FElevatorButton:
|
2015-06-24 18:26:24 -07:00
|
|
|
jumpstd elevatorbutton
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FReceptionistOhYourMonDotDotDotText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Hello. Oh, your"
|
|
|
|
line "#MON…"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FReceptionistThisMoveShouldBePerfectText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "It's very attached"
|
|
|
|
line "to you."
|
|
|
|
|
|
|
|
para "This move should"
|
|
|
|
line "be perfect for a"
|
|
|
|
cont "pair like you."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FReceptionistItsAdorableText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "It's adorable!"
|
|
|
|
|
|
|
|
para "You should teach"
|
|
|
|
line "it good TM moves."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FReceptionistItLooksEvilHowAboutThisTMText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "It looks evil. How"
|
|
|
|
line "about this TM for"
|
|
|
|
cont "it?"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FReceptionistThereAreTMsPerfectForMonText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "There are sure to"
|
|
|
|
line "be TMs that are"
|
|
|
|
|
|
|
|
para "just perfect for"
|
|
|
|
line "your #MON."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FCarrieMysteryGiftExplanationText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "MYSTERY GIFT."
|
|
|
|
|
|
|
|
para "With just a"
|
|
|
|
line "little beep, you"
|
|
|
|
cont "get a gift."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2019-04-27 18:34:10 -07:00
|
|
|
GoldenrodDeptStore5FCarrieMysteryGiftRequiresGBCText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "The MYSTERY GIFT"
|
|
|
|
line "option requires a"
|
|
|
|
cont "Game Boy Color."
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-17 16:48:04 -08:00
|
|
|
GoldenrodDeptStore5FLassText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "On Sundays, a lady"
|
|
|
|
line "comes to check out"
|
|
|
|
cont "#MON."
|
|
|
|
|
|
|
|
para "She even gives"
|
|
|
|
line "away TMs!"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2017-12-17 16:48:04 -08:00
|
|
|
GoldenrodDeptStore5FPokefanMText:
|
2014-03-05 21:29:44 -08:00
|
|
|
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
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2015-06-25 21:01:08 -07:00
|
|
|
GoldenrodDeptStore5FDirectoryText:
|
2014-03-05 21:29:44 -08:00
|
|
|
text "Customize Your"
|
|
|
|
line "#MON"
|
|
|
|
|
|
|
|
para "5F TM CORNER"
|
|
|
|
done
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-16 19:57:19 -08:00
|
|
|
GoldenrodDeptStore5F_MapEvents:
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0, 0 ; filler
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 3 ; warp events
|
2018-02-01 19:22:07 -08:00
|
|
|
warp_event 12, 0, GOLDENROD_DEPT_STORE_4F, 1
|
|
|
|
warp_event 15, 0, GOLDENROD_DEPT_STORE_6F, 1
|
|
|
|
warp_event 2, 0, GOLDENROD_DEPT_STORE_ELEVATOR, 1
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 0 ; coord events
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 2 ; bg events
|
2018-02-01 19:22:07 -08:00
|
|
|
bg_event 14, 0, BGEVENT_READ, GoldenrodDeptStore5FDirectory
|
|
|
|
bg_event 3, 0, BGEVENT_READ, GoldenrodDeptStore5FElevatorButton
|
2013-02-16 22:54:07 -08:00
|
|
|
|
2018-01-30 11:15:47 -08:00
|
|
|
db 6 ; object events
|
2018-02-28 13:50:43 -08:00
|
|
|
object_event 8, 5, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodDeptStore5FClerkScript, -1
|
2018-02-01 19:22:07 -08:00
|
|
|
object_event 3, 6, SPRITE_LASS, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodDeptStore5FLassScript, -1
|
|
|
|
object_event 6, 3, SPRITE_COOLTRAINER_M, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Mike, -1
|
|
|
|
object_event 13, 5, SPRITE_POKEFAN_M, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodDeptStore5FPokefanMScript, -1
|
|
|
|
object_event 9, 1, SPRITE_TWIN, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, Carrie, -1
|
2018-02-28 13:50:43 -08:00
|
|
|
object_event 7, 5, SPRITE_RECEPTIONIST, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, GoldenrodDeptStore5FReceptionistScript, EVENT_GOLDENROD_DEPT_STORE_5F_HAPPINESS_EVENT_LADY
|