	const_def 2 ; object constants
	const DAWN_TOWN_GROUNDKEEPER

DawnTownCaveRoom_MapScripts:
	db 0 ; scene scripts
        db 0 ; callbacks

GroundkeeperTalk:
	faceplayer DAWN_TOWN_GROUNDKEEPER
	opentext
        checkevent EVENT_MET_GROUNDKEEPER
	iffalse .TellMyMom
        checkevent EVENT_GOT_TM30_SHADOW_BALL
	iffalse .GiveShadowBall
	writetext .GroundkeeperTalkText
	jump .done

.TellMyMom:
	writetext .TellMyMomText
        setevent EVENT_MET_GROUNDKEEPER
	jump .done

.GiveShadowBall:
	writetext .GiveShadowBallText
	verbosegiveitem TM_SHADOW_BALL
	iffalse .done
        setevent EVENT_GOT_TM30_SHADOW_BALL
.done:
	waitbutton
	closetext
	end

.GroundkeeperTalkText:
	text "I don't mind this"
	line "place at all."
	para "Ghosts are very"
	line "friendly to me and"
	cont "bring me water and"
	cont "food as long as I"
	cont "let them devour"
	cont "my nightmares."
	para "It's a win-win!"
	done

.TellMyMomText:
	text "You're not from"
	line "team Rocket right?"
	para "You must be very"
	line "confused to see"
	cont "me here, so let me"
	cont "explain:"
	para "On my way to work"
	line "the other day, I"
	cont "encountered two"
	cont "Rocket guys."
	para "They tried to cap-"
	line "ture me, but I ran"
	cont "to the graveyard"
	cont "and jumped into a"
	cont "hole."
	para "They followed me"
	line "but then a wild"
	cont "GENGAR appeared to"
	cont "combat and kick"
	cont "them out!"
	para "I found this weird"
	line "tomb and decided"
	cont "to stay here until"
	cont "they forget me."
	para "My poor mom must"
	line "be so worried…"
	para "Can you tell her"
	line "I'm fine?"
	done

.GiveShadowBallText:
	text "I haven't seen"
	line "GENGAR today<…>"
	para "Take this, it was"
	line "its preferred toy."
	done

DawnTownCaveRoom_MapEvents:
	db 0, 0 ; filler

	db 1 ; warp events
	warp_event 2, 0, DAWN_TOWN_CAVE_0F, 2

	db 0 ; coord events
	db 0 ; bg events
	db 1 ; object events
	object_event  5,  3, SPRITE_FALKNER, SPRITEMOVEDATA_WANDER, 3, 3, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, GroundkeeperTalk, 0
