
//Multiple Intro Diffindo Challenge

[MainThread]

Capture Harry
Capture Sprout
Capture challengescoremanager
Capture basecam

Cue ThreadPicker *

WaitFor ThreadPicker

//Release Harry
//Release Sprout
//Release challengescoremanager
//Release BaseCam

If ChallengeIsFirstTime Cue FirstTimeThread
If ChallengePreviouslyBeaten Cue BeatenThread
If ChallengePreviouslyMastered Cue MasteredThread


//----------------------------------------------------------------------
[FirstTimeThread]

WaitFor FirstTimeThread

recapture Harry
recapture Sprout
recapture challengescoremanager
recapture basecam

Harry runto Point1 *HarryDone1

basecam target flyto Harry staylocked time=1 *
basecam flyto EntryCam01 time=2

Waitfor HarryDone1

Trigger EntryBars *

Harry runto Point2 *

basecam flyto IntroCam01 time=2

Sprout Talk PC_Spr_Chal3Diff_01 *
//Welcome, Harry Potter, to my Diffindo Challenge. To complete the challenge, you must find the Completion Star, which can be found in a halway just above you.

basecam flyto IntroCam03 time=3

basecam target flytounlocked

basecam target flyto EndStar time=2 *

sleep 1

basecam flyto IntroCam05 time=3

Sprout Talk PC_Spr_Chal3Diff_02
//Try to get to it as quickly as you can. If the Challenge Timer reaches zero before you have the Completion Star, you lose the challenge

basecam flyto StarCam01 *
basecam target flyto StarTarget01

Sprout Talk PC_Spr_Chal3Diff_03 *SproutDone1
//Along the way you will find Challenge Stars. Collecting Challenge Stars will boost your timer and score. I highly recommend you try to find all of them.

basecam target flyto Star time=2 *
basecam flyto StarCam02 time=2

basecam flyto StarCam03 time=2

Waitfor SproutDone1

basecam target flyto Harry *
basecam flyto IntroCam04

Sprout Talk PC_Spr_Chal3Diff_04 *SproutDone2
//Try to get the Completion Star with as many seconds remaining as possible! The higher your score is when you complete the Challenge, the more house points I will award you!

basecam flyto IntroCam02 time=3

Waitfor SproutDone2

basecam target flyto Vines1 time=2 *

sleep 1

basecam flyto Diffindo1 time=2 *

Sprout Talk PC_Spr_Chal3Diff_05 *SproutDone3
//Some vines and plant growth can cover doorways and openings.  You can use Diffindo to cut through them and clear your path.

Waitfor SproutDone3

challengescoremanager beginchallenge *

Release challengescoremanager
Release Sprout
Release Harry
Release basecam

SaveGame


//----------------------------------------------------------------------
[BeatenThread]

WaitFor BeatenThread

recapture Harry
recapture Sprout
recapture challengescoremanager
recapture basecam

Harry runto Point1 *HarryDone1

basecam target flyto Harry staylocked time=1 *
basecam flyto EntryCam01 time=2

Waitfor HarryDone1

Harry runto Point2 *

basecam flyto IntroCam01 time=2

Sprout Talk PC_Spr_Chal3Diff_18 *
//Welcome back, Harry Potter.  Good luck with the Challenge!

basecam flyto IntroCam03 time=3

basecam flyto IntroCam04

Sprout Talk PC_Spr_Chal3Diff_21 *SproutDone2
//Ready to begin? Good luck!  Ready, set, go!

basecam flyto IntroCam02 time=3

Waitfor SproutDone2

challengescoremanager beginchallenge *

Release challengescoremanager
Release Sprout
Release Harry
Release basecam

SaveGame


//----------------------------------------------------------------------
[MasteredThread]

WaitFor MasteredThread

recapture Harry
recapture Sprout
recapture challengescoremanager
recapture basecam

Harry runto Point1 *HarryDone1

basecam target flyto Harry staylocked time=1 *
basecam flyto EntryCam01 time=2

Waitfor HarryDone1

Harry runto Point2 *

basecam flyto IntroCam01 time=2

Sprout Talk PC_Spr_Chal3Diff_23 *SproutDone1
//Well, hello, Mr. Potter.  You have already mastered the Diffindo Challenge, so I can not award you any more House Points.

basecam flyto IntroCam03 time=3

WaitFor SproutDone1

Sprout Talk PC_Spr_Chal3Diff_24 *SproutDone2
//We have plenty of students who come back again and again, however.  Good luck!

basecam flyto IntroCam04

Waitfor SproutDone2

Sprout Talk PC_Spr_Chal3Diff_21 *SproutDone3
//Ready to begin? Good luck!  Ready, set, go!

basecam flyto IntroCam02 time=3

Waitfor SproutDone3

challengescoremanager beginchallenge *

Release challengescoremanager
Release Sprout
Release Harry
Release basecam

SaveGame
