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
	db TX_COMPRESSED, $62, $7d, $e8

	db $7c, $01, $ba, $4d, $67, $32, $18, $08, $2d, $4a, $b4
	db $96, $f5, $86, $72, $1a
	db $5a, $68

ToreniaMagnetTrainNPC:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $74, $59, $11, $6d, $32, $a5, $06, $48, $0f, $de, $d3, $81

	db $f0, $01, $20, $de, $92, $36, $8e, $c1, $41
	db $a1, $e1, $66, $d6, $af, $49, $63, $21, $e6, $69
	db $32, $a9, $d4, $c8, $49, $4c, $89, $d0, $63
	db $9a, $a8, $46, $a1, $12, $c3, $39, $3b, $96
	db $15, $42, $64, $29, $b0, $c0, $ae, $09, $8d, $25, $87
	db $d4, $d0

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, 0, 0, ToreniaMagnetTrainEmployee, -1
	person_event SPRITE_GENTLEMAN, 14, 6, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, 0, 0, ToreniaMagnetTrainNPC, -1

