Globals {
	TalkPause		60	// минимальное время с предыдущего разговора для 
			        	// жителя чтобы начать новый разговор с тем же жителем
	TalkMinDistance 	25	// минимальная дистанция с которой жители могут начать разговор
	TalkMaxDistance		30	// максимальная дистанция с которой жители могут начать разговор
	MinPhrases		1	// минимальное количество фраз на предложение
	MaxPhrases		2	// максимальное количество фраз на предложение
	MinSentences		4	// минимальное количество предложений в разговоре
	MaxSentences		6	// максимальное количество предложений в разговоре
	MageBadLuck		0	// вероятность того что маг при телепортации упадет в воду (в процентах)
	ElfSingDuration 	4	// сколько раз повторять анимацию Sing у Эльфа
	MinWaveInterval 	1	// сколько секунд должно пройти с предыдущей анимации Wave
					// для того чтобы житель мог махать по новой
				
	KaravellaPortStayTime	60	// сколько секунд каравелла стоит в порту
	KaravellaVoyageTime	240
	
	AvatarEndGameSpeed 30

	// сколько секунд каравелла в плавании (за экраном)
				
	SalutePause		45	// пауза между фейрверками от мага

	HidePause		50	//пауза между анимашкой дендроида(спрятатся)
	
	MinStayIdleTime		300	// минимальное время, в течении которого житель стоит неподвижно
	MaxStayIdleTime		2000	// максимальное время, в течении которого житель стоит неподвижно
	
	DonkeyMinDistance	30	// если ослик ближе этого расстояния от торговца то он останавливается
	DonkeyMaxDistance	35	// если ослик дальше чем это расстояние от торговца то он бежит за ним
	
	ButterflyStayFPS	2
	
	// Dwellers' Income: 
	
	IncomeMerchantMarket	"7, 0, 0, 0, 0"
	IncomeMerchantField	"50, 0, 0, 0, 0"
	IncomeMerchantCastle	"7, 0, 0, 0, 0"
	IncomeTrollBridge	"30, 0, 0, 0, 0"
	IncomeKnight		"20, 0, 0, 0, 0"
	IncomeKnightFrequency	40
	IncomeElfSing		"30, 0, 0, 0, 0"
	IncomeCaptain		"50, 1, 1, 0, 0"
	IncomeCaptainLuck	10
	IncomeDwarfMine		"10, 0, 0, 0, 0"
	IncomeDwarfDoor		"20, 0, 0, 0, 0"
	IncomeDwarfLuck		10
	IncomeMage		"30, 1, 1, 1, 0"	// Особенность: маг получает ОДИН из перечисленных 
							// ресурсов случайным образом.
	
	DayTime 		900	// 15 minutesg

	PlotWavePeriod		25

	DendroidAppearQuestNumber 	100
	TrollAppearQuestNumber	300

	TrollAppearPosition		"569 234"
	DendroidAppearPosition	"100 100"
}

Merchant {
	Speed			19
	CoordShiftX		0
	CoordShiftY		"-14"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		36
		FrameHeight		41
	
		Walk {
			FPS 25
		}
		Stay {
			FPS 8
			
			anim0 "0-2,2,2,2,3-6,6,6,6,6,6,6,5-2,2,2,3-7,0,0"
			anim1 "0,7-6,6,6,6,6-4,4,4,4,4-7,0,0,0,0,0-2,2,2,2,2,2,2-0,0"
			anim2 "0,0,0-2,2,2,2,2,2,2-6,6,6,6,6,6,6-4,4,4,4-6,6,6,6-2,2,2,2,2,2,2,2-5,5,5,5-7,0"
		}
		Talk {
			FPS 8
			
			anim0 "0-4,3-0"
			anim1 "0-8,7-4,5-9,0"
			anim2 "0-6,6,5-2,2,3-8,7-4,4,5-9,0"
		}
//		Farm {
//			FPS 8
//		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-6,7-8,7-6,7-8,7-0"
//		}
	}
}

