MagmaGroudon_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

MagmaGroudonNPC1:
	checkitem RED_ORB
	iftrue MagmaGroudon_398139
	jumptext MagmaGroudonNPC1_Text_39815a

MagmaGroudon_Item_1:
	db MAGMARIZER, 1

MagmaGroudon_398139:
	opentext
	writetext MagmaGroudon_398139_Text_3981d6
	waitbutton
	cry GROUDON
	takeitem RED_ORB, 1
	writetext MagmaGroudon_398139_Text_398200
	waitbutton
	setlasttalked 255
	writecode VAR_BATTLETYPE, BATTLETYPE_NORMAL
	loadwildmon GROUDON, 50
	startbattle
	reloadmapafterbattle
	setevent EVENT_FOUGHT_GROUDON
	disappear 2
	closetext
	end

MagmaGroudonNPC1_Text_39815a:
	db TX_COMPRESSED, $75, $73, $44, $08, $3d, $5a, $25, $86, $2b
	db $37, $b6, $22, $f6, $da, $38, $1c, $26
	db $aa, $c0, $66, $b6, $4e, $03, $95, $f0, $93

	db $c0, $1d, $5e, $28, $8b, $5e, $93, $93, $e8
	db $27, $92, $1e, $e4, $64, $e6, $05, $ab, $83, $bc
	db $4a, $b5, $6f, $a2, $9e

	db $00, $02, $ba, $09, $59, $c1, $de
	db $27, $8e, $9d, $10, $6c, $d8, $c9, $cc, $d9, $c8, $f0
	db $b5, $58, $2c, $2f, $c4, $05, $f3, $09, $0e
	db $96, $9a

MagmaGroudon_398139_Text_3981d6:
	db TX_COMPRESSED, $e1, $ee, $b2, $79, $96, $93, $8e, $43
	db $cb, $ce, $d6, $ae, $0c, $92, $d2
	db $6a, $91, $7b, $6d, $1e, $28, $9d, $26, $51
	db $ea, $68

MagmaGroudon_398139_Text_398200:
	db TX_COMPRESSED, $75, $71, $17, $ab, $b3
	db $cb, $cf, $84, $18, $64, $e7

	db $88, $02, $92, $34, $41, $a0, $94, $c9
	db $af, $22, $f6, $da, $3f, $c1, $de, $29
	db $a0, $3a, $30, $61, $93, $98, $0e, $57, $c2
	db $47, $b4, $99, $83, $b9, $d0, $85, $49, $13, $a3, $52
	db $30, $03, $bc, $53, $90, $8c, $9c, $cb
	db $0b, $db, $77, $ac, $a9, $71
	db $a6, $80

MagmaGroudon_MapEventHeader ;filler
	db 0, 0

;warps
	db 1
	warp_def $11, $9, 6, MAGMA_ROOMS

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 2
	person_event SPRITE_GROUDON, 6, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, MagmaGroudonNPC1, EVENT_FOUGHT_GROUDON
	person_event SPRITE_POKE_BALL, 17, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MagmaGroudon_Item_1, EVENT_MAGMA_GROUDON_ITEM_1

