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

DESCRIPTION
         ==>
  . ,     ==> 
     ...

MAP
FFFFFFFFFFFFFFFFFFFLLLLLLLWLLLALLLALLLALLL
FFFFFFFFFFFFFFFFFFFLLLLLLLLWLLALLLALLLALLLL
FFFFFFFFFFFFFFFFFFLLLLLLLLLWLALLLALLLALLLL
FFFFFFFFFFFFFFFFFFLLLLLLLLLWWALLLALLLALLLLL
FFFFFFFFFFFFFFFFFFLLLLLLLLWLWLLLALLLAHLHLL
FFFFFFFFFFFFFFFFFFLLLLLLLLWLLWWWWLLLALLLLLL
FFFFFFFFFFFFFFFFFFLLLLLLLWLLLLLLWLLALLELLL
FFFFFFFFFFFFFFFFFFFLLLLLLLWLLLLLLWLAHLLTLLL
FFFFFFFFFFFFFFFFFFLLLLLLLLWLLLLLLWALLLELLL
FFFFFFFFFFFFFFFFFFLLLLLLLLWLLLLLLWLLLLLLLLL
FFFFFFFFFFFFFFFFFLLLLLLLLWLLLLLLWLLLLELHLL
FFFFFFFFFFFFFFFFLLLLLLLLLWLLLLLLWLLLLLWLALL
FFFFFFFFFFFFFFFLLLLLLWWWWLLLLLLWLLLWWWLLAL
FFFFFFFFFFFFFLLLLLLLLWLLLLLLLLLLWWWWLALLLAL
FFFFFFFFFFFFLLLLLLLLWLLLLLLLLLLLWALLLALLLA
FFFFFFFFFFFFLLLLLLLLWLLLLLLLLLWWWWALLLALLLA
FFFFFFFFFFFFLLLLWWWWLLLLLLLLLLALLWALLLALLL
FFFFFFFFFFFFFLLLWLLLLLLLLLLLLLLALLWALLLALLL
FFFFFFFFFFFFFLLWLLLLLLLLLLLLLLLALLWALLLALL
FFFFFFFFFFFFFLLWLLLLLLLLLLLLLLLLALLWALLLALL
#===MAPEND===

CONSTANTS
WolfX:10
WolfY:5
count1:3
count2:5
count3:2
count4:2

OBJECTS
Pony:i=20,j=4,"name=",code=celestia,SpriteTag=celestiayoung,IconTag=celestiayoung
Pony:i=20,j=8,"name=",code=luna,SpriteTag=lunayoung,IconTag=lunayoung
Neutral:i=20,j=6,Code=starswirl,"name= "
Monster:i=@WolfX@,j=@WolfY@,Code=woodwolf,@Name= @,tag=wolf
Building:Code=TreeApple,i=31,j=16,tag=tree
Building:Code=TreeApple,i=33,j=17,tag=tree
Building:Code=TreeApple,i=33,j=19,tag=tree
Building:Code=TreeApple,i=34,j=14,tag=tree
Building:Code=TreeApple,i=37,j=15,tag=tree
Building:Code=TreeApple,i=36,j=17,tag=tree
Building:Code=TreeApple,i=38,j=17,tag=tree
Building:Code=TreeApple,i=38,j=13,tag=tree
Building:Code=TreeApple,i=40,j=14,tag=tree
Building:Code=TreeApple,i=39,j=16,tag=tree
Building:Code=TreeApple,i=41,j=18,tag=tree
Building:Code=TreeApple,i=33,j=1,tag=tree
Building:Code=TreeApple,i=30,j=2,tag=tree
Building:Code=TreeApple,i=31,j=4,tag=tree
Building:Code=TreeApple,i=34,j=7,tag=tree
Building:Code=TreeApple,i=33,j=5,tag=tree
Building:Code=TreeApple,i=35,j=4,tag=tree
Building:Code=TreeApple,i=34,j=2,tag=tree


INITIAL
Stone:0
Food:500
Task:  
Permits:action=deny,code=all
Permits:action=allow,code=AttackNear
Permits:action=allow,code=AttackLong
Permits:action=allow,code=Teleport

SCRIPT      
Event:Step=0
Action:Type=SetFocus,i=20,j=6,immediate=true
Action:Type=Message,icon=starswirl_ico,"text=   , ==>
 , ,      .     ?"
Action:Type=Message,icon=celestiayoung_ico,"text=, .    ,  ==>
     ."
Action:Type=Message,icon=starswirl_ico,"text=     , .      ==>
  ."
Action:Type=Message,icon=lunayoung_ico,"text= ?"
Action:Type=Message,icon=starswirl_ico,"text=, .    .         ,   !"
Action:Type=Message,icon=celestiayoung_ico,"text=   .   ?"
Action:Type=SetFocus,i=@WolfX@,j=@WolfY@
Action:Type=Message,icon=starswirl_ico,"text=  -     .     ."
Action:Type=ShowBattleTask

