[@Main]
#IF
CHECK [500] 1
#ACT
GOTO @check0
#ELSEACT
CHECK [501] 1
#ACT
GOTO @check1
#ELSEACT
CHECK [502] 1
#ACT
GOTO @check2
#ELSEACT
CHECK [503] 1
#ACT
GOTO @check3
#ELSEACT
CHECK [504] 1
#ACT
GOTO @check4
#ELSEACT
CHECK [505] 1
#ACT
GOTO @check5
#ELSEACT
CHECK [506] 1
#ACT
GOTO @check6
#ELSEACT
CHECK [507] 1
#ACT
GOTO @check7
#ELSEACT
CHECK [508] 1
#ACT
GOTO @check8
#ELSEACT
CHECK [509] 1
#ACT
GOTO @check9
#ELSEACT
CHECK [510] 1
#ACT
GOTO @check10
#ELSEACT
CHECK [511] 1
#ACT
GOTO @check11
#ELSEACT
CHECK [512] 1
#ACT
GOTO @check12
#ELSEACT
CHECK [513] 1
#ACT
GOTO @check13
#ELSEACT
CHECK [514] 1
#ACT
GOTO @check14
#ELSEACT
CHECK [515] 1
#ACT
GOTO @check15
#ELSEACT
CHECK [516] 1
#ACT
GOTO @check16
#ELSEACT
CHECK [517] 1
#ACT
GOTO @check17
#ELSEACT
CHECK [518] 1
#ACT
GOTO @check18
#ELSEACT
CHECK [519] 1
#ACT
GOTO @check19
#ELSEACT
CHECK [520] 1
#ACT
GOTO @check20

[@check0]
#SAY
Welcome.
From now on many monsters will appear in this chamber.
Test what you are capable of by defeating the monsters.
There are 20 stages altogether.
I wonder if you can beat them all...
Will you start the challenge?

<I'm ready./@start1>

[@start1]
#ACT
SET [500] 0
SET [501] 1
Param1 EM001
Param2 13
Param3 16
MonGen SpittingSpider 1
MonGen Oma 2
MonGen RakingCat 2

[@check1]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start2>
<I've had enough. Let me go./@finish>

[@start2]
#ACT
SET [501] 0
SET [502] 1
Param1 EM001
Param2 13
Param3 16
MonGen CaveMaggot 1
MonGen AxeSkeleton 1
MonGen BoneWarrior 1
MonGen BoneFighter 3

[@check2]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start3>
<I've had enough. Let me go./@finish>

[@start3]
#ACT
SET [502] 0
SET [503] 1
Param1 EM001
Param2 13
Param3 16
MonGen CursedShaman 1
MonGen CursedPriest 1
MonGen ShamanZombie 1
MonGen CrawlerZombie 2

[@check3]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start4>
<I've had enough. Let me go./@finish>

[@start4]
#ACT
SET [503] 0
SET [504] 1
Param1 EM001
Param2 13
Param3 16
MonGen SandWorm 3
MonGen OmaFighter 2
MonGen OmaWarrior 1

[@check4]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start5>
<I've had enough. Let me go./@finish>

[@start5]
#ACT
SET [504] 0
SET [505] 1
Param1 EM001
Param2 13
Param3 16
MonGen Dung 1
MonGen Dark 1
MonGen FlamingWooma 2
MonGen WoomaFighter 2

[@check5]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start6>
<I've had enough. Let me go./@finish>

[@start6]
#ACT
SET [505] 0
SET [506] 1
Param1 EM001
Param2 13
Param3 16
MonGen GiantWorm 2
MonGen Centipede 2
MonGen Tongs 2

[@check6]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start7>
<I've had enough. Let me go./@finish>

[@start7]
#ACT
SET [506] 0
SET [507] 1
Param1 EM001
Param2 13
Param3 16
MonGen WedgeMoth 2
MonGen RedBoar 1
MonGen BlackBoar 2

[@check7]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.
<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start8>
<I've had enough. Let me go./@finish>

[@start8]
#ACT
SET [507] 0
SET [508] 1
Param1 EM001
Param2 13
Param3 16
MonGen SpiderBat 1
MonGen GreatSpider 1
MonGen LureSpider 1
MonGen VenomSpider 2

[@check8]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start9>
<I've had enough. Let me go./@finish>

