challenge SWAP_TO_TURTLE

// SCRIPT NO LONGER USED

begin script SwapToTurtle
	TurtlePos = marker at [2552.1709, 2.6800, 3183.0154]
	TurtleFarmer = 0
	TurtleFlock = 0
	Turtle = 0
	Count = 0
	RandX = 0
	RandZ = 0
	Highlight = 0

start


	snapshot challenge success 0.0 alignment 0.0 HELP_TEXT_TITLE_31 StandardReminder(variable HELP_TEXT_REMINDER_29)

	
	wait until [TurtlePos] not viewed

	TurtleFarmer = create VILLAGER VILLAGER_INFO_JAPANESE_FARMER_MALE at [TurtlePos]
	TurtleFlock = flock at [TurtleFarmer] + [-2, -3]
	set TurtleFarmer focus to [TurtleFlock]
	populate TurtleFlock with 5 ANIMAL TORTOISE

	HEALTH of TurtleFlock = 0.7

	Highlight = create highlight HIGHLIGHT_CHALLENGE at [TurtlePos]
	run script ChallengeHighlightNotify(Highlight, TurtlePos, variable EVIL_ADVISOR, variable HELP_TEXT_GENERAL_CHALLENGE_START_03)
	MyCreature = get player 1 creature

	begin cinema
		move camera focus to [TurtlePos] time 2
		move camera position to [TurtlePos] + [-6, 3, -4] time 4
		wait until camera ready
		set TurtleFarmer focus to camera position
		eject evil spirit
		eject good spirit
		say HELP_TEXT_SWAP_TO_TURTLE_01
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_02
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_03
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_04
		wait until read
	end cinema
	
	Turtle = get ANIMAL TORTOISE in TurtleFlock

	wait until HEALTH of Turtle >= 1

	begin cinema
		move camera focus to [TurtlePos] time 2
		move camera position to [TurtlePos] + [-6, 3, -4] time 4
		wait until camera ready
		set TurtleFarmer focus to camera position
		eject evil spirit
		eject good spirit
		say HELP_TEXT_SWAP_TO_TURTLE_05
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_06
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_07
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_08
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_09
		wait until read

		Turtle = create CREATURE CREATURE_TYPE_TORTOISE at [TurtlePos]
		force Turtle CREATURE_IDLE Turtle
		set Turtle focus to camera position

		say HELP_TEXT_SWAP_TO_TURTLE_10
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_11
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_12
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_13
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_15
		wait until read
		say HELP_TEXT_SWAP_TO_TURTLE_16
		wait until read
	end cinema


	run background script SwapCreatures(Turtle)

	snapshot challenge success 1.0 alignment 0.0 HELP_TEXT_TITLE_31 StandardReminder(variable HELP_TEXT_REMINDER_29)

end script SwapToTurtle
