ToreniaMagnetTrain_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

ToreniaMagnetTrainEmployee:
	opentext
	writetext .text
	loadmenudata .menu
	verticalmenu
	closewindow
	sif false, then
		closetext
		end
	sendif
	addvar 1
	farjump TrainStationScript

.menu
	db $40 ; flags
	db 01, 10 ; start coords
	db 11, 19 ; end coords
	dw .options
	db 1 ; default option

.options
	db $80
	db $4
	db "Rijon@"
	db "Johto@"
	db "Kanto@"
	db "Cancel@"

.text
	ctxt "Hello."

	para "Where do you want"
	line "to go?"
	done

ToreniaMagnetTrainNPC:
	jumptextfaceplayer .text

.text
	ctxt "I'm stuck in Naljo."

	para "Botan City is"
	line "quarantined and"
	cont "I don't have a"
	cont "pass to get to"
	cont "Johto or Kanto."
	done

ToreniaMagnetTrain_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $11, $8, 4, TORENIA_CITY
	warp_def $11, $9, 4, TORENIA_CITY

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 2
	person_event SPRITE_OFFICER, 9, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, ToreniaMagnetTrainEmployee, -1
	person_event SPRITE_GENTLEMAN, 14, 6, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, ToreniaMagnetTrainNPC, -1