[@start9]
#ACT
SET [508] 0
SET [509] 1
Param1 EM001
Param2 13
Param3 16
MonGen BigApe 1
MonGen EvilApe 1
MonGen RedEvilApe 1

[@check9]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start10>
<I've had enough. Let me go./@finish>

[@start10]
#ACT
SET [509] 0
SET [510] 1
Param1 EM001
Param2 13
Param3 16
MonGen BoneArcher 1
MonGen BoneBlademan 1
MonGen BoneCaptain 1

[@check10]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start11>
<I've had enough. Let me go./@finish>

[@start11]
#ACT
SET [510] 0
SET [511] 1
Param1 EM001
Param2 13
Param3 16
MonGen LeftGuard 1
MonGen WindMinotaur 1
MonGen FireMinotaur 2

[@check11]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start12>
<I've had enough. Let me go./@finish>

[@start12]
#ACT
SET [511] 0
SET [512] 1
Param1 EM001
Param2 13
Param3 16
MonGen RightGuard 1
MonGen FireMinotaur 1
MonGen EvilApe 1

[@check12]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start13>
<I've had enough. Let me go./@finish>

[@start13]
#ACT
SET [512] 0
SET [513] 1
Param1 EM001
Param2 13
Param3 16
MonGen ZumaStatue 1

[@check13]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start14>
<I've had enough. Let me go./@finish>

[@start14]
#ACT
SET [513] 0
SET [514] 1
Param1 EM001
Param2 13
Param3 16
MonGen WedgeMoth 1
MonGen RightGuard 1
MonGen ZumaGuardian 1

[@check14]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start15>
<I've had enough. Let me go./@finish>\

[@start15]
#ACT
SET [514] 0
SET [515] 1
Param1 EM001
Param2 13
Param3 16
MonGen AxeOma 1

[@check15]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start16>
<I've had enough. Let me go./@finish>

[@start16]
#ACT
SET [515] 0
SET [516] 1
Param1 EM001
Param2 13
Param3 16
MonGen OmaGuard 1

[@check16]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start17>
<I've had enough. Let me go./@finish>

[@start17]
#ACT
SET [516] 0
SET [517] 1
Param1 EM001
Param2 13
Param3 16
MonGen FlailOma 1

[@check17]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start18>
<I've had enough. Let me go./@finish>

[@start18]
#ACT
SET [517] 0
SET [518] 1
Param1 EM001
Param2 13
Param3 16
MonGen WoomaGuardian 1

[@check18]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start19>
<I've had enough. Let me go./@finish>

[@start19]
#ACT
SET [518] 0
SET [519] 1
Param1 EM001
Param2 13
Param3 16
MonGen Woomataurus 1

[@check19]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
You defeated them all already.
But there are still more to go.
Will you continue the challenge?

<Proceed./@start20>
<I've had enough. Let me go./@finish>

[@start20]
#ACT
SET [519] 0
SET [520] 1
Param1 EM001
Param2 13
Param3 16
MonGen EvilSnake 1

[@check20]
#IF
CHECKMON EM001 1
#SAY
You haven't beat them yet.
Before deafeating the monsters,
You cannot proceed to the next stage.

<Okay./@exit>
#ELSESAY
Wow, you defeated them all!!
Oh... how can someone be so mighty...
I'm so honored to meet you.
You are the true hero can save the continent
when the crisis arrives.
I'll send you back to the village with a prize.

<Thank you./@finish>

[@finish]
#IF
CHECK [520] 1
#ACT
SET [500] 1
SET [501] 0
SET [502] 0
SET [503] 0
SET [504] 0
SET [505] 0
SET [506] 0
SET [507] 0
SET [508] 0
SET [509] 0
SET [510] 0
SET [511] 0
SET [512] 0
SET [513] 0
SET [514] 0
SET [515] 0
SET [516] 0
SET [517] 0
SET [518] 0
SET [519] 0
SET [520] 0
GIVEITEM BenedictionOil 1
GIVEGOLD 50000
MOVE 0 331 270
#ELSEACT
SET [500] 1
SET [501] 0
SET [502] 0
SET [503] 0
SET [504] 0
SET [505] 0
SET [506] 0
SET [507] 0
SET [508] 0
SET [509] 0
SET [510] 0
SET [511] 0
SET [512] 0
SET [513] 0
SET [514] 0
SET [515] 0
SET [516] 0
SET [517] 0
SET [518] 0
SET [519] 0
SET [520] 0
MOVE 0 331 270