MagmaRooms_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

MagmaRooms_Item_1:
	db BLACKGLASSES, 1

MagmaRooms_Item_2:
	db ELIXIR, 1

MagmaRooms_Trainer_1:
	trainer EVENT_MAGMA_ROOMS_TRAINER_1, COOLTRAINERM, 4, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $6d, $de, $f4, $64, $e6, $02, $0b, $4b, $41, $f7
	db $07, $84, $d6, $7a, $c8, $43, $d1, $35, $9e, $c1, $92, $02, $0b, $4b
	db $00, $f8, $48, $35, $23, $5f, $e0, $20, $b5, $8d, $10
	db $66, $f0, $ee, $6a, $26, $ad, $61, $e7, $49, $74

	db $a0, $01, $e1, $10, $7c
	db $69, $a0

.battle_won_text
	db TX_COMPRESSED, $75, $78, $a0, $d6, $12, $0d, $98, $b3, $de, $f4, $17

	db $80, $14, $9d, $bc, $51, $90, $87, $b4, $f0

	db $00, $a7, $81, $63, $e5, $37
	db $4b, $4d

.after_battle_text
	db TX_COMPRESSED, $12, $6a, $e0, $f0, $8e, $a3, $3b, $de, $9e
	db $5e, $7c, $12, $0f, $b8, $4e, $eb, $e7, $4f

	db $00, $0e, $13, $08, $8e, $9c, $a8, $2d, $77, $32, $d2, $64
	db $7a, $d2, $32, $29, $47, $45, $93, $ba, $f9, $f1
	db $a6, $80

MagmaRooms_Trainer_2:
	trainer EVENT_MAGMA_ROOMS_TRAINER_2, COOLTRAINERF, 2, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $75, $78, $a5, $84, $31, $2d, $3e, $3c, $c1
	db $91, $e4, $9a, $cf, $f1, $d1, $64, $d5, $61, $6a
	db $d5, $58, $62, $b5, $9e, $a9, $4d, $88, $a8, $f6, $f8
	db $d3, $40

.battle_won_text
	db TX_COMPRESSED, $af, $74, $99, $a7, $82, $3a, $2c, $81, $c3, $01, $81
	db $79, $91, $ef, $7a, $0a, $22, $a3, $db, $19, $39
	db $f5, $34

.after_battle_text
	db TX_COMPRESSED, $74, $59, $11, $51, $ed, $8c, $9c, $d3

	db $c0, $01, $4c, $2b, $9b, $de, $cb, $49
	db $bd, $52, $c2, $4e, $62, $cf, $50, $12, $23
	db $8d, $34

MagmaRooms_Trainer_3:
	trainer EVENT_MAGMA_ROOMS_TRAINER_3, COOLTRAINERM, 5, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $29, $27, $3b, $a0, $db, $2c, $79, $38, $9d
	db $43, $ca, $cc, $c9, $14, $88, $1a, $89, $2c, $31, $63, $41
	db $80, $b0, $c5, $8f, $94, $dc, $a9, $26, $b3
	db $7a, $a3, $2e, $38, $8b, $d2, $64, $64, $e7

	db $88, $06, $e6, $5c, $73, $a3, $06, $19, $39, $81
	db $23, $d6, $93, $87, $9e, $4e, $24, $d6, $7c
	db $69, $a0

.battle_won_text
	db TX_COMPRESSED, $e0, $d5, $92, $0e, $e6, $f7, $be
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $75, $84, $09, $3a, $0a, $5a, $4c, $14, $7f, $72
	db $6f, $21, $21, $34, $4b, $4e, $dc, $e9
	db $da, $a0, $41, $6a, $55, $bd, $52, $81, $24, $ee, $83, $6f

	db $80, $37, $0b, $5d, $c9, $29, $92, $d3, $b7, $15
	db $9b, $c8, $0b, $e7, $69, $19, $39, $a5
	db $a6, $80

MagmaRooms_Trainer_4:
	trainer EVENT_MAGMA_ROOMS_TRAINER_4, FIREBREATHER, 2, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $07, $86, $d2, $32, $73, $2c, $31, $5b, $4b
	db $23, $c9, $35, $9f, $e2, $03, $07, $78, $a5, $a4
	db $c0, $08, $35, $e0, $6c, $dc, $11, $dd, $64, $e5
	db $85, $e1, $0b, $d6, $6c, $6c, $9f
	db $1a, $68

.battle_won_text
	db TX_COMPRESSED, $6e, $7d, $ec, $b4, $ed, $e2, $84, $0d
	db $bd, $69, $39, $56, $82, $8e, $a5, $5a, $4b, $3c
	db $aa, $1d, $fe, $6d, $cd, $ef
	db $7d, $4d

