 
# F - Forest
# L - Land
# M - Mountain
# R - Ruines
# H - Home
# T - Tower

MAP
MMMMMMMMMMMMMMMQMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMQMMMMMMMMMMMMMMMM
MMMMFFFMMMFFFFFQMMFFFFMMFFF2MMM
MMMFFFFFFFFFFFFQFFFFFFFFFF222MMM
MMFFFFFFFFFFFFFQFFFFFFFFFFF2MMM
MMFFFFLLLLLLFFFQLLFFLLFFFFF2MMMM
MMFFFLLLLLLLLLQLLLLLLLLLFFF2MMM
MMMFFLLLLLLLLLLQLLLLLLLLLLF2FMMM
MMFFFLLLLLLLLLQLLLLLLLLLLL22MMM
MMMFFFLLLLLLLLQLLLQQLLLLLL222FMM
MMMFFLLLLLLLLQQLLQAQQLLLLL222MM
MMMFFFLLLLLLLLQQQQAAAQLLLLL222MM
MMFFFLLLLLLLLLQQQQQAQLLLLLL22MM
MMFFFLLLLLLLLLLLLLLQQLLLLLLF2FMM
MMFFLLLLLLLLLLLLLLLLLLLLLLL2FMM
MMFFFLLLLLLLLLLLLLLLLLLLLL222FMM
MMFFFFLLLLLLLLLLLLLFFFFFFFF2FMM
MMMFFFFFFLLLLFFFFFFFFFFFFFF2FMMM
MMMFFFFFFFFFFFFFFFFFMMFFFFFF2MM
MMMMFFMMFFFFFFFFFFFMMMMMFFFMMMMM
MMMMMMMMMMFFFFFMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
#===MAPEND===

#       
CONSTANTS
FireAttackStep:10
DefeatStep:30

OBJECTS
Pony:i=14,j=13,"name= ",code=twily
Pony:i=13,j=14,"name= ",code=rainbow
Pony:i=14,j=15,"name= ",code=pinki
Pony:i=15,j=13,"name=",code=flatter
Pony:i=15,j=14,"name=",code=rarity
Pony:i=15,j=15,"name=",code=applejack

Monster:Code=bat,"Name=",i=3,j=15,holdground=true
Monster:Code=bat,"Name=",i=3,j=14,holdground=true
Monster:Code=bat,"Name=",i=3,j=13,holdground=true
Monster:Code=bat,"Name=",i=2,j=9,holdground=true
Monster:Code=bat,"Name=",i=1,j=10,holdground=true
Monster:Code=bat,"Name=",i=2,j=11,holdground=true
Monster:Code=bat,"Name=",i=3,j=3,holdground=true
Monster:Code=bat,"Name=",i=2,j=4,holdground=true
Monster:Code=bat,"Name=",i=2,j=5,holdground=true
Monster:Code=bat,"Name=",i=1,j=7,holdground=true
Monster:Code=bat,"Name=",i=2,j=17,holdground=true

Monster:Code=ameba,"Name=",i=4,j=4,holdground=true
Monster:Code=ameba,"Name=",i=4,j=6,holdground=true
Monster:Code=ameba,"Name=",i=3,j=7,holdground=true
Monster:Code=ameba,"Name=",i=5,j=9,holdground=true
Monster:Code=ameba,"Name=",i=5,j=10,holdground=true
Monster:Code=ameba,"Name=",i=4,j=12,holdground=true
Monster:Code=ameba,"Name=",i=5,j=15,holdground=true
Monster:Code=ameba,"Name=",i=6,j=16,holdground=true
Monster:Code=ameba,"Name=",i=6,j=13,holdground=true

Monster:Code=troll,"Name=",i=6,j=6,holdground=true
Monster:Code=troll,"Name=",i=3,j=8,holdground=true
Monster:Code=troll,"Name=",i=6,j=10,holdground=true
Monster:Code=troll,"Name=",i=6,j=12,holdground=true
Monster:Code=troll,"Name=",i=2,j=14,holdground=true

Monster:Code=poison,"Name= ",i=5,j=7,holdground=true
Monster:Code=poison,"Name= ",i=3,j=11,holdground=true

#MonsterTwist:Code=twist,"Name=",i=5,j=14,holdground=true
#MonsterTwist:Code=twist,"Name=",i=6,j=8,holdground=true

MonsterTent:Code=tent,"Name= ",i=4,j=16,holdground=true
MonsterTent:Code=tent,"Name= ",i=6,j=3,holdground=true

