FirelightGroudon_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

FirelightGroudon_Magmarizer:
	db MAGMARIZER, 1

FirelightGroudonStatue:
	checkitem RED_ORB
	sif false
		jumptext .no_orb_text
	opentext
	writetext .placed_orb_text
	cry GROUDON
	takeitem RED_ORB, 1
	writetext .groudon_wakes_up_text
	setlasttalked 255
	writecode VAR_BATTLETYPE, BATTLETYPE_NORMAL
	loadwildmon GROUDON, 50
	startbattle
	setevent EVENT_FOUGHT_GROUDON
	disappear 2
	reloadmapafterbattle
	end

.no_orb_text
	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, $b4
	db $2a, $d5, $be, $8a, $78

	db $00, $0a, $e8, $25, $67, $07, $78
	db $9e, $3a, $74, $41, $b3, $63, $27, $33, $67, $23, $c2
	db $d5, $60, $b0, $bf, $10, $17, $cc, $24, $3a
	db $5a, $68

.placed_orb_text
	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, $78, $80

.groudon_wakes_up_text
	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, $32, $f8, $3b, $c5
	db $34, $07, $46, $0c, $32, $73, $01, $ca, $f8, $49
	db $f7, $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 $a7, $88

FirelightGroudon_MapEventHeader::	db 0, 0

.Warps
	db 1
	warp_def $11, $9, 6, FIRELIGHT_ROOMS

.CoordEvents
	db 0

.BGEvents
	db 0

.ObjectEvents
	db 2
	person_event SPRITE_GROUDON, 6, 9, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, FirelightGroudonStatue, EVENT_FOUGHT_GROUDON
	person_event SPRITE_POKE_BALL, 17, 2, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, FirelightGroudon_Magmarizer, EVENT_FIRELIGHT_GROUDON_ITEM_1

