# enderKik
if $ARGS[0] = 'win':
	!set KikWin = KikWin + 1
	set pointKik = 0
	set pointKikV = 0
	set round = 0
	set minround = 0

	if health < 10:set health = 10

	cla
	*clr

if profi = 1:
	set profi = 0
	'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
	'Time to the announcement ...'

	act 'Exit to the middle to announce the winner':
		if $ARGS[0] = 'win':
			'<center><img src="images/community/kickboxing_win.jpg"></center>'
			'Congratulations! You win!'
			set KikWinPro += 1
			set rikudo += 5
		end

		if $ARGS[0] = 'winKO':
			'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
			'Congratulations! You win!'
			'And it is a knockout!!'

			set KikWinPro += 1
			set KikWinProKO += 1
			set rikudo += 10
		end

		if $ARGS[0] = 'loss':
			'<center><img src="images/community/kickboxing_loss.jpg"></center>'
			'You lose.'
			set KikLossPro += 1
		end

		if $ARGS[0] = 'lossKO':
			'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
			'Suddendly the room starts getting darker and darker ...'
			set KikLossPro += 1
			set KikLossProKO += 1
		end

		if $ARGS[0] = 'draw':
			'And it is a draw !!'
			set KikDrawPro += 1
		end

		act 'Leave the ring':gt 'fit', 'razd'
	end
end

if amateur = 1:
	set amateur = 0

	'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
	'Time to the announcement ...'

	act 'Exit to the middle to announce the winner':
		if $ARGS[0] = 'win':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_win.jpg"></center>'
			'Congratulations! You win!'

			set KikWinAm += 1
			set amateur = 0
			set amatReit += 1
			set money += 500 + kikmoney
			set rikudo += 5
			'You handed over a prize of 500 rubles.'
			gs 'razrKik'
		end

		if $ARGS[0] = 'winKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
			'Congratulations! You win!'
			'Great victory!'

			KikWinAm += 1
			KikWinAmKO += 1
			set amatReit += 1
			set amateur = 0
			set money += 500
			set rikudo += 10
			'You handed over a prize of 500 rubles.'
		end

		if $ARGS[0] = 'loss':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_loss.jpg"></center>'
			'You lose.'
			set KikLossAm += 1
			if amatReit > 0:set amatReit -= 1
		end

		if $ARGS[0] = 'lossKO':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
			'Suddendly the room starts getting darker and darker ...'
			set KikLossAm += 1
			set KikLossAmKO += 1
			if amatReit > 0:set amatReit -= 1
		end

		if $ARGS[0] = 'draw':
			cla
			*clr
			'<center><img src="images/community/kickboxing_speaker.jpg"></center>'
			'Time to the announcement ...'
			'And it is a draw !!'
			set KikDrawAm += 1
		end

		act 'Leave the ring':gt 'fit', 'razd'
	end
end

if sparing = 1:
	set sparing = 0

	if $ARGS[0] = 'win':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		'Your rival came to you and said:'
		'- "Nice job on the ring."'
		'She turned around and left to the dressing room.'
	end

	if $ARGS[0] = 'winKO':
		'<center><img src="images/community/kickboxing_win_ko.jpg"></center>'
		'The section is over.'
		'You had to knock her off .... Did you??'
	end

	if $ARGS[0] = 'loss':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		' Your rival came to you and said:'
		'- "Keep practicing."'
		'She turned around and left to the dressing room.'
	end

	if $ARGS[0] = 'lossKO':
		'<center><img src="images/community/kickboxing_loss_ko.jpg"></center>'
		'The section is over.'
		'Suddendly the room starts getting darker and darker ...'
	end

	if $ARGS[0] = 'draw':
		'<center><img src="images/community/kickboxing_rival.jpg"></center>'
		'The section is over.'
		' Your rival came to you and said:'
		'- "Looks like both of us need to keep practicing"'
		'She turned around and left to the dressing room.'
	end

	act 'Leave the ring':gt 'fit', 'razd'
	exit

end

--- enderKik ---------------------------------