Monster:Code=gidra,"Name=",i=4,j=9,holdground=true

Food:i=17,j=6,size=max
Food:i=18,j=6,size=max
Food:i=17,j=7,size=max
Food:i=18,j=7,size=max
Food:i=19,j=7,size=max
Food:i=17,j=8,size=max
Food:i=18,j=8,size=max

Food:i=12,j=6,size=max
Food:i=13,j=6,size=max
Food:i=12,j=7,size=max
Food:i=13,j=7,size=max
Food:i=14,j=7,size=max
Food:i=12,j=8,size=max
Food:i=13,j=8,size=max

Stone:i=20,j=9,size=min
Stone:i=21,j=9,size=medium
Stone:i=21,j=10,size=min
Stone:i=22,j=11,size=medium
Stone:i=21,j=12,size=medium
Stone:i=21,j=13,size=medium

INITIAL
Stone:0
Food:100
Task:        30 
AttackedDefeatString:
EmptyManager:40,40,40,40,40,40
Permits:action=deny,code=all
Permits:action=deny,code=all
Permits:action=allow,code=Harvest
Permits:action=allow,code=AttackNear
Permits:action=allow,code=AttackLong
Permits:action=allow,code=FreezeEnemy
Permits:action=allow,code=Teleport
Permits:action=allow,code=SonicRainbow
Permits:action=allow,code=Heal
Permits:action=allow,code=Restore
Permits:action=allow,code=CutEmptySector
Permits:action=allow,code=BuildTreeShield
Permits:action=allow,code=BuildCrystalTowerBig
Permits:action=allow,code=BuildCrystalTowerSmall
Permits:action=allow,code=FlatterView
Permits:action=allow,code=Repair
Permits:action=allow,code=MagicRepair

SCRIPT      
Event:Step=0
Action:Type=SetFocus,i=15,j=13,immediate=true
Action:Type=Message,icon=twily_ico,"text=,    ...       ,          ."
Action:Type=SetFocus,i=2,j=12
Action:Type=Message,icon=pinki_ico,"text=   ?"
Action:Type=SetFocus,i=25,j=11
Action:Type=Message,icon=rarity_ico,"text=!!!"
Action:Type=Message,icon=twily_ico,"text=,     ! ...    , ..."
Action:Type=SetFocus,i=15,j=8
Action:Type=Message,icon=applejack_ico,"text=  ,     ,    ."
Action:Type=Message,icon=twily_ico,"text=,     .   !     -    ."
Action:Type=ShowBattleTask

# ====   

SCRIPT
Event:Step=1
Action:Type=Message,icon=applejack_ico,"text=   ?"
Action:Type=Message,icon=twily_ico,"text=...      . ,        ?"
Action:Type=Message,icon=rarity_ico,"text=, ,  ,     ,      ,     !   ... ...  !"
Action:Type=Message,icon=twily_ico,"text=    ?"
Action:Type=Message,icon=rarity_ico,"text= .   ,    ."
Action:Type=Message,icon=twily_ico,"text=    , !"

SCRIPT
Event:Step=2
Action:Type=SetFocus,i=4,j=9
Action:Type=Message,icon=rainbow_ico,"text= !    ?"
Action:Type=Message,icon=applejack_ico,"text= ...     .  ...    .      . ,     ,   ?"
Action:Type=Message,icon=rarity_ico,"text=,     . -,      ."
Action:Type=Message,icon=applejack_ico,"text=,      ,      ?"
Action:Type=Message,icon=twily_ico,"text=        -       ,     ."
Action:Type=Message,icon=applejack_ico,"text=,  ."
Action:Type=Message,icon=help_ico,"text=   4     ,       ."
Action:Type=SetPermits,action=allow,code=ForceShield

# ====   ====

SCRIPT
Event:Step=@FireAttackStep@
Action:Type=Message,icon=twily_ico,"text=    .  !    !  ..."
Action:Type=FireTotalAttack

# 
SCRIPT
Event:Step=@DefeatStep@
Action:Type=Message,icon=twily_ico,"text= .    ." 
Action:Type=SetDefeat,"DefeatStr= "


# ===== 

SCRIPT
Event:Victory=True
Action:Type=Message,icon=twily_ico,"text=  .  ... !"
Action:Type=Message,icon=rarity_ico,"text=!         .      ? ? ?"
Action:Type=Message,icon=twily_ico,"text=  , .    ."

VICTORY
ByNoMonsterLeft:null
->ByNoSpaceLeft:addType=And
