;--------------
;Colliseum
;
SCENE 25	PKBooth
	THEME	6
;	MUSIC	
	ACTOR	1,	"Warrior", Warrior, 1, 15, 90
	SEL	1
	1: Welcome to the arena, young gladiator
	WAIT 1
	1: What is your name?
	ASK 20
	1: Ah, %2, glad to see you here
	N: The warrior rummages around
	WAIT 2
	1: What style of battle would you like champion?
	1: Note, you gain no rank from PK battles
	MENU "Me vs. Computer=@mvc", "Me vs. Player=@mvp", "Quit=@quit"

@mvc
1: So %2, you and the computer correct?
ASK 20
IF -YES, @saidno
1: Good, lets see here, ok, what difficulty do you want?
MENU "Easy=@easy", "Medium=@med", "Hard=@hard", "Rip your face off=@rip"
END
@easy
SET difficulty, 1
1: You have chosen easy
GOTO @levelcheck
END
@med
SET difficulty, 2
1: You have chosen medium
GOTO @levelcheck
END
@hard
SET difficulty, 3
1: You have chosen hard
GOTO @levelcheck
END
@rip
SET difficulty, 4
1: You have chosen rip your face off
GOTO @levelcheck
END
@levelcheck
1: Now, lets see what your level is.
COMPARE #<num.hostLevel>, 1
IF= @beginchallenge
IF> @beginchallenge
IF< @tooyoung
END
@beginchallenge
SET battle, 1
1: We will now begin your challenge
GOTO SCENE 26
END

@mvp
COMPARE #<num.peopleInScene>, 2
IF= @begin
IF> @begin
IF< @notenough
END
@begin
1: Good, you have enough people, are you ready?
ASK 9999
IF -YES, @saidno
SET battle, 2
1: We will now begin your fight
GOTO SCENE 26
END

@saidno
1: Shame
END

@tooyoung
1: You must be level 1 to compete in the arena
END

@notenough
1: You do not have enough people for a PK
END

@quit
END

;----------
;
SCENE 26	PKArena
	THEME	6
;	MUSIC
	SET rankxp, 0

COMPARE #<battle>, 1
IF= @cvp
IF> @mvp
END

;-----------If CVP

@cvp
COMPARE #<difficulty>, 1
IF= @difficulty1
IF> @check2
@check2
COMPARE #<difficulty>, 2
IF= @difficulty2
IF> @check3
@check3
COMPARE #<difficulty>, 3
IF= @difficulty3
IF> @check4
@check4
COMPARE #<difficulty>, 4
IF= @difficulty4
IF> @error
@error
N: There has been an error, report! 
N: -seraphino@wosaddict.com-
END

@difficulty1
N: You are set a difficulty "easy"
WAIT 1
N: Are you ready?
ASK 20
IF -YES, @saidno
GOTO @cvpfight1
END

@difficulty2
N: You are set at difficulty "medium"
WAIT 1
N: Are you ready?
ASK 20
IF -YES, @saidno
GOTO @cvpfight2
END

@difficulty3
N: You are set at difficulty "hard"
WAIT 1
N: Are you ready?
ASK 20
IF -YES, @saidno
GOTO @cvpfight3
END

@difficulty4
N: You are set at difficulty "rip your face off"
WAIT 1
N: Are you ready?
ASK 20
IF -YES, @saidno
GOTO @cvpfight4
END

@cvpfight1
FIGHT 17
IF WIN, @hewon1
N: Come again!
END
@hewon1
COMPARE #<rankxp>, 30
IF= @lessxp1
IF< @normalxp
IF> @checkrank2
END
@checkrank2
COMPARE #<rankxp>, 60
IF= @lessxp2
IF< @lessxp1
IF> @checkrank3
N: You won! Now leveling rank....
WAIT 2
ADD rankxp, 5
GOTO @checklevel
END
@checkrank3
COMPARE #<rankxp>, 110
IF= @noxp
IF< @lessxp2
IF> @noxp
@checklevel
COMPARE #<rankxp>, 30
IF= @levelup1
IF< @displayxp
IF> @checklvl2
END
@levelup
N: You are now rank 1!
END
@displayxp
N: You currently have #<rankxp> xp
END
@lessxp1
N: You won! Now leveling rank....
ADD rankxp, 3
GOTO @checklevel
END
@lessxp2
N: You won! Now leveling rank....
ADD rankxp, 2
GOTO @checklevel
END
@noxp
N: You can no longer gain from killing
N: Easy critters
GOTO @checklvl
END

@checklvl2
COMPARE #<rankxp>, 60
IF= @levelup2
IF< @displayxp2
IF> @checklvl3
END
@levelup2
N: You are now rank 2!
END
@displayxp2
N: You currently have #<rankxp>!
END

@checklvl3
COMPARE #<rankxp>, 110
IF= @levelup3
IF< @displayxp3
IF> @checklvl4
END
@levelup3
N: You are now rank 3!
END
@displayxp3
N: You have #<rankxp> xp
END

@checklvl4
COMPARE #<rankxp>, 200
IF= @levelup4
IF< @displayxp4
IF> @checklvl5
END
@levelup4
N: You are now rank 4!!!
END
@displayxp4
N: You currently have #<rankxp> xp
END

@checklvl5
COMPARE #<rankxp>, 500
IF= @champion
IF> @displayxp5
IF> @error2
END
@champion
N: You are now max rank!!
END
@displayxp5
N: You currently have #<rankxp> xp
END
@error2
N: Report this error!!!!
N: (seraphino@wosaddict.com)
END

@cvpfight2
FIGHT 18
IF WIN, @hewon1
N: Come again!
END

@cvpfight3
FIGHT 19
IF WIN, @hewon1
N: Come again!
END

@cvpfight4
FIGHT 20
IF WIN, @hewon1
N: Come again!
END

;-------If Mvp

; Set map flags: 32768 (no nasty spells) + 8192 (no tickets) + 4096 (no Heal)
	FLAGS	45056

	; Lock the room
	LOCK 1

	; Announce to the players that this is a special place
	N: Fight!!!
	N: No heal, no nasty spells
	N: No tickets 

	; we have to END or they can't fight
	END

@eventPkAttackDone

	; maybe someday this event will work, and we can unlock the camp as soon as 
	; only one side is left standing

	LOCK 0
	FLAGS 0
	END	


	
	