	const_def 2 ; object constants
	const SPARKLE_RANCH_HERD1
	const SPARKLE_RANCH_HERD2
	const SPARKLE_RANCH_HERD3
	const SPARKLE_RANCH_HERD4
	const SPARKLE_RANCH_HERD5
	const SPARKLE_RANCH_ITEMBALL1
	const SPARKLE_RANCH_NPC1

SparkleRanch_MapScripts:
	db 0 ; scene scripts
        db 1 ; callbacks
	callback MAPCALLBACK_OBJECTS, .HideHerd

.HideHerd:
	checkevent EVENT_RESCUED_SPARKY
	iffalse .skip
	appear SPARKLE_RANCH_HERD1
	appear SPARKLE_RANCH_HERD2
	appear SPARKLE_RANCH_HERD3
	appear SPARKLE_RANCH_HERD4
	appear SPARKLE_RANCH_HERD5
.skip:
	return

SparkleRanch_NPCScript:
	checkevent EVENT_RESCUED_SPARKY
	iftrue .Soothing
	jumptextfaceplayer .GrazingText
	end
.Soothing:
	jumptextfaceplayer .SoothingText
	end

.GrazingText:
	text "Eddy took the herd"
	line "out to the pasture"
	cont "up north."
	para "But he should be"
	line "back already."
	done
.SoothingText:
	text "I love this place."
	para "Looking at the"
	line "#MONs grazing"
	cont "is so soothing!"
	done

SparkleRanch_Itemball1:
	itemball MOOMOO_MILK, 7
	end

SparkleRanch_MapEvents:
	db 0, 0 ; filler
	db 2 ; warp events
	warp_event 16,  3, MOUNTAIN_TUNNEL, 2
	warp_event  5, 11, SPARKLE_RANCH_HOUSE, 1
	db 0 ; coord events
	db 0 ; bg events
	db 7 ; object events
	object_event 20, 11, SPRITE_MAREEP,  SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, OBJECTTYPE_SCRIPT, 0, 0, EVENT_SPARKLE_RANCH_HERD_VISIBLE
	object_event 17, 10, SPRITE_MAREEP,  SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, OBJECTTYPE_SCRIPT, 0, 0, EVENT_SPARKLE_RANCH_HERD_VISIBLE
	object_event 14, 14, SPRITE_FLAAFFY, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_PINK, OBJECTTYPE_SCRIPT, 0, 0, EVENT_SPARKLE_RANCH_HERD_VISIBLE
	object_event 16, 12, SPRITE_MILTANK, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_PINK, OBJECTTYPE_SCRIPT, 0, 0, EVENT_SPARKLE_RANCH_HERD_VISIBLE
	object_event 13, 10, SPRITE_MILTANK, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_PINK, OBJECTTYPE_SCRIPT, 0, 0, EVENT_SPARKLE_RANCH_HERD_VISIBLE
	object_event  4,  4, SPRITE_POKE_BALL, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_ITEMBALL, 0, SparkleRanch_Itemball1, EVENT_SPARKLE_RANCH_MILK
	object_event  8, 14, SPRITE_COOLTRAINER_F, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, PAL_NPC_PINK, OBJECTTYPE_SCRIPT, 0, SparkleRanch_NPCScript, -1
