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

#DefaultSandStone

MAP
MMAAMMMMMMMMMMMMMMFFFAALLLLLLLL
MMMAAMMMMMMMFFMMMMFFFFAALLLLLLLL
MMMAAMMMMMFFFFFMMFFFLAALLLLLLLL
MMMAAAAFFFFFFFFFFFFFLLAALLLLLLLL
MMMAAAAFFFFFFFFFFLLLLLAALLLLLLL
MMMAAAAFFFFFFFFFFLLLLLAALLLLLLLL
MMAAAAAFFFFFFLLLLLLLLAALLLLLLLL
MMMAAAAFFFFFLLLLLLLLLAALLLLLLLLL
MFFFAFFFFLLLLLLLLLLLAALLLLLLLLL
FFFFFFFFFLLLLLLLLLLLLAALLLLLLLLL
FFFFFFFLLLLLLLLLLLLLLAALLLLLLLL
FFFFFFFLLLLLLLLLLLLLLLAALLLLLLLL
FFFFLLLLLLLLLLLLLLLLLAALLLLLLLL
FFFLLLLLLLLLLLLLLLLLLAWAALLLLLLL
FFLLLLLLLLLLLLLLLLLLAWWWALLLLLL
FFLLLLLLLLLLLLLLLLLLAWWWWAALLLLL
FLLLLLLLLLLLLLLLLLLLAWWWWWALLLL
LLLLLLLLLLLLLLLLLLLLAWWLWWALLLLL
LLLLLLLLLLLLLLLLLLLAWWLLWALLLLL
LLLLLLLLLLLLLLLLLLLLAWLLLLALLLLL
LLLLLLLLLLLLLLLLLLLLALLLLLALLLL
LLLLLLLLLLLLLLLLLLLLALLLLLALLLLL
LLLLLLLLLLLLLLLLLLLALLLLLLALLLL
LLLLLLLLLLLLLLLLLLLALLLLLLLALLLL
#===MAPEND===

#       
CONSTANTS
StepSpace1:5
StepSpace2:10
StepSpace3:14
StepEnemy1:2
StepEnemy2:6
StepEnemy3:11
StepEnemy4:17

OBJECTS
Pony:i=2,j=17,"name= ",code=luna
Pony:i=3,j=15,"name= ",code=blackwind

Monster:Code=bat,"Name=",i=15,j=6
Monster:Code=bat,"Name=",i=20,j=9
Monster:Code=bat,"Name=",i=17,j=6
Monster:Code=bat,"Name=",i=20,j=6

INITIAL
Stone:0
Food:450
Task:     
AssignAction:pony=luna,action=CutEmptySectorLuna
Permits:action=deny,code=all
Permits:action=allow,code=Harvest
Permits:action=allow,code=AttackNear
Permits:action=allow,code=AttackLong
Permits:action=allow,code=Teleport
Permits:action=allow,code=BuildFantom
Permits:action=allow,code=SleepEnemy
Permits:action=allow,code=SetupTeleport

SCRIPT      
Event:Step=0
Action:Type=SetFocus,i=2,j=14,immediate=true
Action:Type=Message,icon=luna_ico,"text= ,  ."
Action:Type=Message,icon=blackwind_ico,"text=,  ."
Action:Type=Message,icon=luna_ico,"text=     - ?      30    ."
Action:Type=Message,icon=blackwind_ico,"text= ,  ."
Action:Type=Message,icon=luna_ico,"text=  ...      ?"
Action:Type=Message,icon=blackwind_ico,"text=  -     .   ,  . , ,  ."
Action:Type=Message,icon=luna_ico,"text=   ,     .    ."
Action:Type=Message,icon=blackwind_ico,"text=   !"
Action:Type=Message,icon=luna_ico,"text= !   -     ."
Action:Type=Message,icon=blackwind_ico,"text= -    .        ."
Action:Type=ShowBattleTask

SCRIPT      
Event:Step=@StepSpace1@
Action:Type=SetFocus,i=26,j=11
Action:Type=NewObjectGroup,Object=EmptyPlace,i=26,j=11,count=5,radius=2
Action:Type=Message,icon=luna_ico,"text=-  .      !"
Action:Type=Message,icon=blackwind_ico,"text=  , .      ,    ."
Action:Type=SetPermits,action=allow,code=CutEmptySectorLuna
Action:Type=Message,icon=help_ico,"text=      ."

SCRIPT      
Event:Step=@StepSpace2@
Action:Type=SetFocus,i=6,j=19
Action:Type=NewObjectGroup,Object=EmptyPlace,i=6,j=19,count=4,radius=2

SCRIPT      
Event:Step=@StepSpace3@
Action:Type=SetFocus,i=20,j=4
Action:Type=NewObjectGroup,Object=EmptyPlace,i=20,j=4,count=7,radius=2

SCRIPT      
Event:Step=@StepEnemy1@
Action:Type=SetFocus,i=16,j=5
Action:Type=NewObjectGroup,Object=Monster,Code=ameba,Name=,i=16,j=5,count=3,radius=2
Action:Type=Message,icon=blackwind_ico,"text=,   .  ,    ."
Action:Type=Message,icon=luna_ico,"text=,    .    .    ."
Action:Type=SetPermits,action=allow,code=FireBomb1
Action:Type=SetPermits,action=allow,code=FireBomb2
Action:Type=SetPermits,action=allow,code=GuardPack1
Action:Type=SetPermits,action=allow,code=GuardPack2
Action:Type=Message,icon=help_ico,"text=     ,    2    2 - "

SCRIPT      
Event:Step=@StepEnemy2@
Action:Type=SetFocus,i=10,j=17
Action:Type=NewObjectGroup,Object=Monster,Code=troll,Name=,i=10,j=17,count=2,radius=2

SCRIPT      
Event:Step=@StepEnemy3@
Action:Type=SetFocus,i=20,j=5
Action:Type=NewObjectGroup,Object=MonsterTent,Code=tent,Name= ,i=20,j=5,count=1,radius=1

SCRIPT      
Event:Step=@StepEnemy4@
Action:Type=SetFocus,i=20,j=23
Action:Type=NewObjectGroup,Object=MonsterPortal,Code=darkportal_small,Name=,i=20,j=23,count=1,radius=1
Action:Type=Message,icon=luna_ico,"text=  ,       .    ,     .       ."
Action:Type=SetFlag,FlagName=final

SCRIPT
Event:Victory=True
Action:Type=Message,icon=luna_ico,"text= ,    ,   .    -     ,    . ,       ."
Action:Type=Message,icon=blackwind_ico,"text=  ,   ."

VICTORY
ByNoMonsterLeft:null
->ByNoSpaceLeft:addType=And
->ByFlag:FlagName=final,addType=And
