#define MPWILD_UNIT X Y TYPE
    [unit]
        type={TYPE}
        side=5
        x={X}
        y={Y}
    [/unit]
#enddef

#define MPWILD_WALKING_CORPSE X Y VARIATION
	[unit]
		type=Walking Corpse
		side=5
		x={X}
		y={Y}
		variation={VARIATION}
	[/unit]
#enddef

[multiplayer]
	id=multiplayer_The_Wilderlands
	name= _ "4p - The Wilderlands"
	description= _ "A vast region of wild, untamed wilderness, its terrain dotted with forests, caves, rivers, and the ruins of ancient fortresses." + _ " Recommended setting of 1 gold per village."
	map_data="{multiplayer/maps/4p_The_Wilderlands.map}"

	{DEFAULT_SCHEDULE}
	{DEFAULT_MUSIC_PLAYLIST}

	[side]
	[ai]
	villages_per_scout=16
	[/ai]
	side=1
	canrecruit=1
	controller=human
	[/side]
	[side]
	[ai]
	villages_per_scout=16
	[/ai]
	side=2
	canrecruit=1
	controller=human
	[/side]
	[side]
	[ai]
	villages_per_scout=16
	[/ai]
	side=3
	canrecruit=1
	controller=human
	[/side]
	[side]
	[ai]
	villages_per_scout=16
	[/ai]
	side=4
	canrecruit=1
	controller=human
	[/side]
	[side]
	[ai]
	villages_value=0
	[/ai]
	side=5
	canrecruit=1
	controller=human
	description=_ "Monsters"
	[/side]

	[event]
	 name=prestart
	 [if]
	  [have_unit]
	   side=5
	  [/have_unit]
	  [then]
	   [kill]
	    animate=no
	    fire_event=no
	    side=5
	   [/kill]
	   {MPWILD_UNIT 38 36 (Sea Serpent)}
	   {MPWILD_UNIT 6 20 (Cuttle Fish)}
	   {MPWILD_UNIT 59 60 (Yeti)}
	   {MPWILD_UNIT 1 48 (Skeletal Dragon)}
	   {MPWILD_UNIT 32 38 (Giant Scorpion)}
	   {MPWILD_UNIT 23 43 (Giant Scorpion)}
	   {MPWILD_UNIT 38 19 (Giant Scorpion)}
	   {MPWILD_UNIT 27 35 (Giant Scorpion)}
	   {MPWILD_UNIT 59 23 (Giant Spider)}
	   {MPWILD_UNIT 58 18 (Giant Spider)}
	   {MPWILD_UNIT 28 55 (Tentacle of the Deep)}
	   {MPWILD_UNIT 23 21 (Ogre)}
	   {MPWILD_UNIT 24 20 (Young Ogre)}
	   {MPWILD_WALKING_CORPSE 18 18 saurian}
	   {MPWILD_WALKING_CORPSE 23 13 saurian}
	   {MPWILD_WALKING_CORPSE 17 14 saurian}
	   {MPWILD_WALKING_CORPSE 15 14 saurian}
	   {MPWILD_WALKING_CORPSE 18 15 saurian}
	   {MPWILD_WALKING_CORPSE 13 14 saurian}
	   {MPWILD_WALKING_CORPSE 13 16 saurian}
	   {MPWILD_WALKING_CORPSE 21 16 saurian}
	   {MPWILD_WALKING_CORPSE 20 13 saurian}
	   {MPWILD_WALKING_CORPSE 20 14 saurian}
	   [set_recruit]
		side=5
		type=""
	   [/set_recruit]
	   {MODIFY_UNIT x,y=38,36 canrecruit 1}
	  [/then]
	 [/if]
	[/event]

	[event]
	 name=die
	 first_time_only=no
	 [filter]
	  canrecruit=1
	  side=5
	 [/filter]
	 [store_unit]
	  [filter]
	   side=5
	   canrecruit=0
	  [/filter]
	  variable=newleader
	  kill=no
	 [/store_unit]
	 [if]
	  [variable]
	   name=newleader.length
	   greater_than=0
	  [/variable]
	  [then]
	   {VARIABLE newleader.canrecruit 1}
	   [unstore_unit]
	    variable=newleader
	   [/unstore_unit]
	  [/then]
	 [/if]
	[/event]

[/multiplayer]

#undef MPWILD_UNIT
#undef MPWILD_WALKING_CORPSE