Donkey {
	Speed			19
	CoordShiftX		0
	CoordShiftY		"-15"
	Delay			1.7
	PreviewAnim		"Walk 7"
	TalkAnim		""
	Anim {
		FrameWidth		66
		FrameHeight		56
		Walk {
			FPS 25
		}
		Stay {
			FPS 8
			
			anim0 "0-6,5-4,4,4,5-6,6,5-4,4,5-6,5-0,0,0"
			anim1 "0-2,2,2,2,2,2,1,1,1,1,1,1,1,1,1,1,1,1-3,3,3,3,3-6,6-3,3,3,3,3-0,0"
			anim2 "0,0,0-3,3,3,3,3-6,6-4,4-6,6,6,6,6-4,4-6,6-2,2,2,2,2,2,2-0,0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Troll {
	Speed			19
	CoordShiftX		0
	CoordShiftY		"-16"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		36
		FrameHeight		45
		Walk {
			FPS 25
		}
		Stay {
			FPS 8
			
			anim0 "0,0,0-2,2,2,2,2-4,4,4,4,4,4-2,2,2,2,2,2,2,2-6,6,6,6,6-8,8,8,8-6,6,6,6,6,6-8,8,8,8,8,8-2,2,2,2-0,0"
			anim1 "0-2,2,2,2-4,4,4,4,4,4-6,6,6,6,6-4,4,4,4-6,6,6,6,6,6,7,7,7,7,7-2,2,2,2-0,0,0"
			anim2 "0,0,0,1,4,4,4,4,4-6,6,6,6,6,6-8,8,8,8,8,7,7,7,7,7,7,8,8,8,8,8-2,2,2,2,2-4,4,4,1,0,0"
		}
		Talk {
			FPS	8
			
			anim0 "0-5,5-0"
			anim1 "0-9,0"
			anim2 "0-2,2,2-0,0-4,4,4,4,5,7-9,9,9,0-2,2-0,9-7,7,7-9,0"
		}
		Sit {
			FPS 8
		}
//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-6,7-8,7-6,7-8,7-0"
//		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Knight {
	Speed			23
	CoordShiftX		0
	CoordShiftY		"-27"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		48
		FrameHeight		65
		Walk {
			FPS 25
		}
		Stay {
			FPS 8
			
			anim0 "0-5,0"
			anim1 "0-2,2,2,2,2,2,2-4,3,3,3,3,3,3,3,3,3-5,5,5-2,2,2,2,2,2,2-0,0"
			anim2 "0,5,4,4,4,4,4,4,4-2,2,2,2,2-0,0"
		}
		Talk {
			FPS	8
			
			anim0 "0-4,4-2,2,2-3,3,3-0,0,0"
			anim1 "0-4,4,4,4-7,7,7,7,6,6,5,5,6,7,0,0"
			anim2 "0-4,4,4,4-2,2-4,5,5,5,5-7,7,7-5,5,5,5,6,6,6,7,0,0,0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
//		Wave {
//			FPS 10
//			
//			anim0 "0-9,0"
//		}
	}
}

Elf {
	Speed			18
	CoordShiftX		0
	CoordShiftY		"-17"
	DialogAnimationRight	"Dance 0"
	DialogAnimationLeft	"Dance 0"
	PreviewAnim		"Dance 0"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		25
		FrameHeight		45
		Walk {
			FPS 25
		}
		Stay {
			FPS 8
			
			anim0 "0-4,4-2,2,2,2,2,2-4,4,4,4,4-2,2-4,4-0,0,0"
			anim1 "0-2,2,2-4,4,4,4,4-2,2,2-0"
			anim2 "0-3,3,3,2,3,2,3,2,2,2,2-4,4,4-0"
		}
		Sing {
			FPS 8
			
			anim0 "0-6,5-4,5-9,8-6,6-10,9-7,6-4,5-10,9-0"
		}
		Dance {
			FPS 18
		}
		Position {
			FPS 10
			anim0 "0-7"
			anim1 "7-0"
		}
//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-6,7-8,7-6,7-8,7-0"
//		}
	}
}

Captain {
               Speed                        20
               CoordShiftX                0
               CoordShiftY                "-17"
		 DialogAnimationRight	"Walk 7"
		 DialogAnimationLeft 	"Walk 1"
               PreviewAnim                "Walk 7"
		 TalkAnim		"Walk"
               Anim {
                       FrameWidth                34
                       FrameHeight                41
               
                       Position {
                               FPS 10
                       
                               anim0 "0-7"
                               anim1 "7-0"
                       }

			  Walk {
			        FPS 25
			  }

			  Stay {
			 	 FPS 8
			
				 anim0 "0-9,9,9,9-12,12,12,12,12-9,9,9-12,12,12-18"
				 anim1 "19-27,27,27,27,27-22,22,22,22-29,0,0"
				 anim2 "0-10,10,10,10,10-0,19-27,27,27,25-12,12,12,12-7,7,7,7-9,9-0,0"
			  }
			  
			  Talk {
				 FPS 12
			
			
				 anim0 "0-5,5,5,5-0,0-7,7,7-3,3,3-13,0"
				 anim1 "0-13,0,0"
				 anim2 "0-7,7,7-4,4,4,4-10,10-5,5-13,0,0"
			  }


//                       Look {
//                             FPS 10
//
//			       anim0 "0-17,16-5,6-19"
//                       }
               }        
       }

Fairy {
	Speed			25
	CoordShiftX		0
	CoordShiftY		"-12"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		38
		FrameHeight		42
		Walk {
			FPS 25
		}
		Talk {
			FPS 12
			
			anim0 "0-6,5-1"
			anim1 "0-8,7-4,5-6,5-1"
			anim2 "0-8,7-2,3-6,5-4,5-8,7-1"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}

//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-6,7-8,7-6,7-8,7-0"
//		}
	}
}

