;-------------------------
; Quest 2, 

TOKEN	3, "You have earned the level 1 badge in the Arena."
TOKEN	4, "You have earned the level 2 badge in the Arena."
TOKEN	5, "You have earned the level 3 badge in the Arena."
TOKEN	6, "You have earned the level 4 badge in the Arena."
TOKEN	7, "You have earned the level 5 badge in the Arena."
TOKEN	8, "You have earned the level 6 badge in the Arena."
TOKEN	9, "You have earned the level 7 badge in the Arena."
TOKEN	10, "You have earned the level 8 badge in the Arena."
TOKEN	11, "You have earned the level 9 badge in the Arena."
TOKEN	12, "You have earned the level 10 badge in the Arena."


;---------
SCENE 90 bgFireWall, SCENE, "Pet Arena"
	THEME	0
        MUSIC battle.mid
	ACTOR 1, "Pokemon Master", "josh19", 3, 30, 60

;GOTO @giftMonster

@beginning
	COMPARE	#<num.hostPets>, 0
	IF> @hasPet

	1: This is the Poke Challenge arena.
	1: It is exclusively for Pet Trainers.
	1: You don't have a pet, you %3, %3, %3, ugly CENSOR FOOOOOOOL!

	END

; Start the battles
@hasPet

;	1: Map Flags Are #<num.mapFlags>
	FLAGS	1024		; people cannot attack monsters/pets

	IF T90, @T90
	1: This is the Poke Challenge arena.
	1: My name is not much of your concern, you can just call me the Pokemon Master.
	1: If you don't like it, then shut up,because your name is worse.
	1: Your training skills will be tested here, in the arena.
	1: You may heal your pets as you like.
	1: Now lets start the Pokemon battle, I mean Poke battle.
	FIGHT 5
	; Earth 4
	IF DEAD, @dead
	GIVE	T90
; Fall into next

@T90
	IF T91, @T91
	1: %T90
	1: Dang, my secret weapon is stronger than this.
	1: Try this one.
	WAIT 3
	FIGHT 53
	; death 11
	IF DEAD, @dead
	GIVE	T91
; Fall into next

@T91
	IF T92, @T92
	1: %T91
	1: My secret weapon is my favorite pet.
	1: Too bad I didn't bring it, how about another?
	WAIT 3
	FIGHT 59	
	; air 18
	IF DEAD, @dead
	GIVE	T92
; Fall into next

@T92
	IF T93, @T93
	1: %T92
	1: Nice, but my secret weapon is stronger.
	1: But how are you against the dead?
	WAIT 3
	FIGHT 67
	; fire 34
	IF DEAD, @dead
	GIVE	T93
; Fall into next

@T93
	IF T94, @T94
	1: %T93
	1: My secret weapon is still stronger, did you know that?
	WAIT 3
	FIGHT 109
	; water 50
	IF DEAD, @dead
	GIVE	T94
; Fall into next

@T94
	IF T95, @T95
	1: %T94
	1: My secret weapon is cooler than yours, now die.
	WAIT 3
	FIGHT 123
	; nature 64
	IF DEAD, @dead
	GIVE	T95
; Fall into next


@T95
	IF T96, @T96
	1: %T95
	1: MY SECRET WEAPON IS MATCH FOR ALL,SOOO DIE FOOL.
	WAIT 3
	FIGHT 29
	; spirit 85
	IF DEAD, @dead
	GIVE	T96
; Fall into next


@T96
	IF T97, @T97
	1: %T96
	1: Here is an opponent worthy of you,but my secret weapon is always going to be strong.
	WAIT 3
	FIGHT 36
	; death 101
	IF DEAD, @dead
	GIVE	T97
; Fall into next


@T97
	IF T98, @T98
	1: %T97
	1: I NEED MY SECRET WEAPON.
	WAIT 3
	FIGHT 47
	; death 120
	IF DEAD, @dead
	GIVE	T98
; Fall into next


@T98
	IF T99, @T99
	1: %T98
	1: Now my best monsters,but 9 zillion times weaker than my secret weapon!
	WAIT 3
	FIGHT 47, 49
	; death 125 AND death 120
	IF DEAD, @dead
	GIVE	T99
	1: You have defeated my mightiest Poke pets,but not the secret weapon!
	1: %T99
	1: If my secret weapon was here.......
	1: he'll rip you into peices
	1: Take this fine piece of mythic armor, the %I191 as a gift,JERK.
	GIVE I191
	1: Furthermore...
	1: I would like you to consider training an advanced pets.
	1: So I'll give you one of the pets,but one of em is not a pet and that is the Saiyan.
	1: The real ones are too large to fit in the pit.
	1: Plus they tend to fight. Beware of the Saiyan's sword.

@giftMonster

	ACTOR 2, "Saiyan", 	"Clone Trunks", 2, 40, 90
	ACTOR 3, "Air", 	"josh2", 2, 30, 90
	ACTOR 4, "Fire", 	"josh2", 2, 20, 90
	ACTOR 5, "Water", 	"josh2", 2, 10, 90

@choose
	1: Please type the name of the pet you wish:
	ASK 60
	IF QSaiyan, @giveSaiyan
	IF QAir, @giveAir
	IF QFire, @giveFire
	IF QWater, @giveWater

	1: Really, please choose "Saiyan," "Air," "Fire," or "Water."
	GOTO @choose

@giveSaiyan
	1: A wise choice.
	GIVE I1020
	1: The Clone Trunks is on your side to help, but be careful.
	GOTO @done
	END
@giveAir
	1: A wise choice.
	GIVE I1021
	1: The Air Master is now yours
	GOTO @done
	END
@giveFire
	1: A wise choice.
	GIVE I1022
	1: The Fire Master is now yours
	GOTO @done
	END
@GiveWater
	1: A wise choice.
	GIVE I1023
     

        1: The Water Master is now yours
@done
	MOVE	2, -30, 90
	MOVE	3, -30, 90
	MOVE	4, -30, 90
	MOVE	5, -30, 90

	END


@T99
	1: %T99
	1: Do you wish to return your badges and begin again?
	ASK 30
	IF YES, @restart
	1: Then farewell, fellow poke trainers master
	END

@restart
	1: You are a brave adventurer!
	1: I hereby accept your ten badges!
	TAKE T3
	TAKE T4
	TAKE T5
	TAKE T6
	TAKE T7
	TAKE T8
	TAKE T9
	TAKE T10
	TAKE T11
	TAKE T12
	1: Now, it is as if your time in the arena has never occured
	1: Let us begin anew...
	WAIT 5
	GOTO @beginning

@dead
	1: HAHAHA EVEN MY WEAKEST PET CAN BEAT YOURS.
	1: HAHAHA, SUCKER?
	1: FOOL HAHAHA PETS ARE THE STRONGEST, WELL EXCEPT FOR THE GYMS.
	1: COME BACK TO LOSE AGAIN JERK.
	
	
END

; comment at the end