HeathInn_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, HeathInnSetSpawnPoint

HeathInnSetSpawnPoint:
	blackoutmod HEATH_VILLAGE
	return

HeathInnSignpost1:
	jumpstd magazinebookshelf

HeathInnSignpost2:
	jumpstd magazinebookshelf

HeathInnNPC:
	jumptextfaceplayer .text

.text
	ctxt "This village is"
	line "purely family-run."

	para "It only consists"
	line "of family members"
	para "and has stayed"
	line "that way for"
	cont "centuries now."

	para "My cousin Rinji"
	line "often takes our"
	para "children into his"
	line "forest to become"
	cont "#mon Trainers."

	para "My grandmother"
	line "manages the rooms"
	cont "in this very inn,"

	para "and my brother"
	line "runs the shop."
	done

HeathInnAttendant:
	opentext
	special PlaceMoneyTopRight
	writetext .opening_text
	yesorno
	sif false
		jumptext .declined_text
	checkmoney 0, 100
	sif =, 2
		jumptext .not_enough_money_text
	writetext .accepted_text
	special ClearBGPalettes
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	playwaitsfx SFX_SNORE
	pause 20
	special HealParty
	reloadmap
	takemoney 0, 100
	jumptext .after_healing_text

.opening_text
	ctxt "Oh dear, you and"
	line "your #mon look"
	cont "tired."

	para "I'll let you rent"
	line "a room for ¥100."
	done

.declined_text
	ctxt "Oh, OK then, you're"
	line "always welcome"
	para "to stay if you'd"
	line "like."
	done

.accepted_text
	ctxt "Thank you, have"
	line "a good rest!"
	prompt

.after_healing_text
	ctxt "Welcome back, I"
	line "hope you enjoyed"
	cont "your stay."
	done

.not_enough_money_text
	ctxt "I'm afraid your"
	line "wallet is nearly"
	cont "empty."
	done

HeathInnMartAttendant:
	opentext
	pokemart 0, 6
	closetext
	end

HeathInn_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $9, $9, 5, HEATH_VILLAGE
	warp_def $9, $a, 5, HEATH_VILLAGE

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 1, 14, SIGNPOST_READ, HeathInnSignpost1
	signpost 1, 3, SIGNPOST_READ, HeathInnSignpost2

	;people-events
	db 3
	person_event SPRITE_BLACK_BELT, 6, 11, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, HeathInnNPC, -1
	person_event SPRITE_GRANNY, 4, 17, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, HeathInnAttendant, -1
	person_event SPRITE_YOUNGSTER, 4, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_PLAYER, PERSONTYPE_SCRIPT, 0, HeathInnMartAttendant, -1