Dwarf {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"-16"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		46
		FrameHeight		50
		Walk {
			FPS 25
		}
		Stay {
			FPS 10
			
			anim0 "0,0,0-4,4,4,4,4,4-0,0,0"
			anim1 "0,0-4,4,4,4,4-0,0,0"
			anim2 "0,0-4,4,4,4-0,0,0,0,0"
			anim3 "0,0,17-10,10,10-17,0,0"
		}
		Talk {
			FPS 12
			
			anim0 "0-2,2,2-0,0,4-8,8,8-4,0,0,0"
			anim1 "0,4-6,6-4,4-6,6-5,5-7,7,7-4,4,4-8,8-4,0,0"
			anim2 "0-8,7-4,5-6,5-2,3-8,7-0"
		}
//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-4,5-8,7-0"
//		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Fisher {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"-11"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		30
		FrameHeight		43
		Walk {
			FPS 24
		}
		Stay {
			FPS 10
			
			anim0 "0-3,3,3-5,5,5,5,5,5-3,3,3,3-8,8,8-6,0,0"
			anim1 "0,13-9,9,9,9-13,0-3,3,3,3,3-0,0"
			anim2 "0-13,0,0,0,13-0,0"
		}
		Talk {
			FPS 12
			
			anim0 "0-6,5-3,3-5,5,5-0"
			anim1 "0-2,2-0,1-5,5,5-3,2-0"
			anim2 "0-6,6-4,4-5,5-0"
		}
//		Wave {
//			FPS 12
//			
//			anim0 "0-8,7-0"
//			anim1 "0-8,7-2"
//		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Mage {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"-17"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Stay"
	Anim {
		FrameWidth		54
		FrameHeight		54
		
		Walk {
			FPS 21
		}

		Stay {
			FPS 8
			
			anim0 "0-2,2,2,2,2-4,4,4,4,4-2,2,2-6,6,6,6,6-2,2,2,2-0,0"
			anim1 "0-6,6,6,6,6-4,4,4,4,4,4,4-6,6,6,6,6-3,1,0,0"
			anim2 "0-2,2,2,2-0,0,0"
		}
		Cast {
			FPS 8

			anim0 "0-11"
			anim1 "0-11"
		}
		Teleport {
			FPS 8
			
			anim0 "0-12"
			anim1 "12-0"
		}
		WaterTeleport {
			FPS 8
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
		Talk {
			FPS 8
		
			anim0 "0-6,6-4,3-8,8-0"
			anim1 "0-3,3,3-1,1,1-5,5,5-3,3-8,0,0"
			anim2 "0,8-5,5,5-2,2,2-5,5,5-3,4-5,4-0,0"
		}
//		Wave {
//			FPS 10
//			
//			anim0 "0-8,7-6,7-8,7-6,7-8,7-0"
//		}
//              Fall {
//			FPS 15
//			
//			anim0 "0-2" // mage realizes that he's gonna fall into the water :)
//			anim1 "4-8,7-5" // mage is falling
//		}
	}
}

Dragon {
	Speed			40
	CoordShiftX		0
	CoordShiftY		"-16"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	//Preview			"Walk 7 2"
	TalkAnim		""
	Anim {
		FrameWidth		210
		FrameHeight		192
//		Walk {
//			FPS 25
//		}
	}
}

butterfly1 {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	Anim {
		FrameWidth		20
		FrameHeight		20
		Walk {
			FPS 25
		}
	}
}

butterfly2 {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	Anim {
		FrameWidth		20
		FrameHeight		20
		Walk {
			FPS 25
		}
	}
}

butterfly3 {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	Anim {
		FrameWidth		20
		FrameHeight		20
		Walk {
			FPS 25
		}
	}
}

butterfly4 {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	Anim {
		FrameWidth		20
		FrameHeight		20
		Walk {
			FPS 25
		}
	}
}

PlayerM {
	Speed			160
	CoordShiftX		0
	CoordShiftY		"-16"
	DialogAnimationRight	"Talk 3"
	DialogAnimationLeft	"Talk 0"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		36
		FrameHeight		41
	
		Walk {
			FPS 25
		}
		Stay {
			FPS 10
			
			anim0 "2-12,12,12-0,0,0,0,0,0,0,0"
			anim1 "13-33,0,0,0,0,0,0,0,0,0"
			anim2 "34-52,0,0,0,0,0,0,0,0"
		}
		Talk {
			FPS 12
			
			anim0 "0-19,0"
			anim1 "0-9,9-5,5-16,16-10,11-19,0"
			anim2 "0,19-9,10-15,14-7,7-12,11-0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}

	}
}

PlayerF {
	Speed			160
	CoordShiftX		0
	CoordShiftY		"-12"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		30
		FrameHeight		42
		Walk {
			FPS 25
		}
		Stay {
			FPS 10
			
			anim0 "0-15"
			anim1 "17-33,17,17,17,17,17"
			anim2 "34-50,34,34,34,34,34,34"
		}
		Talk {
			FPS 12
			
			anim0 "0-15,0"
			anim1 "0,15-8,8,8,8-12,12-5,5-15,0,0"
			anim2 "0-5,5-2,2-10,10-0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}

	}
}

EvilSpirit {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	Anim {
		FrameWidth		47
		FrameHeight		55
		Walk {
			FPS 25
		}
		Stay {
			FPS 10
			
			anim0 "0-10,10,10,10,10-16,16,16,16,16,16-10,10,10,10,10,10-16,16,16,16,16,16-21,0,0"
			anim1 "0,21-16,16,16,16,16,16-13,13,13,13,13,13-16,16,16,16-13,13,13-21,0,0"
			anim2 "0-6,6,6,6,6,6-0,0,0,0,0,0-6,6,6,6-10,10,10,10,10-14,14,14,14,14-10,10,10,10-0,0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

GoodSpirit {
	Speed			20
	CoordShiftX		0
	CoordShiftY		"0"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	Anim {
		FrameWidth		47
		FrameHeight		56
		Walk {
			FPS 25
		}
		Stay {
			FPS 18
			
			anim0 "0-6,6,6,6,6,6,6,6-0,0,0"
			anim1 "0-6,6,6,6,6,6,6,6-16,15-12,13-16,15-12,13-16,15-12,13-23,0,0,0"
			anim2 "0,23-16,16,16,16,16,16,16,16,16-23,0,0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Dendroid {
	Speed			10
	CoordShiftX		0
	CoordShiftY		"-16"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		70
		FrameHeight		70
	
		Walk {
			FPS 12
		}
		Stay {
			FPS 10
			
			anim0 "0-20,20-0"
		}
		Talk {
			FPS 8
			
			anim0 "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-16"
			anim1 "0-10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-16"
			anim2 "0-16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
		}
		Hide {
			FPS 9
			anim0 "0-4,4,4,4,3-0,0-4,3-0,0,5-6,6,6,6,6,6,6,7,7,7,7,7,7,6,6,6,5-0,0,0,0" 
			anim1 "0,0,0,0-4,5-6,6,6,7,7,7,7,7,7,6,6,6,6-9,9,10-16,16,16,17-19,0-4,3-0" 
			anim2 "0,0,0,0,0-4,4,5-7,7,7,7,7,7,7,7,6-0,0-4,4,3-0,0,0-4,4,5-6,6,6,6,6,6,7,7,7,7,7,7,6,6,6,6,5-0,0,0,0,0-4,0-5,6-9,9,10-16,16,16,16,16,17-19,0-4,3-0,0,0-4,4,4,4,3-0,0-4,3-0,0,5-6,6-0,0,0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Jinn {
	Speed			28
	CoordShiftX		0
	CoordShiftY		"-14"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		56
		FrameHeight		65
	
		Walk {
			FPS 15
		}
		Stay {
			FPS 8
			
			anim0 "29-19,7-0"
			anim1 "0-4,4,4,4,4,4,4,4-0,0,0,0"
			anim2 "0-7,7,7,7,10-17,0,0,0,0,0,0,0"
			
		}
		Talk {
			FPS 8
			
			anim0 "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-36"
			anim1 "0-18,17-0,36-23,23-36,35-17,17-0"
			anim2 "0-17,16-0,0-36,0-5,4-0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Witch {
	Speed			15
	CoordShiftX		0
	CoordShiftY		"-14"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		50
		FrameHeight		54
	
		Walk {
			FPS 15
		}
		Stay {
			FPS 7
			
			anim0 "0-30,12-0"
                        anim1 "0-12,13-30,0-12"
                        anim2 "0-12,12-0"
									
		}
		Talk {
			FPS 8
			
			anim0 "0-20,20-0"
			anim1 "0-10,9-0,0-20,19-8,8-20,20-0"
			anim2 "0-5,4-0,0-14,13-0"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}

Pingvin {
	Speed			15
	CoordShiftX		0
	CoordShiftY		"-14"
	DialogAnimationRight	"Walk 7"
	DialogAnimationLeft	"Walk 1"
	PreviewAnim		"Walk 7"
	TalkAnim		"Walk"
	Anim {
		FrameWidth		42
		FrameHeight		45
	
		Walk {
			FPS 10
		}
		Stay {
			FPS 7
			
			anim0 "0-24,0-8,8,8,8,8,9-20,20-10,9-24"
			anim1 "0-3,3-0,0-3,4-18,18-5,5-0"
			anim2 "24-14,14-24"
									
		}
		Talk {
			FPS 8
			
			anim0 "0-30,30-0"
			anim1 "0-8,9-0,0-24,23-17,18-30"
			anim2 "30-21,22-30"
		}
		Position {
			FPS 10
			
			anim0 "0-7"
			anim1 "7-0"
		}
	}
}