.after_battle_text
	db TX_COMPRESSED, $15, $05, $05, $77, $97, $f5, $73, $49, $98
	db $e9, $ee, $8d, $48, $e5, $86, $72, $77, $06, $4b
	db $08, $0c, $06, $b3, $8a, $d6, $7b, $69, $19, $39
	db $79, $90, $92, $cd, $16, $8e

	db $20, $1d, $5c, $b0, $85, $4a, $3e, $70, $11, $ea
	db $d0, $f5, $86, $33, $b6, $ca, $63, $42, $25
	db $85, $52, $46, $89, $aa, $c7, $d1, $d8, $2f
	db $53, $40

MagmaRooms_Trainer_5:
	trainer EVENT_MAGMA_ROOMS_TRAINER_5, FIREBREATHER, 3, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $75, $2a, $d4, $45, $21, $b2, $a4, $79, $81, $6a
	db $de, $0e, $12, $d2, $70, $46, $ad, $4b

	db $c0, $0a, $49, $82, $99, $09, $29, $93, $a7, $71, $f3
	db $78, $41, $af, $00, $ad, $f8, $f8, $29, $80, $d6
	db $6a, $95, $ac, $f6, $d2, $32, $73, $2d, $26, $b3
	db $f5, $34

.battle_won_text
	text "Oy."
	done

.after_battle_text
	db TX_COMPRESSED, $28, $31, $59, $cc, $34, $6b, $fc, $a9, $21
	db $79, $95, $9e, $d9, $a2, $6c, $11, $ab, $52
	db $01, $69, $db, $c5, $35, $58, $41, $8e
	db $6b, $c0, $c1, $eb, $3a, $40, $cd, $20, $2a, $b4, $15
	db $2d, $34

MagmaRooms_Trainer_6:
	trainer EVENT_MAGMA_ROOMS_TRAINER_6, COOLTRAINERF, 3, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $75, $12, $7a, $bc, $cb, $48, $d1, $06, $89
	db $af, $32, $10, $f6, $08, $ee, $b2, $72, $c3, $32
	db $15, $48, $0b, $e7, $2d, $7a, $32, $0c, $9c
	db $fa, $9a

.battle_won_text
	db TX_COMPRESSED, $6d, $08, $7b, $f8, $f9, $e9, $06, $4e
	db $5e, $19, $30, $0a, $df, $de, $fe, $10
	db $36, $aa, $cd, $f1, $06, $bd, $b6, $96, $7e
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $28, $32, $d2, $71, $01, $6a, $d3, $51, $a2
	db $de, $0e, $11, $26, $b3, $fc, $b4, $9a, $ce, $0d
	db $0a, $b6, $2c, $f7, $b1, $90, $f7, $30, $47, $75, $93

	db $f0, $02, $92, $34, $45, $9f, $23, $09, $22, $1a, $59
	db $bc, $9d, $44, $19, $2c, $d6, $68, $b1, $93
	db $95, $5c, $98, $79, $5e, $88, $48, $2f
	db $53, $40

MagmaRooms_MapEventHeader:: db 0, 0

.Warps: db 9
	warp_def 43, 33, 1, MAGMA_PALLETPATH_B1F
	warp_def 33, 5, 1, MAGMA_MINECART
	warp_def 49, 17, 2, MAGMA_F1
	warp_def 7, 7, 8, MAGMA_ROOMS
	warp_def 21, 25, 9, MAGMA_ROOMS
	warp_def 51, 7, 1, MAGMA_GROUDON
	warp_def 5, 47, 2, MAGMA_ITEMROOM
	warp_def 37, 47, 4, MAGMA_ROOMS
	warp_def 55, 53, 5, MAGMA_ROOMS

.CoordEvents: db 0

.BGEvents: db 0

.ObjectEvents: db 9
	person_event SPRITE_POKE_BALL, 25, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_SUNNY_DAY, 0, EVENT_MAGMA_ROOMS_TM
	person_event SPRITE_POKE_BALL, 19, 32, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 1, MagmaRooms_Item_1, EVENT_MAGMA_ROOMS_ITEM_1
	person_event SPRITE_POKE_BALL, 53, 33, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, MagmaRooms_Item_2, EVENT_MAGMA_ROOMS_ITEM_2
	person_event SPRITE_YOUNGSTER, 44, 26, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, MagmaRooms_Trainer_1, -1
	person_event SPRITE_COOLTRAINER_F, 55, 37, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, MagmaRooms_Trainer_2, -1
	person_event SPRITE_YOUNGSTER, 29, 28, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 4, MagmaRooms_Trainer_3, -1
	person_event SPRITE_FISHER, 4, 32, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 2, MagmaRooms_Trainer_4, -1
	person_event SPRITE_FISHER, 13, 49, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_TRAINER, 3, MagmaRooms_Trainer_5, -1
	person_event SPRITE_COOLTRAINER_F, 28, 48, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, MagmaRooms_Trainer_6, -1