SCRIPT
Event:TagCount=0,TagName=wolf
Action:Type=CompBattleTask,code=initial
Action:Type=Message,icon=celestiayoung_ico,"text=  ."
Action:Type=Message,icon=starswirl_ico,"text=       ,  ."
Action:Type=NewObjectGroup,Object=Monster,Code=bat,"Name=",i=10,j=6,count=@count1@,radius=2,autofocus=true,tag=bat1
Action:Type=SetBattleTask,code=bat1,"Task=  "
Action:Type=ShowBattleTask
Action:Type=SetFlag,FlagName=bat1

SCRIPT
Event:TagCount=0,TagName=bat1
Event2:Flag=bat1
Action:Type=CompBattleTask,code=bat1
Action:Type=NewObjectGroup,Object=Monster,Code=bat,"Name=",i=25,j=8,count=@count2@,radius=3,autofocus=true,tag=bat2
Action:Type=Message,icon=celestiayoung_ico,"text=,     -   ?"
Action:Type=Message,icon=starswirl_ico,"text=-, , ...    !       ."
Action:Type=Message,icon=lunayoung_ico,"text=   ,     ."
Action:Type=SetBattleTask,code=bat2,"Task=  "
Action:Type=SetBattleTask,code=trees,"Task=   10 ."
Action:Type=ShowBattleTask
Action:Type=SetFlag,FlagName=bat2

SCRIPT
Event:TagCount=0,TagName=bat2
Event2:Flag=bat2
Action:Type=CompBattleTask,code=bat2
Action:Type=Message,icon=lunayoung_ico,"text= ,    - ?"
Action:Type=Message,icon=starswirl_ico,"text=, ... . ,   .       ?"
Action:Type=Message,icon=celestiayoung_ico,"text=...   .  ,         ."
Action:Type=NewObjectGroup,Object=Monster,Code=batpoison,"Name= ",i=12,j=5,count=@count3@,radius=5,autofocus=true,tag=bat3
Action:Type=Message,icon=lunayoung_ico,"text=   c, ?        ."
Action:Type=Message,icon=help_ico,"text=  -     ,      ."
Action:Type=SetPermits,action=allow,code=FireBall
Action:Type=SetPermits,action=allow,code=SunBeam
Action:Type=SetBattleTask,code=bat3,"Task=  "
Action:Type=SetFlag,FlagName=bat3

SCRIPT
Event:TagCount=0,TagName=bat3
Event2:Flag=bat3
Action:Type=CompBattleTask,code=bat3
Action:Type=Message,icon=lunayoung_ico,"text=,   ,       ."
Action:Type=Message,icon=starswirl_ico,"text=,   -   .  ,    -  ,    ."
Action:Type=NewObjectGroup,Object=Monster,Code=batgreat,"Name= ",i=10,j=8,count=@count4@,radius=5,autofocus=true,tag=bat4
Action:Type=Message,icon=starswirl_ico,"text= . ,   .          ."
Action:Type=Message,icon=lunayoung_ico,"text=, .  ,   ,  ,        ?"
Action:Type=Message,icon=help_ico,"text=  -    -  ."
Action:Type=SetPermits,action=allow,code=SleepEnemy
Action:Type=SetPermits,action=allow,code=BuildFantom
Action:Type=SetBattleTask,code=bat4,"Task=  "
Action:Type=SetFlag,FlagName=bat4

SCRIPT
Event:TagCount=0,TagName=bat4
Event2:Flag=bat4
Action:Type=CompBattleTask,code=bat4
Action:Type=Message,icon=lunayoung_ico,"text=  ?"
Action:Type=Message,icon=starswirl_ico,"text=, .     ,     ,      .    ... ."
Action:Type=NewObjectGroup,Object=Monster,Code=batred,"Name=",i=5,j=8,count=8,radius=5,autofocus=true
Action:Type=NewObjectGroup,Object=Monster,Code=bat,"Name=",i=5,j=8,count=6,radius=5,autofocus=true
Action:Type=NewObjectGroup,Object=Monster,Code=batpoison,"Name= ",i=5,j=8,count=4,radius=5,autofocus=true
Action:Type=NewObjectGroup,Object=Monster,Code=batgreat,"Name= ",i=5,j=8,count=2,radius=5,autofocus=true
Action:Type=Message,icon=celestiayoung_ico,"text= ,       .  !"
Action:Type=SetBattleTask,code=batfinal,"Task=  ."
Action:Type=SetFlag,FlagName=batfinal

# Defeat
SCRIPT
Event:TagCount=9,TagName=tree,Compare=LessOrEqual
Action:Type=Message,icon=starswirl_ico,"text=  !" 
Action:Type=SetDefeat,"DefeatStr= "

SCRIPT
Event:Victory=True
Action:Type=Message,icon=celestiayoung_ico,"text= , .   ."
Action:Type=Message,icon=starswirl_ico,"text=-, ,      ." 

VICTORY
ByNoMonsterLeft:null
->ByFlag:FlagName=batfinal,AddType=And
