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

MAP
FFMMMMMMMMMMMMMMMMMMMMMMMMMMMM
FFMMMMMMMMMMMMMMMMMMMMMMMMMMMLM
FFFMMMMMMMMMMMMLLLLLLLLMMMMLLL
FFFMMMMMMMMMLLLLLMMMMLLLLMLLLLL
FFFMMMMMMLLLMMMMMMMMMMMLLLLLLL
FFFFMMMMMLMMMMMMMMMMMMMLMMMMMLM
FFFFMMMMLMMMMMMMMMMMMMMLMMMMMM
FFFFFMLLLMMMMMMMMMMMMMMLMMMMMMM
LLFFLLLLMMMMMMMMMMMMMMLMMMMMMM
LLLLLLFFMMMMMMMMMMMMMMLMMMMMMMM
LLLLFFFMMMMMMMMMMFFFMMMMMMMMMM
LLLFFFFMMMMMMMMMFLLHFMMMMMMMMMM
#===MAPEND===

OBJECTS
Pony:i=2,j=10,"name=",code=rarity
#Pony:i=28,j=3,"name=",code=rarity
Pony:i=1,j=9,"name=",code=applejack
Building:Code=TreeShield,i=16,j=3
Building:Code=TreeShield,i=19,j=10
Building:Code=TreeShield,i=29,j=1
Building:Code=TreeShield,i=29,j=5
Building:Code=TreeShield,i=27,j=3
Neutral:Code=tower,Name=,i=29,j=3,targeted=true
#===OBJECTSEND===

INITIAL
Stone:0
Food:250
Task:    
Permits:action=deny,code=all
Permits:action=allow,code=BuildFarmFood
Permits:action=allow,code=Harvest
Permits:action=allow,code=AttackNear
Permits:action=allow,code=AttackLong
Permits:action=allow,code=FreezeEnemy
Permits:action=allow,code=Repair
Permits:action=allow,code=MagicRepair

SCRIPT      
Event:Step=0
Action:Type=SetFocus,i=2,j=10,immediate=true
Action:Type=Message,icon=rarity_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=SetFocus,i=30,j=3
Action:Type=ShowBattleTask

SCRIPT      
Event:Step=1
Action:Type=SetFocus,i=20,j=11
Action:Type=Message,icon=rarity_ico,"text=   !==> 
    ,      ==>
 .    .    ==>
,    ... ."
Action:Type=Message,icon=applejack_ico,"text=     ==>
   ? ..."
Action:Type=SetBattleTask,code=habar,isreq=false,"Task=     "
Action:Type=Message,icon=ok_ico,"text= : ==>
    ."

SCRIPT
Event:ObjectPos=True,i=19,j=11,Object=rarity,IncludeLinked=true
Action:Type=Message,icon=rarity_ico,"text=   ? ==>
    ... ==>
 ,  ...   . ?!"
Action:Type=Message,icon=applejack_ico,"text=     !"
Action:Type=CompBattleTask,code=habar

SCRIPT      
Event:Step=2
Action:Type=SetFocus,i=18,j=5
Action:Type=NewObject,Object=EmptyPlace,i=18,j=1
Action:Type=NewObject,Object=EmptyPlace,i=18,j=2
Action:Type=NewObject,Object=EmptyPlace,i=19,j=3
Action:Type=NewObject,Object=EmptyPlace,i=18,j=4
Action:Type=NewObject,Object=EmptyPlace,i=18,j=5
Action:Type=NewObject,Object=EmptyPlace,i=19,j=2
Action:Type=NewObject,Object=EmptyPlace,i=19,j=4
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=rarity_ico,"text=  ...  - ==>
  ,    . ==>
  ."
Action:Type=Message,icon=applejack_ico,"text=   , . ==>
  ."
Action:Type=SetPermits,action=allow,code=CutEmptySector
Action:Type=Message,icon=help_ico,"text= : ==>
 ."

SCRIPT      
Event:Step=3
Action:Type=SetFocus,i=16,j=3
Action:Type=Message,icon=rarity_ico,"text=    ! ==> 
,      .==>
,     ?"
Action:Type=Message,icon=applejack_ico,"text=  ! ==>
 - ."
Action:Type=Message,icon=help_ico,"text= : ==>
   ."
Action:Type=SetPermits,action=allow,code=BuildTreeShield

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

VICTORY
ByObjectPos:Object=rarity,i=29,j=3,IncludeLinked=true
->ByObjectPos:Object=applejack,i=29,j=3,IncludeLinked=true,AddType=And
